build-docs.sh 441 B

123456789101112
  1. #!/bin/sh
  2. # Builds the docs for this repo. Open "target/docs/doc/README.html" in a browser to view them.
  3. # NOTE: This script must be run from the "./doc" subdirectory of the repo.
  4. set -e
  5. RUSTDOCFLAGS="--index-page $PWD/../README.md -Zunstable-options --markdown-css rustdoc/rust.css --markdown-no-toc"\
  6. cargo doc --no-deps
  7. cd ..
  8. rsync -ra --delete target/doc/ website/static/rustdoc/
  9. cp doc/rust.css website/static/rustdoc
  10. cd website
  11. hugo