book.toml 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. [book]
  2. title = "Kuatia"
  3. description = "An append-only, auditable, multi-asset UTXO-style ledger."
  4. language = "en"
  5. src = "doc"
  6. # `create-missing` off because the default quietly writes an empty chapter for a
  7. # SUMMARY entry that names nothing, which is the one mistake a build check
  8. # exists to catch.
  9. [build]
  10. build-dir = "target/book"
  11. create-missing = false
  12. [output.html]
  13. git-repository-url = "https://github.com/crodas/kuatia"
  14. # `{path}` already carries the source directory, so it is not repeated here.
  15. edit-url-template = "https://github.com/crodas/kuatia/edit/master/{path}"
  16. additional-js = ["theme/mermaid.min.js", "theme/mermaid-init.js"]
  17. [output.html.fold]
  18. enable = true
  19. level = 1
  20. [preprocessor.mermaid]
  21. command = "mdbook-mermaid"
  22. # mdBook renders a chapter sourced from `README.md` as its directory's
  23. # `index.html`, but rewrites a link naming that file to `README.html`. The
  24. # source has to keep the name GitHub renders for a directory, so the book
  25. # redirects the path the rewrite produces.
  26. [output.html.redirect]
  27. "/adr/README.html" = "index.html"