1
0
Fork 0
mirror of https://github.com/NixOS/nix.dev.git synced 2024-10-18 00:06:26 -04:00
Commit graph

1582 commits

Author SHA1 Message Date
Brian McGillion 327c100954
tutorials: fix passing paramaters to geocode (#812)
* tutorials: fix passing paramaters to geocode

When running the package as-is the following error occurs

``geocode: line 7: $1: unbound``

This is caused because ``scripts.geocode`` does not pass the parameters
down to the wrapped script ``geocode``.

Signed-off-by: Brian McGillion <bmg.avoin@gmail.com>
2023-11-27 07:42:07 +01:00
Valentin Gagarin f587e1d1cf use sentence case for titles consistently 2023-11-27 07:31:32 +01:00
Valentin Gagarin 8264c846ef link to new Nix reference manual page 2023-11-27 07:31:32 +01:00
fricklerhandwerk fee5c5c2ab add update instructions 2023-11-27 07:30:36 +01:00
fricklerhandwerk c70711a9d5 update all links to the Nix manual 2023-11-27 07:30:36 +01:00
fricklerhandwerk 21bfef408a host Nix reference manual on nix.dev
this is the most cursed setup you will see any time soon.

we're dumping the Nix manual unchanged into the build tree *after*
building. the reason is that we'd want to link to it from our table of
contents, but because Sphinx does not allow adding arbitrary files to
the build output in arbitrary locations (only `_static` works). but we
want to place the manual behind a particular URL, and the alternative of
maintaining URL rewrites (e.g. in nginx) is not accessible here because the
infrastructure is managed somewhere else.

now that the files won't appear in their desired locations at Sphinx
build time, we can't use relative links to reference them, therefore we
have to resort to pointing to the web URL the manual will appear at.
this is terrible and I'm sorry. please fix this if you have a better
idea. once we use URLs though, we have to avoid linkchecking, since
those files may not be there before deploying them.

figuring all of this out took way longer than anyone would wish.

Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
2023-11-27 07:30:35 +01:00
Alexandre Macabies a15d8a3eda
Fix link anchor typo (#810) 2023-11-25 15:32:24 +00:00
Silvan Mosberger 614b6fe50f
File sets tutorial (#802)
* source file selection tutorial

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
2023-11-23 17:14:46 +01:00
olaf 7941b348a0
vm change to reproducible command (#804)
* add paragraph on a reproducible nixos-generate-config

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-22 17:43:38 +01:00
olaf 35c4ebadcd
Merge pull request #805 from NixOS/fix-typo
fix typo
2023-11-21 23:58:08 +01:00
Valentin Gagarin 5f5ef7349a
fix typo 2023-11-21 23:50:38 +01:00
Silvan Mosberger 12d0f9d7f1
build-and-deploy: Disable github deployments (#803)
They create a lot of spam in the PR timeline
2023-11-21 20:34:14 +01:00
Silvan Mosberger 37922482b7
Module system deep dive tutorial (#645)
* Draft module system introduction tutorial

* add intro/conclusion, rework prose, follow styleguide, clean diffs

* Review pass

* Apply suggestions from code review

* fix whitespace

* add some more motivation the each section

* make scripts downloadable

* address review comments

* make script actually work

...hopefully. can't test it without Google API key

* add file watching

yes, this looks scary, and yes, it works.

* update diff and wording

* more notes on potential pitfalls

* be explicit which `map` we mean

* split nullable from default values

* also wrap the geocode script

* work through the tutorial to the end

* add tutorial overview

* `lib` is always passed

* add separate section for `evalModules` and fix link

* make option strucutre more self-explanatory

* explain command line invocations

* add note on incomplete reference documentation

* add more highlight to the `config` distinction

* fix parameter passing to the `./map` script

* fix typo

* fix wording

* link to summer of nix

* add missing word

* link to Google Maps API docs

* more explicit requirement

* use correct module system terminology

* Update source/tutorials/module-system/module-system.md

* Apply suggestions from code review

* whitespace

* module-system.md: replace comments with captions

* add missing lang for code-block

* Update module system title

* change most headers to be about module features (#797)

* change most headers to be about module features

Some headers could not be made about module features, and that's a
strong signal that those sections should be removed.

* Apply suggestions from code review

* module-system.md: Fix header casing

Co-authored-by: Alexander Groleau <source@proof.construction>
Co-authored-by: asymmetric <lorenzo@mailbox.org>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-20 17:21:06 +01:00
Daniel Sidhion 46bbb436d8
Update documentation team meeting link (#801) 2023-11-18 18:14:24 +01:00
Silvan Mosberger a77d314879
Less confusing stable channel recommendation (#791)
* Less confusing stable channel recommendation

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-16 17:37:59 +01:00
Ryan Casalino 5e16a993ba
add SOURCE_DATE_EPOCH to Makefile to fix copyright year (#800)
* add SOURCE_DATE_EPOCH to Makefile to fix copyright year

* use date to get unix time in place of git log

* Update Makefile

pass in --date='Jan 1' to date as suggested

Co-authored-by: Silvan Mosberger <github@infinisil.com>

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-11-15 05:16:27 +01:00
asymmetric d135cab53f
Merge pull request #798 from NixOS/vale
Add prose lint checks with Vale
2023-11-13 14:41:12 +01:00
Lorenzo Manacorda 43aeb8fecc ci: run vale with nix-shell
To ensure it's the same version as when doing local development.
2023-11-13 13:52:54 +01:00
Lorenzo Manacorda d83bd80eee vale: check maintainers dir too 2023-11-13 13:48:00 +01:00
Lorenzo Manacorda ca15343a1a Fix spell checking errors 2023-11-13 13:46:03 +01:00
Lorenzo Manacorda 3b19ee1dff Enable custom vocabulary 2023-11-13 13:45:49 +01:00
Lorenzo Manacorda ac17d691d8 vale: add to devShell 2023-11-13 13:28:42 +01:00
Lorenzo Manacorda ab3a1371b2 vale: remove spellcheck feature
Reduce scope of PR to uncontroversial feature, namely header capitalization. The rest can be handled in a separate PR.
2023-11-13 13:28:42 +01:00
Lorenzo Manacorda d9f59bcbdb vale: add vocabulary 2023-11-13 13:28:42 +01:00
Lorenzo Manacorda 36e4c147c7 vale: simplify invocation 2023-11-13 13:28:42 +01:00
Lorenzo Manacorda 46a7c3ce9e vale: run in CI 2023-11-13 13:28:42 +01:00
Lorenzo Manacorda f998ca6edf vale: init
Prose linter, can be run with:

    vale --glob='*.md' .
2023-11-13 13:28:42 +01:00
Lorenzo Manacorda 095e794b2c unignore .envrc 2023-11-13 13:28:42 +01:00
Valentin Gagarin 5aa0254754
search path -> lookup path (#747)
recent additions to the Nix manual clarify the distinction between
search path and lookup path, and also document the resolution algorithm.

lookup paths are now a distinct Nix language construct with its own
reference documentation.
2023-11-13 10:30:42 +01:00
Addison Grant ea8357b149
Remove specific software name from header in docs (#795)
* Remove specific software name from header

There's enough detail about it below, and the specific tech isn't the point of this section anyway.

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-09 23:05:01 +01:00
Rob Thomas fcac94d552
updated the context for the installation script to match the example … (#793)
* updated the context for the installation script to match the example for steps outlined

Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2023-11-09 18:39:00 +01:00
Valentin Gagarin 0d770fce2e
fix formatting/punctuation (#794) 2023-11-09 16:38:09 +01:00
Valentin Gagarin 8a74a98c54
rewrite guide to pinning dependencies with niv (#782)
* rewrite guide to pinning dependencies with niv

* use the specific branch directly

Co-authored-by: Silvan Mosberger <github@infinisil.com>

* use the shell's niv explicitly

* Apply suggestions from code review

---------

Co-authored-by: Silvan Mosberger <github@infinisil.com>
2023-11-07 22:26:23 +01:00
Silvan Mosberger aa8a016064
Merge pull request #783 from fricklerhandwerk/remove-vision
remove the vision outline
2023-11-07 17:04:53 +01:00
Silvan Mosberger 7499e8ead0
Merge pull request #792 from NixOS/pure
default.nix: Allow pure evaluation
2023-11-07 05:13:49 +01:00
Silvan Mosberger c5e1cd7bbb default.nix: Allow pure evaluation 2023-11-07 04:43:55 +01:00
Silvan Mosberger 91145954ae
Merge pull request #761 from fricklerhandwerk/remove-flakes
remove flake.nix
2023-11-07 04:41:02 +01:00
Daniel R ab98971f03
move question 'what are channels...?' -f recipes -t concepts (#744)
Co-authored-by: Alexander Groleau <alex@proof.construction>
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Silvan Mosberger <silvan.mosberger@tweag.io>
2023-11-07 03:11:25 +01:00
fricklerhandwerk 533724820c use "source" for niv source names
this removes a difference to how Nix currently fetches flake references.

using a constant is preferrable because renaming the source won't force
downstream rebuilds of store objects cached from when flakes were used.

upstream fix: https://github.com/nmattia/niv/pull/379
2023-11-07 03:06:11 +01:00
fricklerhandwerk 1e2299cff6 remove flake.nix
use niv for dependency management.

this follows our own tutorials on writing packages and development
shells, and we generally find it is easier to read and work with.

Co-authored-by: Alejandro Sanchez Medina <alejandrosanchzmedina@gmail.com>
2023-11-07 03:04:28 +01:00
Alexander Groleau 51e43e3829
Merge pull request #790 from wamirez/master
rephrase best practices for clarity
2023-11-06 08:32:36 -08:00
wamirez b1ae5e47fc rephrase best practices for clarity 2023-11-06 12:23:27 -04:00
Pierre Bourdon 3f5c86d466 ci: fix deploy-and-build production branch filter 2023-11-03 18:33:24 +01:00
Pierre Bourdon 741535173c ci: switch to deploy to Netlify instead of Cloudflare pages (#772) 2023-11-03 17:23:16 +01:00
fricklerhandwerk 8346ccdc7f remove the vision outline
we're already close enough to the original idea that there is no need to
keep it here.
2023-11-02 20:39:29 +01:00
Valentin Gagarin 1b3be81da7
fix stray link reference 2023-11-02 20:03:33 +01:00
Valentin Gagarin 5c0ac8a727
add best practice on reproducible Nixpkgs configuration (#780) 2023-11-02 02:30:40 +01:00
Alexander Groleau 8c5659d85b
Merge pull request #777 from fricklerhandwerk/packaging-existing
dissolve the Learning Journey section
2023-11-01 17:37:12 -07:00
fricklerhandwerk 8afee98203 dissolve the Learning Journey section
This does not yet follow #701, because the change to get there would be
too big. The goal is to keep the table of contents meaningful at all
times and the diff of each pull request manageable.

The packaging tutorial is quite important, so it's not wrong to have it
visible on the front page until we have enough material for a packaging
section.

The sharing dependencies article should really be a very brief guide, but
because that would be quite a big change, it's only moved to the Guides
section for now.
2023-11-02 00:13:32 +01:00
Alexander Groleau 8186923cfc
Merge pull request #779 from fricklerhandwerk/fix-styling
fix styling issues and links
2023-11-01 15:53:40 -07:00