2022-12-20 17:29:32 +02:00
|
|
|
[book]
|
|
|
|
title = "Nix Reference Manual"
|
|
|
|
|
2020-08-19 13:31:18 +03:00
|
|
|
[output.html]
|
|
|
|
additional-css = ["custom.css"]
|
2022-05-25 09:07:02 +03:00
|
|
|
additional-js = ["redirects.js"]
|
2022-12-20 17:29:32 +02: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 19:51:04 +03:00
|
|
|
|
2024-07-30 22:05:22 +03:00
|
|
|
# Handles replacing @docroot@ with a path to ./src relative to that markdown file,
|
|
|
|
# {{#include handlebars}}, and the @generated@ syntax used within these. it mostly
|
|
|
|
# but not entirely replaces the links preprocessor (which we cannot simply use due
|
|
|
|
# to @generated@ files living in a different directory to make meson happy). we do
|
|
|
|
# not want to disable the links preprocessor entirely though because that requires
|
|
|
|
# disabling *all* built-in preprocessors and selectively reenabling those we want.
|
|
|
|
[preprocessor.substitute]
|
|
|
|
command = "python3 ./substitute.py"
|
|
|
|
before = ["anchors", "links"]
|
|
|
|
|
2022-05-25 19:51:04 +03:00
|
|
|
[preprocessor.anchors]
|
2022-05-26 17:47:40 +03:00
|
|
|
renderers = ["html"]
|
2024-07-30 22:05:22 +03:00
|
|
|
command = "jq --from-file ./anchors.jq"
|
|
|
|
|
|
|
|
[output.markdown]
|
2023-01-03 09:53:29 +02: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"
|