fix most doc warnings

This commit is contained in:
Daniel Barlow
2024-07-10 23:36:24 +01:00
parent 57e3b449f8
commit 3f8cc24dcc
11 changed files with 23 additions and 14 deletions

View File

@@ -274,6 +274,8 @@ Note that this only copies the package to the device: it doesn't update
any profile to add it to ``$PATH``
.. _rebuilding the system:
Rebuilding the system
=====================

View File

@@ -7,19 +7,19 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
project = 'Liminix'
copyright = '2023, Daniel Barlow'
copyright = '2023-2024 Daniel Barlow'
author = 'Daniel Barlow'
# -- General configuration ---------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
extensions = [
'sphinx.ext.autosectionlabel'
# 'sphinx.ext.autosectionlabel'
]
autosectionlabel_prefix_document = True
templates_path = ['_templates']
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
exclude_patterns = ['*.inc.rst', '_build', 'Thumbs.db', '.DS_Store']

View File

@@ -7,11 +7,15 @@ let
n:
let
d = import ../devices/${n}/default.nix;
tag = ".. _${lib.strings.replaceStrings [" "] ["-"] n}:";
d' = {
description = "${n}\n${substring 0 (stringLength n) "********************************"}\n";
description = ''
${n}
${substring 0 (stringLength n) "********************************"}
'';
} // d;
in
d'.description
"${tag}\n\n${d'.description}"
) devices;
in
writeText "hwdoc" ''

View File

@@ -1,4 +1,4 @@
Module options
##############
.. include:: modules-generated.rst
.. include:: modules-generated.inc.rst

View File

@@ -10,4 +10,4 @@ different artefacts, or have different ways to get that artefact
installed. The options available for a particular device are described in
the section for that device.
.. include:: outputs-generated.rst
.. include:: outputs-generated.inc.rst

View File

@@ -16,4 +16,4 @@
(each [_ option (ipairs (sorted-options (yaml.load (io.read "*a"))))]
(when (and (output? option) (not option.internal))
(print (.. ".. _" (string.gsub option.name "%." "-") ":") "\n")
(print option.description)))
(print option.description "\n")))

View File

@@ -300,7 +300,7 @@ machine, which for a test/demo system might involve a second network
device in your build system - USB ethernet adapters are cheap - or
a bit of messing around unplugging cables.)
For more information about :code:`liminix-rebuild`, see the manual section :ref:`admin:Rebuilding the system`.
For more information about :code:`liminix-rebuild`, see the manual section :ref:`Rebuilding the system`.
Final thoughts