Install mdbook and mdbook-toc:
cargo install mdbook
cargo install mdbook-tocTo build book:
mdbook buildTo serve locally:
mdbook serveSpecifications are written and stored in the same directory with the implementation code. Since mdbook does not support referencing files outside of the book directory, we use a symlink to the src/specs directory. This allows us to reference the specifications from the README.md and SUMMARY.md files in the src directory.
To create a symlink:
cd src/specs
ln -s path/to/spec.mdMarkdown files must conform to GitHub Flavored Markdown. Markdown must be formatted with: