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

49 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2022-07-11 09:48:50 -04:00
# Contributing to nix.dev
nix.dev is a community effort to collect, create, and maintain world-class learning resources for Nix.
We strongly encourage everyone interested to participate:
- Make a [pull request](https://github.com/NixOS/nix.dev/pulls) if you want to introduce an incremental change.
- Open an [issue](https://github.com/NixOS/nix.dev/issues) if you want to discuss a significant change before starting to work on it.
Please read our [contributor guide](https://nix.dev/contributing/documentation) for more details.
## Local preview
Enter the development environment with `nix-shell`, or [set up direnv](https://nix.dev/guides/recipes/direnv.html)` and run `direnv allow`, and then:
```shell-session
[nix-shell:nix.dev]$ devmode
```
and open a browser at <http://localhost:5500>.
As you make changes, your browser should auto-reload.
To manually test [redirects](./_redirects):
```shell-session
[nix-shell:nix.dev]$ nix-build -A build
[nix-shell:nix.dev]$ netlify dev -d result
```
## Building the reference manuals
By default nix.dev builds without the various versions of the Nix reference manual, as that takes quite a while due to how it's currently implemented.
To enable building the manuals:
```shell-session
[nix-shell:nix.dev]$ nix-build -A build --arg withManuals true
[nix-shell:nix.dev]$ devmode --arg withManuals true
```
2023-11-02 15:37:11 -04:00
## Updating reference manuals
With the current setup, the [Nix manual hosted on nix.dev](https://nix.dev/reference/nix-manual) does not get updated automatically with new releases.
2023-11-02 15:37:11 -04:00
The following manual steps are required:
```shell-session
nix-shell --run update-nixpkgs-releases
nix-shell --run update-nix-releases
```