about summary refs log tree commit diff
path: root/nixos/doc/manual/development
AgeCommit message (Collapse)AuthorFilesLines
2023-05-03nixos-render-docs: add examples supportpennae5-18/+22
the nixos manual contains enough examples to support them as a proper toc entity with specialized rendering, and if in the future the nixpkgs wants to use nixos-render-docs we will definitely have to support them. this also allows us to restore some examples that were lost in previous translation steps because there were too few to add renderer support back then.
2023-04-25nixos/tests: extra-python-packages -> nixos-test-driver/extra-python-packagesRobert Hensing1-0/+2
Categorizing the tests for the test driver helps with testing the test driver.
2023-04-25nixosTest: remove hostname limitationsAlyssa Ross1-0/+5
2023-03-09Merge pull request #211855 from ↵Robert Hensing1-2/+9
hercules-ci/lib-modules-disabledModules-module-with-key lib/modules: Allow an "anonymous" module with key in disabledModules
2023-03-01lib/modules: Allow an "anonymous" module with key in disabledModulesRobert Hensing1-2/+9
This makes the following work disabledModules = [ foo.nixosModules.bar ]; even if `bar` is not a path, but rather a module such as { key = "/path/to/foo#nixosModules.bar"; config = ...; } By supporting this, the user will often be able to use the same syntax for both importing and disabling a module. This is becoming more relevant because flakes promote the use of attributes to reference modules. Not all of these modules in flake attributes will be identifiable, but with the help of a framework such as flake-parts, these attributes can be guaranteed to be identifiable (by outPath + attribute path).
2023-02-26lib/options: Add more options to mkPackageOptionAnselm Schüler1-3/+31
2023-02-17nixos/doc: Add Developing the Test DriverRobert Hensing2-0/+44
2023-02-12nixos-render-docs: add structural includes, use for manualpennae7-41/+37
this adds support for structural includes to nixos-render-docs. structural includes provide a way to denote the (sub)structure of the nixos manual in the markdown source files, very similar to how we used literal docbook blocks before, and are processed by nixos-render-docs without involvement of xml tooling. this will ultimately allow us to emit the nixos manual in other formats as well, e.g. html, without going through docbook at all. alternatives to this source layout were also considered: a parallel structure using e.g. toml files that describe the document tree and links to each part is possible, but much more complicated to implement than the solution chosen here and makes it harder to follow which files have what substructure. it also makes it much harder to include a substructure in the middle of a file. much the same goes for command-line arguments to the converter, only that command-lined arguments are even harder to specify correctly and cannot be reasonably pulled together from many places without involving another layer of tooling. cli arguments would also mean that the manual structure would be fixed in default.nix, which is also not ideal.
2023-02-10nixos/manual: replace ids on blocks with inline anchorspennae1-2/+1
nixos-render-docs supports inline anchors, but not ids for blocks. it seems wise to reserve blocks for special cases that don't have other syntax already, like admonitions.
2023-02-10nixos/manual: remove .unnumbered section attributespennae1-4/+4
pandoc would drop these when converting to docbook, just like it dropped .title block classes.
2023-02-10nixos/manual: remove .title fenced divspennae5-36/+5
pandoc drops .title classes when rendering to docbook, so these are effectively just paragraphs anyway. without support for including them in a table of contents the complexity of parsing them in nixos-render-docs won't be warranted.
2023-02-10nixos/manual: fix option-declarations sectionspennae1-1/+4
the examples for mkPackageOption weren't terminated, leading to pretty odd nesting of docbook (and thus html) elements. close them properly. also turn the (likewise unclosed) fenced div containing just an anchor id and a class that will be silently dropped to an inline anchor while we're here. we'd have to convert it anyway later.
2023-02-10nixos/manual: remove some newlines from deflistspennae1-4/+2
markdown-it parses deflists slitghtly differently than pandoc does. in these two cases pandoc would find a deflist item while markdown-it would not, instead it'd find a lone colon and the rest of the text.
2023-01-30Merge pull request #212684 from pennae/nixos-render-docspennae1-22/+4
nixos-render-docs: init, use for some manual rendering to docbook
2023-01-27nixos/manual: render module chapters with nixos-render-docspennae1-22/+4
this converts meta.doc into an md pointer, not an xml pointer. since we no longer need xml for manual chapters we can also remove support for manual chapters from md-to-db.sh since pandoc converts smart quotes to docbook quote elements and our nixos-render-docs does not we lose this distinction in the rendered output. that's probably not that bad, our stylesheet didn't make use of this anyway (and pre-23.05 versions of the chapters didn't use quote elements either). also updates the nixpkgs manual to clarify that option docs support all extensions (although it doesn't support headings at all, so heading anchors don't work by extension).
2023-01-27nixos/tests: extend shell_interact to accept alternative socat addressesJörg Thalheim1-0/+33
`shell_interact()` is currently not nice to use. If you try to cancel the socat process, it will also break the nixos test. Furthermore ptpython creates it's own terminal that subprocesses are running in, which breaks some of the terminal features of socat. Hence this commit extends `shell_interact` to allow also to connect to arbitrary servers i.e. tcp servers started by socat.
2023-01-22nixos/manual: clarify mk{Enable,Package}Option MD usagepennae1-3/+3
the examples were incorrect, but not catastrophically. running a docs build would've issued a warning with the correct instructions.
2023-01-10nixos/manual: mention that module chapters should use markdownpennae1-0/+20
2023-01-05modules: add mkPackageOptionMDpennae1-1/+3
another transitional option factory, like mkAliasOptionModuleMD.
2022-12-29nixos/test-driver: add optional address arg to wait_for_{open,closed}_portBjørn Forsman1-3/+4
This is useful for testing servers configured to listen on specific addresses.
2022-12-27doc,nixos/doc: unescape ellipsesNaïm Favier3-3/+3
Leftovers from the CommonMark conversion.
2022-12-27doc,nixos/doc: unescape apostrophesNaïm Favier6-17/+17
Leftovers from the CommonMark conversion.
2022-12-17nixos: fix typosfigsoda3-5/+5
2022-12-08nixos/activation/bootspec: add bootspec chapter in NixOS manualRaito Bezarius2-0/+37
2022-12-02nixos/doc: document `mkOrder` and friendsNaïm Favier1-4/+22
Add a section on ordering option definitions. Also mention `mkDefault` in the section on `mkOverride`. Clarify the code a bit by renaming `defaultPriority` to `defaultOverridePriority` and introducing `defaultOrderPriority`.
2022-11-14nixos/manual: re-add mention of mdDoc markerpennae1-6/+7
2022-09-29nixos/doc: Disambiguate test option idsRobert Hensing2-8/+8
Changing this later on would break external links into the manual.
2022-09-28Merge pull request #191540 from hercules-ci/nixosTest-modularRobert Hensing3-25/+85
nixosTest: make modular
2022-09-24nixos/doc/writing-nixos-tests: Remove flake info for nowRobert Hensing1-11/+0
2022-09-24nixos/testing: Improve interactive docsRobert Hensing1-3/+9
2022-09-24nixos/doc/writing-nixos-tests: Various improvementsRobert Hensing1-7/+8
Thanks to fricklerhandwerk for the many suggestions, most of which I have fixupped into preceding commits.
2022-09-24nixos/doc/writing-nixos-tests: Clarify working directoryRobert Hensing1-0/+1
Co-authored-by: christian-burger <christian@krikkel.de>
2022-09-24nixos/doc: Wire up the test options referenceRobert Hensing1-1/+8
2022-09-24nixos/testing: Improve option docsRobert Hensing1-7/+7
2022-09-24nixos/doc/running-nixos-tests: Simplify running instructions with nixosTestsRobert Hensing1-14/+3
2022-09-24nixos/doc/running-nixos-tests-interactively: Describe interactive optionRobert Hensing1-0/+8
2022-09-24nixos/testing: Move entrypoint to nixos/lib + docRobert Hensing1-7/+66
2022-09-21haskell.{compiler,packages}: Add aliases without minor versionsmaralorn1-2/+2
2022-09-10lib/options: deprecate docbook text and literalDocBookpennae1-11/+8
deprecate literalDocBook by adding a warning (that will not fire yet) to its uses and other docbook literal strings by adding optional warning message to mergeJSON.
2022-09-09Merge pull request #181834 from ncfavier/numbersSilvan Mosberger1-24/+49
lib/types: add `number`
2022-09-09nixos/doc/option-types: add precision loss warning for floatsNaïm Favier1-0/+5
2022-08-04Merge master into haskell-updatesgithub-actions[bot]1-17/+17
2022-07-29manual: fix typosBrian Leung1-17/+17
2022-07-28haskell.compiler: ghc923 -> ghc924sternenseemann1-2/+2
https://www.haskell.org/ghc/download_ghc_9_2_4.html
2022-07-25nixos/doc/option-types: refactor, document `number`sNaïm Favier1-24/+44
2022-07-15Merge pull request #177732 from tljuniper/python-doc-typosValentin Gagarin1-1/+3
doc/languages-frameworks: Fix typos
2022-06-28nixos/doc: Fix typo in activation-script.mdAlex Wied1-1/+1
2022-06-21Merge pull request #176146 from pennae/module-docs-markdownRobert Hensing1-1/+8
treewide: markdown option docs
2022-06-21nixos/doc: test-driver: Note on skipTypeCheck with extraPythonPackagestljuniper1-1/+3
2022-06-14nixos/doc: Hold off on NixOps 2 info until releasedRobert Hensing1-2/+1