build-docs.sh 406 B

12345678910
  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 /fuckface.css --markdown-no-toc"\
  6. cargo +nightly doc
  7. cd ..
  8. cp -r target/doc website/static/rustdoc
  9. cp doc/rust.css website/static/rustdoc