2022-12-20 16:29:32 +01:00
|
|
|
[book]
|
2024-05-06 00:32:20 +02:00
|
|
|
title = "Lix Reference Manual"
|
2022-12-20 16:29:32 +01:00
|
|
|
|
2024-05-05 17:43:44 +02:00
|
|
|
[build]
|
|
|
|
create-missing = false
|
|
|
|
|
2020-08-19 12:31:18 +02:00
|
|
|
[output.html]
|
|
|
|
additional-css = ["custom.css"]
|
2022-05-25 08:07:02 +02:00
|
|
|
additional-js = ["redirects.js"]
|
2024-05-06 00:32:20 +02:00
|
|
|
# Using our GitHub mirror enables easier typo fixes since there is no easy way
|
|
|
|
# to just submit a Gerrit CL by the web for trivial stuff.
|
|
|
|
edit-url-template = "https://github.com/lix-project/lix/tree/main/doc/manual/{path}"
|
|
|
|
git-repository-url = "https://git.lix.systems/lix-project/lix"
|
2024-05-25 20:19:46 +02:00
|
|
|
# Folding by default would prevent things like "Ctrl+F for nix-env" from working
|
|
|
|
# trivially, but the user should be able to fold if they want to.
|
|
|
|
fold.enable = true
|
|
|
|
fold.level = 30
|
2022-05-25 18:51:04 +02:00
|
|
|
|
2024-04-08 21:44:40 +02: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 doc/manual/substitute.py"
|
|
|
|
before = ["anchors", "links"]
|
2024-04-03 01:01:53 +02:00
|
|
|
|
2022-05-25 18:51:04 +02:00
|
|
|
[preprocessor.anchors]
|
2022-05-26 16:47:40 +02:00
|
|
|
renderers = ["html"]
|
|
|
|
command = "jq --from-file doc/manual/anchors.jq"
|
2023-01-03 08:53:29 +01:00
|
|
|
|
2024-04-08 21:44:40 +02:00
|
|
|
[output.markdown]
|
|
|
|
|
2023-01-03 08:53:29 +01: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"
|