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

Merge pull request #905 from NixOS/readme-deploy-test

add more preview instructions to README
This commit is contained in:
Daniel Sidhion 2024-02-06 19:33:16 -08:00 committed by GitHub
commit a2c8326dcf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,10 +7,18 @@ 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](https://myst-parser.readthedocs.io/en/latest/syntax/typography.html#syntax-core).
For contents and style see [contribution guide](CONTRIBUTING.md).
## 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.
For contents and style see [contribution guide](CONTRIBUTING.md).
To manually test [redirects](./_redirects):
Content is written in MyST, a superset of CommonMark. For its syntax, see the [MyST docs](https://myst-parser.readthedocs.io/en/latest/syntax/typography.html#syntax-core).
```console
nix-shell -p netlify-cli --run "cd result; netlify dev"
```