+4
doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
+4
doc/build-aux/pandoc-filters/docbook-writer/rst-roles.lua
···content = '<refentrytitle>' .. title .. '</refentrytitle>' .. (volnum ~= nil and ('<manvolnum>' .. volnum .. '</manvolnum>') or '')
+17
-3
doc/contributing/contributing-to-documentation.chapter.md
+17
-3
doc/contributing/contributing-to-documentation.chapter.md
···As per [RFC 0072](https://github.com/NixOS/rfcs/pull/72), all new documentation content should be written in [CommonMark](https://commonmark.org/) Markdown dialect.+Additional syntax extensions are available, though not all extensions can be used in NixOS option documentation. The following extensions are currently used:Explicitly defined **anchors** on headings, to allow linking to sections. These should be always used, to ensure the anchors can be linked even when the heading text changes, and to prevent conflicts between [automatically assigned identifiers](https://github.com/jgm/commonmark-hs/blob/master/commonmark-extensions/test/auto_identifiers.md).···This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/using/syntax.html#targets-and-cross-referencing).-If you want to link to a man page, you can use `` {manpage}`nix.conf(5)` ``, which will turn into {manpage}`nix.conf(5)`.+If you want to link to a man page, you can use `` {manpage}`nix.conf(5)` ``, which will turn into {manpage}`nix.conf(5)`. The references will turn into links when a mapping exists in {file}`doc/build-aux/pandoc-filters/link-unix-man-references.lua`.-The references will turn into links when a mapping exists in {file}`doc/build-aux/pandoc-filters/link-unix-man-references.lua`.This syntax is taken from [MyST](https://myst-parser.readthedocs.io/en/latest/syntax/syntax.html#roles-an-in-line-extension-point). Though, the feature originates from [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/roles.html#role-manpage) with slightly different syntax.···
+2
-1
lib/default.nix
+2
-1
lib/default.nix
···
+15
lib/options.nix
+15
lib/options.nix
···
+8
-1
nixos/doc/manual/development/option-declarations.section.md
+8
-1
nixos/doc/manual/development/option-declarations.section.md
···
+11
-1
nixos/doc/manual/from_md/development/option-declarations.section.xml
+11
-1
nixos/doc/manual/from_md/development/option-declarations.section.xml
···
+15
-3
nixos/lib/make-options-doc/default.nix
+15
-3
nixos/lib/make-options-doc/default.nix
······
+145
-1
nixos/lib/make-options-doc/mergeJSON.py
+145
-1
nixos/lib/make-options-doc/mergeJSON.py
···+ADMONITION_PATTERN = re.compile(r'^::: \{([^\n]*?)\}\n(.*?)^:::\n', flags=re.MULTILINE|re.DOTALL)···
+2
-2
nixos/modules/config/console.nix
+2
-2
nixos/modules/config/console.nix
···
+9
-10
nixos/modules/config/debug-info.nix
+9
-10
nixos/modules/config/debug-info.nix
···
+11
-20
nixos/modules/misc/documentation.nix
+11
-20
nixos/modules/misc/documentation.nix
······-<listitem><para>This includes man pages targeted at developers if <option>documentation.man.enable</option> is-<listitem><para>This includes info pages targeted at developers if <option>documentation.info.enable</option>-<listitem><para>This includes other pages targeted at developers if <option>documentation.doc.enable</option>
+4
-4
nixos/modules/misc/man-db.nix
+4
-4
nixos/modules/misc/man-db.nix
···-defaultText = lib.literalDocBook "all man pages in <option>config.environment.systemPackages</option>";
+6
-5
nixos/modules/security/systemd-confinement.nix
+6
-5
nixos/modules/security/systemd-confinement.nix
···
+9
-9
nixos/modules/services/matrix/synapse.nix
+9
-9
nixos/modules/services/matrix/synapse.nix
···-<link xlink:href="https://github.com/matrix-org/synapse/blob/v${cfg.package.version}/docs/sample_config.yaml">sample configuration</link>+[sample configuration](https://github.com/matrix-org/synapse/blob/v${cfg.package.version}/docs/sample_config.yaml)······
+20
-20
nixos/modules/services/networking/mosquitto.nix
+20
-20
nixos/modules/services/networking/mosquitto.nix
··················
+48
-60
nixos/modules/services/networking/syncthing.nix
+48
-60
nixos/modules/services/networking/syncthing.nix
···-will be reverted on restart if <link linkend="opt-services.syncthing.overrideDevices">overrideDevices</link>···-See <link xlink:href="https://docs.syncthing.net/users/config.html?highlight=autoaccept#config-file-format"/>.···-will be reverted on restart if <link linkend="opt-services.syncthing.overrideDevices">overrideDevices</link>························
+3
-3
nixos/modules/virtualisation/xen-dom0.nix
+3
-3
nixos/modules/virtualisation/xen-dom0.nix
···