.. | ||
my-theme | ||
src | ||
book.toml | ||
context.toml | ||
README.md |
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