about summary refs log tree commit diff
path: root/doc/contributing
AgeCommit message (Collapse)AuthorFilesLines
2023-01-27nixos/manual: render module chapters with nixos-render-docspennae1-9/+5
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-09Merge pull request #208762 from ncfavier/link-manpages-options-docNaïm Favier1-1/+1
2023-01-03doc/contributing/quick-start: Replace dead thunderbird linkMartin Weinelt1-1/+1
The thunderbird derivation is using `buildMozillaMach` these days, shared with Firefox and Librefox, so it is probably the correct , although more complicated, successor.
2023-01-02doc: separate manpage URLs from the Pandoc filterNaïm Favier1-1/+1
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.
2022-12-27doc,nixos/doc: unescape ellipsesNaïm Favier1-1/+1
Leftovers from the CommonMark conversion.
2022-12-25doc/contributing/coding-conventions: add subsection for language serversAnderson Torres1-0/+4
2022-12-17doc: fix typosfigsoda1-1/+1
2022-12-10Update doc/contributing/coding-conventions.chapter.mdValentin Gagarin1-1/+1
Co-authored-by: Mostly Void <dit7ya@users.noreply.github.com>
2022-12-07docs: fixup wording and formatting on JavaScriptValentin Gagarin1-2/+2
2022-12-07document Import From Derivation (IFD) policyValentin Gagarin1-0/+15
2022-12-04doc: use sri hash syntaxColin Arnott2-6/+7
The nixpkgs manual contains references to both sri hash and explicit sha256 attributes. This is at best confusing to new users. Since the final destination is exclusive use of sri hashes, see nixos/rfcs#131, might as well push new users in that direction gently. Notable exceptions to sri hash support are builtins.fetchTarball, cataclysm-dda, coq, dockerTools.pullimage, elixir.override, and fetchCrate. None, other than builtins.fetchTarball, are fundamentally incompatible, but all currently accept explicit sha256 attributes as input. Because adding backwards compatibility is out of scope for this change, they have been left intact, but migration to sri format has been made for any using old hash formats. All hashes have been manually tested to be accurate, and updates were only made for missing upstream artefacts or bugs.
2022-11-08nixpkgs/doc: fix admonition syntaxRyan Mulligan1-1/+1
Match admonition syntax in https://nixos.org/manual/nixpkgs/unstable/#chap-contributing
2022-10-23doc/contributing: Explicitly allow trivial changes by non-authorsStanisław Pitucha1-0/+6
Discussed and proposed at https://discourse.nixos.org/t/rules-around-adding-to-someones-pr/22671/3
2022-10-21Merge pull request #173506 from ↵Janne Heß1-0/+4
helsinki-systems/feat/document-no-breaking-commits doc: Document that the staging branches may be restricted
2022-10-12coding-conventions.chapter.md: update to account for #89885 (#191378)Adam Joseph1-6/+14
https://github.com/NixOS/nixpkgs/pull/89885 ensures that fetches are done securely (i.e. without `--insecure`) when the `hash` parameter is one of the four special "fake" hashes. However the manual was not updated in that PR. This commit updates the manual to account for the already-merged changes from that PR. Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-09-07doc/contributing: fix whitespaceSandro1-1/+1
2022-09-05Merge pull request #189241 from SuperSandro2000/git-full-hashAnderson Torres1-0/+3
doc/contributing: enforce full commit hashes on github
2022-09-04doc/contributing: enforce full commit hashes on githubSandro Jäckel1-0/+3
2022-08-31nixos/make-options-doc: add inline roles for varname/envarpennae1-1/+3
both of these render distinctly from plain literals in the manpage, and manpages even semantically distinguish between the two.
2022-08-04Correct instructions to obtain a hash for git reposMatthias Bartelmeß1-1/+1
2022-07-03doc/contributing: replace outdated 'nix run' commandsJohannes Maier1-7/+13
Use `nix-shell` instead, but also give an example of the correct flakes version of the commands.
2022-06-26doc/contributing/coding-conventions: add a section about file managersAndersonTorres1-0/+4
2022-06-21Merge pull request #176146 from pennae/module-docs-markdownRobert Hensing1-3/+17
treewide: markdown option docs
2022-06-20maintainers: document new maintainers and team changesGraham Christensen1-0/+105
2022-06-14Merge #162960: staging docs: explain that purple arrows are manualVladimír Čunát1-1/+1
2022-06-12treewide: attempt at markdown option docspennae1-3/+17
2022-06-03nixos/doc: move fetchpatch documentation to fetcher documentationFlorian Klink1-11/+2
… and link from the coding-conventions chapter to it. Closes #48569.
2022-05-18doc: Document that the staging branches may be restrictedJanne Heß1-0/+4
2022-05-09doc: clarify what a 'mass rebuild' isArnout Engelen1-1/+1
2022-05-03Replace "rm" call with "git rm"Matthias Beyer1-1/+1
`git rm` should always be preferred over "normal" `rm`. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
2022-04-20submitting-changes.chapter.md: avoid being specificAdam Joseph1-1/+1
There is some doubt as to exactly how to enumerate all the merges from one branch to another reliably. In the meantime, let's be a little more vague.
2022-04-14Merge pull request #149667 from doronbehar/doc/pname-version-conventionsDoron Behar1-5/+5
docs: Make coding conventions use pname/version
2022-03-25Merge pull request #164651 from Infinisil/remove-optionSetSilvan Mosberger1-2/+2
lib/modules: Finally remove deprecated types.optionSet
2022-03-25fetchpatch: add `relative`Naïm Favier1-2/+3
Allows restricting patches to a specific subdirectory, à la `git diff --relative=subdir`. This cannot be done (cleanly) currently because the `includes` logic happens *after* `stripLen` is applied, so we can't match on `subdir/*`. This change adds a `relative` argument that makes this possible by filtering files before doing any processing, and setting `stripLen` and `extraPrefix` accordingly.
2022-03-18lib/modules: Finally remove deprecated types.optionSetSilvan Mosberger1-2/+2
types.optionSet has been deprecated for almost 10 years now (0e333688cea468a28516bf6935648c03ed62a7bb)! A removal was already attempted in 2019 (27982b408e465554b8831f492362bc87ed0ec02a), but it was promptly reinstantiated since some third-party uses were discovered (f531ce75e4178c6867cc1d0f7fec96b2d5c3f1cb). It's finally time to remove it for good :)
2022-03-09doc/reviewing-contributions: Recommend mkRenamedOptionModuleWithRobert Hensing1-1/+1
2022-03-05submitting-changes.chapter.md: explain that purple arrows are manualAdam Joseph1-1/+1
The documentation for this diagram explains that the blue arrows are automatic processes which happen every six hours. There is no explanation about how the purple arrows happen or how often. As a new contributor to nixpkgs, I incorrectly assumed that the purple arrows were also automatic processes (they aren't), which left me sort of confused about what the whole scheme was accomplishing. Recently I went through the github history to see how often these events happen, and realized that the purple arrows are (a) triggered manually by a nixpkgs project member and (b) happen much, much, much less frequently than every six hours. Now everything makes a lot more sense. I suggest the wording change in this commit, or something similar, to save future contributors the same confusion that I experienced.
2022-02-24Move misc/vim-plugins to applications/editors/vim/pluginsAndersonTorres1-1/+1
2022-02-12doc: discourage setting `phases`, document/encourage runHook instead.Guillaume Girol1-1/+2
Source: https://matrix.to/#/!kjdutkOsheZdjqYmqp:nixos.org/$mff3KCoPY5sfgsUhKn0e4va7hnz7KMXARaO2_UaLNM4?via=nixos.org&via=matrix.org&via=nixos.dev
2022-01-26doc/coding-conventions: Fix version attribute suffix to match realityRobert Hensing1-1/+1
The current doc is wildly out of touch with reality. A regex search shows the following stats. ``` Style example Frequency Regex used nix-2-5: 8 [a-zA-Z]-[0-9]+(-[0-9]+)+ = nix-2_5: 17 [a-zA-Z]-[0-9]+(_[0-9]+)+ = nix_2_5: 689 [a-zA-Z]_[0-9]+(_[0-9]+)+ = nix_2-5: 1 [a-zA-Z]_[0-9]+(-[0-9]+)+ = ```
2022-01-15doc: fix broken linkNicolas Benes1-1/+1
The file was renamed/modified in 3f40ca4 but the documentation was not updated. Closes #155049.
2022-01-03Merge pull request #152451 from ncfavier/unix-man-urlsRenaud1-1/+1
doc: remove reference to unix-man-urls.lua
2021-12-30Merge pull request #149867 from erikarvstedt/docs-stable-releaseJan Tojnar1-3/+13
docs: improve section `Stable release branches`
2021-12-28doc: remove reference to unix-man-urls.luaNaïm Favier1-1/+1
2021-12-28docs: improve section `Stable release branches`Erik Arvstedt1-3/+13
- Explain branch naming scheme for stable release branches - Split into subsections `Automatically backporting ...` and `Manually backporting...`.
2021-12-18doc: minimize mentions of nix-env -i without -A in nixpkgs manualGuillaume Girol1-4/+4
2021-12-08docs: Make coding conventions use pname/versionDoron Behar1-5/+5
Make it clear that we prefer using `pname` and `version` separated and not the `name` attribute.
2021-10-28doc: fix typoSandro Jäckel1-1/+1
2021-10-05doc/contributing: add lib.optional (#121251)Sandro1-0/+15
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
2021-09-07Merge pull request #130047 from NixOS/doc-manpage-roleJan Tojnar1-0/+7
doc: Add support for manpage references