mirror of
https://github.com/NixOS/nix.dev.git
synced 2024-10-18 14:32:43 -04:00
f4794639c6
- Use separate JSON files to track sources for Nixpkgs and Nix releases This greatly simplifies the code, because we can directly encode versions as keys without ambiguity - Avoid an instance of IFD for the redirect generation - Use pkgs.substitute instead of builtins.replaceStrings - Turn off the single-page feature for now. It was added by Valentin in a previous commit, but I think we should discuss this a bit more - Simplify a lot of the code and add comments - Fix the mutable redirects, they were broken by a parent commit - Remove pieces of Nix code that weren't used, like the import of the Nixpkgs manual. This can be added in the future when necessary - Make sure that Nix versions are cached by building from the store path |
||
---|---|---|
.github | ||
maintainers | ||
nix | ||
source | ||
vale | ||
.editorconfig | ||
.envrc | ||
.gitignore | ||
.imgbotconfig | ||
.vale.ini | ||
_redirects | ||
CONTRIBUTING.md | ||
default.nix | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
run_code_block_tests.sh | ||
runtime.txt | ||
shell.nix |
nix.dev
Official documentation for getting things done with Nix.
Contributing
Content is written in MyST, a superset of CommonMark. For its syntax, see the MyST docs.
For contents and style see contribution guide.
Local preview
Run nix-shell --run devmode
and open a browser at http://localhost:5500.
As you make changes your browser should auto-reload within a few seconds.
To manually test redirects:
nix-shell -p netlify-cli --run "cd result; netlify dev"