2022-12-20 15:29:32 +00:00
|
|
|
[book]
|
|
|
|
title = "Nix Reference Manual"
|
|
|
|
|
2020-08-19 10:31:18 +00:00
|
|
|
[output.html]
|
|
|
|
additional-css = ["custom.css"]
|
2022-05-25 06:07:02 +00:00
|
|
|
additional-js = ["redirects.js"]
|
2022-12-20 15:29:32 +00:00
|
|
|
edit-url-template = "https://github.com/NixOS/nix/tree/master/doc/manual/{path}"
|
|
|
|
git-repository-url = "https://github.com/NixOS/nix"
|
2022-05-25 16:51:04 +00:00
|
|
|
|
2024-04-02 23:01:53 +00:00
|
|
|
# Handles replacing @docroot@ with a path to ./src relative to that markdown file.
|
|
|
|
[preprocessor.docroot]
|
|
|
|
renderers = ["html", "linkcheck"]
|
|
|
|
command = "python3 doc/manual/docroot.py"
|
|
|
|
# I would have thought that @docroot@ replacement had to be done *before*
|
|
|
|
# the link preprocessor gets its hands on this book, but nope it's actually
|
|
|
|
# the opposite.
|
|
|
|
after = ["links"]
|
2024-04-08 02:55:18 +00:00
|
|
|
before = ["anchors"]
|
2024-04-02 23:01:53 +00:00
|
|
|
|
2022-05-25 16:51:04 +00:00
|
|
|
[preprocessor.anchors]
|
2022-05-26 14:47:40 +00:00
|
|
|
renderers = ["html"]
|
|
|
|
command = "jq --from-file doc/manual/anchors.jq"
|
2023-01-03 07:53:29 +00:00
|
|
|
|
|
|
|
[output.linkcheck]
|
|
|
|
# no Internet during the build (in the sandbox)
|
|
|
|
follow-web-links = false
|
|
|
|
|
|
|
|
# mdbook-linkcheck does not understand [foo]{#bar} style links, resulting in
|
|
|
|
# excessive "Potential incomplete link" warnings. No other kind of warning was
|
|
|
|
# produced at the time of writing.
|
|
|
|
warning-policy = "ignore"
|