+1
doc/Makefile
+1
doc/Makefile
···
+18
doc/build-aux/pandoc-filters/link-unix-man-references.lua
+18
doc/build-aux/pandoc-filters/link-unix-man-references.lua
···+local is_man_role = elem.classes:includes('interpreted-text') and elem.attributes['role'] == 'manpage'
+3
-1
doc/contributing/contributing-to-documentation.chapter.md
+3
-1
doc/contributing/contributing-to-documentation.chapter.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/unix-man-urls.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.
+1
nixos/doc/manual/md-to-db.sh
+1
nixos/doc/manual/md-to-db.sh
···# - docbook-reader/citerefentry-to-rst-role.lua (only relevant for DocBook → MarkDown/rST/MyST)"--lua-filter=$DIR/../../../doc/build-aux/pandoc-filters/docbook-writer/labelless-link-is-xref.lua"