summaryrefslogtreecommitdiffstats
path: root/doc/default.nix
AgeCommit message (Collapse)Author
2024-05-23doc: autogenerate python interpreter table (#313408)Alejandro Sánchez Medina
* 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-05-02doc: Use substitute --replace-fail in manualsJan Tojnar
This fixes a warning about --replace being deprecated.
2024-03-16doc: fix and simplify stylesheets for the manuals, fix nrd bug (#295847)Daniel Sidhion
* doc: fix and simplify stylesheets for the manuals, fix nrd bug * Add anchorjs script to add links on section headers * Fix another nrd bug, address style changes * Use span instead of a for inline span syntax
2024-02-02lib: Add optionalDrvAttr to conditionally set drv attributes.Shea Levy
This allows for adding new, conditionally set, derivation attributes to an existing derivation without changing any output paths in the case where the condition is not met.
2023-12-18doc: Add test for broken links in `manpage-urls.json`nicoo
2023-11-04doc: Add lib.meta to the library functions ToCAndreas Fuchs
This seems like a pretty easy-to-fix oversight, and it documents the getExe function, which I never knew about until one day I saw a PR using it. Let's include it in the manual.
2023-10-20doc: generate documentation for lib.customisationYueh-Shun Li
2023-09-02Merge pull request #245623 from tweag/fileset.toSourceSilvan Mosberger
File set combinators base: `lib.fileset.toSource`
2023-09-01lib.fileset.toSource: initSilvan Mosberger
2023-08-15lib/gvariant: initlinsui
2023-07-25nixpkgs manual: extract some build pathsAlejandro Sanchez Medina
Co-authored-by: Shahar "Dawn" Or <mightyiampresence@gmail.com>
2023-07-08doc: Render lib.fixedPointsRobert Hensing
2023-07-01doc: inline doc-support to main drvpennae
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-supportpennae
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 timespennae
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 nrdpennae
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: build placeholder epub in its own derivationpennae
mostly to clean up the main manual build makefile and derivation a bit. not technically necessary, but will make life easier later.
2023-06-12doc: stub out epub manualpennae
same reasoning as for the nixos manual.
2023-04-25doc/default.nix: make the manual build on more than one core (#225921)Adam Joseph
* doc/default.nix: make the manual build on more than one core Let's build the manual with more than one core. Maybe people will take better care of it now that it is less painful to build.
2023-02-07doc: use `gitignoreSource`Naïm Favier
Running `make -C doc` to build the manual locally leaves .xml artifacts in the tree. These are ignored by git, but they still get included in the build when not using flakes, which causes the corresponding chapters not to be built.
2023-01-02doc: separate manpage URLs from the Pandoc filterNaïm Favier
Move the manpage-to-URL mapping to `doc/manpage-urls.json` so that we can reuse that file elsewhere, and generate the `link-manpages.lua` filter from that file. Also modify the Pandoc filter so that it doesn't wrap manpages that are already inside a link. Keeping a Lua filter is essential for speed: a Python filter would increase the runtime `md-to-db.sh` from ~20s to ~30s (but Python is not to blame; marshalling Pandoc types to and from JSON is a costly operation). Parsing in Lua seems tedious, so I went with the Nix way.
2021-06-05doc: Fix make in nix-shellJan Tojnar
When running make manually, makeFlags will not be passed. Let’s just use an environment variable.
2021-02-12doc: use lib.cleanSourceAlyssa Ross
Otherwise, running "nix-build" in the doc directory would create a result symlink, so running "nix-build" again would produce a different derivation, and so on forever, because the result symlink would keep changing and wasn't ignored.
2020-12-09doc: Add staging workflow diagramJan Tojnar
2019-07-04doc: move parameters to an XML fileGraham Christensen
2019-07-04xmlformat.conf: move to doc-support buildGraham Christensen
2019-07-04docs: Get highlightjs from build symlinkGraham Christensen
2019-07-04docs: get XSL from build / symlinkGraham Christensen
2019-07-04docs: find docbook rng from doc-supportGraham Christensen
2019-07-04docs: get version from doc-support buildGraham Christensen
2019-07-04docs: use a single nix-build for all the generate function docsGraham Christensen
2019-01-04doc: Add automatic generation of library function documentationVincent Ambo
Modifies the build process of the manual to invoke nixdoc automatically to generate XML files with function documentation. Currently documentation is present for five of the files in `lib/`. To add another file to the generated docs, both `doc/functions/library.xml` and `doc/lib-function-docs.nix` must be updated.
2018-10-05Generate links to function definitionsGraham Christensen
Hydra passes the full revision in to the input, which we pass through. If we don't get this ,we try to get it from other sources, or default to master which should have the definition in a close-ish location. All published docs should have theURL resolve properly, only local hackers will have the link break.
2018-07-20Merge pull request #43857 from volth/unusedFrederik Rietdijk
[bot] treewide: remove unreferenced code
2018-07-20[bot]: remove unreferenced codevolth
2018-07-18treewide: remove aliases in nixpkgsMatthew Bauer
This makes the command ‘nix-env -qa -f. --arg config '{skipAliases = true;}'’ work in Nixpkgs. Misc... - qtikz: use libsForQt5.callPackage This ensures we get the right poppler. - rewrites: docbook5_xsl -> docbook_xsl_ns docbook_xml_xslt -> docbook_xsl diffpdf: fixup
2018-06-06manual: make epub a build product on hydra (#41475)Daiderd Jordan
2018-04-30nixpkgs doc: add format Make targetGraham Christensen
2018-04-28treewide: rename version attributesMaximilian Bosch
As suggested in https://github.com/NixOS/nixpkgs/pull/39416#discussion_r183845745 the versioning attributes in `lib` should be consistent to `nixos/version` which implicates the following changes: * `lib.trivial.version` -> `lib.trivial.release` * `lib.trivial.suffix` -> `lib.trivial.versionSuffix` * `lib.nixpkgsVersion` -> `lib.version` As `lib.nixpkgsVersion` is referenced several times in `NixOS/nixpkgs`, `NixOS/nix` and probably several user's setups. As the rename will cause a notable impact it's better to keep `lib.nixpkgsVersion` as alias with a warning yielded by `builtins.trace`.
2018-03-26nixpkgs docs: syntax highlightGraham Christensen
2018-03-26Move the overridden CSS to overrides.css which can be applied on nixos.orgGraham Christensen
2018-03-26nixpkgs docs: Use SVGs for calloutsGraham Christensen
2018-03-25Validate when building outputsGraham Christensen
2018-03-25docs: Build with a makefileGraham Christensen
2018-03-25Move all nixpkgs doc files in to the doc directoryGraham Christensen
This makes a makefile-driven developer workflow nicer.
2018-03-18Emscripten 1.37.16 to 1.37.36 (#37291)Joachim Schiele
* trying to build emscriptenPackages not all fail * reading the console.log it turns out python executable is not in place and that is why emconfigure didnt work * backup commit * much more targets are compiling now * added common revisioning * revision bump to 1.37.36 (not tested) * fixed xmllint * forcing unit testing, will implement the tests after i get home * json_c test working * added tests * tiny fixes * added documentation
2017-12-20mkShell: add builder (#30975)zimbatm
2017-12-20nixpkgs/manual: fix build with new pandocLeonid Onokhov
2017-06-22Update BEAM docsEric Bailey
Improve beam docs: * correct spelling * update per pandoc changes * capitalize titles * capitalize BEAM throughout and use "the BEAM" when referring to the virtual machine. * tweak grammar and phrasing * reformat build-tools-rebar3 section * add more links * re-wrap <para>s Also update <programlisting>s * normalize whitespace * don't double quote homepage * use $ in all shell snippets
2017-03-20doc: Add rust documentation (#23510)Matthias Beyer