contributing: add note on testing the docs

This commit is contained in:
Matt Sturgeon 2025-05-22 13:56:18 +01:00
parent 1ff5e1a33b
commit e385bec735
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -13,6 +13,14 @@ In order to submit a change you must be careful of several points:
- The commit title should be consistent with our style. This usually looks like "plugins/<name>: fixed some bug", - The commit title should be consistent with our style. This usually looks like "plugins/<name>: fixed some bug",
you can browse the commit history of the files you're editing to see previous commit messages. you can browse the commit history of the files you're editing to see previous commit messages.
### Testing the docs locally
When making a change, you may wish to see how it looks in Nixvim's documentation.
This can be done by running `nix run .#docs` from within a Nixvim repo.
Alternatively, if you've entered a Nixvim dev shell, you can run `serve-docs`.
Either command will start a HTTP server on port 8000 and open it in your browser using `xdg-open`.
## Nixvim Architecture ## Nixvim Architecture
Nixvim is mainly built around `pkgs.neovimUtils.makeNeovimConfig`. Nixvim is mainly built around `pkgs.neovimUtils.makeNeovimConfig`.