mdbook/sitefix-book
2024-08-14 19:09:13 +01:00
..
my-theme Init repo 2024-08-14 19:09:13 +01:00
src Init repo 2024-08-14 19:09:13 +01:00
book.toml Init repo 2024-08-14 19:09:13 +01:00
context.toml Init repo 2024-08-14 19:09:13 +01:00
README.md Init repo 2024-08-14 19:09:13 +01:00

SiteFix Book

A book example under some path set with site-url

How to use it

  • Create a dist path
  • Run mdbook (fixed version release build from this repo)
../target/release/mdbook build --dest-dir dist/doc

doc is absolute-path declared in book.toml as site-url

[output.html]
site-url = "/doc/"

doc is absolutec-path declared in context.toml as urlbase and used as {{urlbase}}

urlbase = "/doc/"

Results can be tested simply by:

cd dist
python3 -m http.server

Navigate with a browser to http://localhost:8000/doc