about summary refs log tree commit diff
path: root/doc/doc-support
AgeCommit message (Collapse)AuthorFilesLines
2024-05-23doc: autogenerate python interpreter table (#313408)Alejandro Sánchez Medina1-0/+63
* doc: autogenerate python interpreter table This serves as a practical example on generating documentation by inspection of the evaluated Nixpkgs tree. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2024-01-29adds block_args for autogenerated ids from trustworthy sourcesJohannes Kirschbauer1-1/+1
2023-07-08doc: Render lib.fixedPointsRobert Hensing1-7/+10
2023-07-01doc: inline doc-support to main drvpennae1-28/+0
separating function docs out like this makes it less clear how library documentation is generated and integrated into the build. if in the future more parts of nixpkgs use nixdoc it will make sense to have all information about library doc generation in the same place.
2023-07-01doc: pull option docs out of doc-supportpennae1-27/+0
this leaves doc-support as a simple wrapper around function docs. this wrapper will go away very soon as well.
2023-07-01doc: remove remnants of docbook timespennae3-118/+0
all xml-related tooling can go away. shell.nix is no longer useful since the makefile is gone and the build runs entirely via a derivation, and gitignore is thus also no longer that useful. it may filter out some swap files, but its main reason to exist (keeping generated files out of a concurrent build of the derivation) has gone away.
2023-07-01doc: render nixpkgs manual with nrdpennae3-38/+22
also updates nixdoc to 2.3.0. the nixdoc update is not a separate commit because that would leave the manual build broken for one commit, potentially breaking bisects and rebases.
2023-07-01doc-support: don't expose locationsXmlpennae2-5/+8
nothing except function docs uses this, so we need not expose it. we'll be reworking this entire section of the build anyway, with the target of breaking up doc-support as it is now.
2023-05-06lib/modules: Move class out of specialArgsRobert Hensing1-1/+1
2023-05-06nixos,nixpkgs: Add module classesRobert Hensing1-1/+4
This allows modules that declare their class to be checked. While that's not most user modules, frameworks can take advantage of this by setting declaring the module class for their users. That way, the mistake of importing a module into the wrong hierarchy can be reported more clearly in some cases.
2023-04-13doc: Fix the function locations always pointing to masterSilvan Mosberger1-1/+1
Instead of revisions as they should. This is (most-likely) caused by a simple typo, because Hydra is where the revision should come from, but it doesn't set `.revision` as the attribute, but rather `.rev`!
2023-02-12nixos/manual: remove holdovers from docbook timespennae2-1/+73
these files provided mainly or exclusively xml-related tooling and support for editing the manual. since docbook is now an implementation detail (except for still being allowed in option docs, for now) these tools are no longer necessary, useful, or even functional. xmlformat.conf is still used by the nixpkgs documentation, so we have to keep it. there's no reason it can't go live with the nixpkgs docs though.
2023-01-03lib.path.subpath.isValid: initSilvan Mosberger1-0/+1
The first path library function
2022-12-23lib: Allow doc rendering for lib/<name>/default.nixSilvan Mosberger1-1/+5
2022-12-23lib: correctly render docs for nested identifiersSilvan Mosberger1-7/+9
Applies https://github.com/nix-community/nixdoc/pull/27 and fixes up the location information rendering, allowing lib functions to be nested in further scopes Needed for later commits
2022-12-22doc/lib-functions: print libset name before descriptionNaïm Favier2-11/+12
2022-12-22doc/lib-functions: preserve libsets orderNaïm Favier3-16/+16
2022-12-22doc/lib-functions: add `versions`, `cli`Naïm Favier1-0/+2
2022-12-22doc/lib-functions: remove warningsNaïm Favier4-23/+35
Building the nixpkgs manual currently triggers a bunch of deprecation warnings, because every attribute in `lib` is evaluated to see if it's an attrset to generate locations for. Instead, share the lib subsets to include in the documentation between `lib-function-docs` and `lib-function-locations` so they can coordinate. Also generate the list of sections instead of duplicating it in `library.xml`.
2022-12-17doc: fix typosfigsoda1-1/+1
2022-12-12doc: Remove all section numbersRobert Hensing1-3/+6
Simplicity. We use anchors nowadays. Nobody should be printing this.
2022-12-08doc: auto-generate asserts and attrset library docsRyan Mulligan1-0/+2
If all the docs are auto-generated, it should be easier to convert them to Commonmark. Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io> Co-Authored-By: Silvan Mosberger <contact@infinisil.com>
2022-11-05Revert "lib,doc: remove obvious usages of toString on paths"Anderson Torres1-1/+1
2022-11-06lib,doc: remove obvious usages of toString on pathsArtturin1-1/+1
It gives a warning on the lazy-trees branch of Nix (NixOS/nix#6530) one of these was also giving me an error (the one in lib/trivial probably) ``` $ nix build warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd -image-aarch64.nix' and then accessing it is deprecated, at /home/artturin/nixgits/my-nixpkgs/lib/modules. nix:349:99 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/.git' and then accessing it is dep recated, at /home/artturin/nixgits/my-nixpkgs/lib/sources.nix:35:32 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc.nix' and then accessing it is deprecated, at «stdin»:0 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/system/etc/etc-activ ation.nix' and then accessing it is deprecated, at «stdin»:0 warning: applying 'toString' to path '/home/artturin/nixgits/my-nixpkgs/nixos/modules/installer/sd-card/sd -image-aarch64.nix' and then accessing it is deprecated, at «stdin»:0 error: cannot decode virtual path '/nix/store/virtual0000000000000000000000005-source' (use '--show-trace' to show detailed location information) ```
2022-10-26lib: Automatically generate lib.filesytem docsSilvan Mosberger1-0/+1
2022-07-28nixpkgs/doc: generate consistent docbook idsArnout Engelen1-0/+1
to make diff'ing different versions of the generated docs less noisy
2022-06-15doc: Fix config options reference file linksRobert Hensing1-0/+15
2022-05-02doc: Add Nixpkgs config options referenceRobert Hensing1-0/+9
2021-05-29lib.sources: Generate docsRobert Hensing1-0/+1
2020-03-29Revert "make-tarball.nix: Restore the 'commit' field in packages.json"Florian Klink1-1/+1
This reverts commit 5e8545e72341887bb371407a71a723bc0e9c7844. It breaks eval: attribute 'rev' missing, at /var/lib/ofborg/checkout/repo/38dca4e3aa6bca43ea96d2fcc04e8229/mr-est/eval-0-gleber.ewr1.nix.ci/pkgs/top-level/make-tarball.nix:106:39
2020-03-29make-tarball.nix: Restore the 'commit' field in packages.jsonEelco Dolstra1-1/+1
Also change incorrect 'revision' to 'rev' in the default value for 'nixpkgs' in release.nix. Fixes https://github.com/NixOS/nixos-homepage/issues/372.
2019-10-20doc: organize chapters into parts, and reduce toc depthFrederik Rietdijk1-1/+1
Reorganize the chapters into parts and reduce the TOC depth to make the TOC useful again. The top-level TOC is very brief, but that is fine because every part will have its own TOC. Section titles of languages/frameworks are also simplified to just the name of the language/framework.
2019-08-26treewide: remove redundant quotesvolth1-2/+2
2019-07-04doc: move parameters to an XML fileGraham Christensen2-0/+36
2019-07-04xmlformat.conf: move to doc-support buildGraham Christensen1-0/+1
2019-07-04docs: Get highlightjs from build symlinkGraham Christensen1-0/+2
2019-07-04docs: get XSL from build / symlinkGraham Christensen1-0/+1
2019-07-04docs: find docbook rng from doc-supportGraham Christensen1-0/+3
2019-07-04docs: get version from doc-support buildGraham Christensen1-0/+2
2019-07-04docs: use a single nix-build for all the generate function docsGraham Christensen3-0/+125