summary refs log tree commit diff
path: root/doc/contributing/contributing-to-documentation.chapter.md
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2021-04-23 12:46:02 +0800
committerBobby Rong <rjl931189261@126.com>2021-04-23 12:53:58 +0800
commit0fd55565d3204fbb152166c2186ba70f6cf38222 (patch)
treeab32bb482a186975daf5ad2a5a4384c99f67c5b6 /doc/contributing/contributing-to-documentation.chapter.md
parent9e400a8b93cda6280be403c936e77cc006a28468 (diff)
downloadnixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar.gz
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar.bz2
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar.lz
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar.xz
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.tar.zst
nixpkgs-0fd55565d3204fbb152166c2186ba70f6cf38222.zip
doc/contributing/*.xml: Convert to markdown
Diffstat (limited to 'doc/contributing/contributing-to-documentation.chapter.md')
-rw-r--r--doc/contributing/contributing-to-documentation.chapter.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/contributing/contributing-to-documentation.chapter.md b/doc/contributing/contributing-to-documentation.chapter.md
new file mode 100644
index 00000000000..642beba74d6
--- /dev/null
+++ b/doc/contributing/contributing-to-documentation.chapter.md
@@ -0,0 +1,24 @@
+# Contributing to this documentation {#chap-contributing}
+
+The DocBook sources of the Nixpkgs manual are in the [doc](https://github.com/NixOS/nixpkgs/tree/master/doc) subdirectory of the Nixpkgs repository.
+
+You can quickly check your edits with `make`:
+
+```ShellSession
+$ cd /path/to/nixpkgs/doc
+$ nix-shell
+[nix-shell]$ make $makeFlags
+```
+
+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:
+
+```ShellSession
+$ 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`.