build-docs.sh 535 B

12345678910111213141516
  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 doc/BlocktreeDce
  11. pdflatex BlocktreeDce.tex
  12. cp BlocktreeDce.pdf ../../website/static/
  13. cd -
  14. cd website
  15. hugo