nixpkgs/doc/contributing/contributing-to-documentation.chapter.md
Jan Tojnar f0dfe62190 doc: Fix make in nix-shell
When running make manually, makeFlags will not be passed. Let’s just use an environment variable.

(cherry picked from commit 034a9c0e16aab12978bb4a1c1f0e86c64778b388)
2021-06-05 11:29:01 +00:00

730 B

Contributing to this documentation

The DocBook sources of the Nixpkgs manual are in the doc subdirectory of the Nixpkgs repository.

You can quickly check your edits with make:

$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make

If you experience problems, run make debug to help understand the docbook errors.

After making modifications to the manual, it's important to build it before committing. You can do that as follows:

$ cd /path/to/nixpkgs/doc
$ nix-shell
[nix-shell]$ make clean
[nix-shell]$ nix-build .

If the build succeeds, the manual will be in ./result/share/doc/nixpkgs/manual.html.