Revert "nixos/doc: convert "Contributing to this manual" to CommonMark"
This reverts commit 7501467903
.
This commit is contained in:
parent
c294c2fb40
commit
4a974e6695
|
@ -1,13 +0,0 @@
|
||||||
# Contributing to this manual {#chap-contributing}
|
|
||||||
|
|
||||||
The DocBook and CommonMark sources of NixOS' manual are in the [nixos/doc/manual](https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual) subdirectory of the [Nixpkgs](https://github.com/NixOS/nixpkgs) repository.
|
|
||||||
|
|
||||||
You can quickly check your edits with the following:
|
|
||||||
|
|
||||||
```ShellSession
|
|
||||||
$ cd /path/to/nixpkgs
|
|
||||||
$ ./nixos/doc/manual/md-to-db.sh
|
|
||||||
$ nix-build nixos/release.nix -A manual.x86_64-linux
|
|
||||||
```
|
|
||||||
|
|
||||||
If the build succeeds, the manual will be in `./result/share/doc/nixos/index.html`.
|
|
|
@ -0,0 +1,22 @@
|
||||||
|
<chapter xmlns="http://docbook.org/ns/docbook"
|
||||||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||||
|
xml:id="chap-contributing">
|
||||||
|
<title>Contributing to this manual</title>
|
||||||
|
<para>
|
||||||
|
The DocBook sources of NixOS' manual are in the <filename
|
||||||
|
xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual">
|
||||||
|
nixos/doc/manual</filename> subdirectory of the <link
|
||||||
|
xlink:href="https://github.com/NixOS/nixpkgs">Nixpkgs</link> repository.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
You can quickly check your edits with the following:
|
||||||
|
</para>
|
||||||
|
<screen>
|
||||||
|
<prompt>$ </prompt>cd /path/to/nixpkgs
|
||||||
|
<prompt>$ </prompt>nix-build nixos/release.nix -A manual.x86_64-linux
|
||||||
|
</screen>
|
||||||
|
<para>
|
||||||
|
If the build succeeds, the manual will be in
|
||||||
|
<filename>./result/share/doc/nixos/index.html</filename>.
|
||||||
|
</para>
|
||||||
|
</chapter>
|
|
@ -1,22 +0,0 @@
|
||||||
<chapter xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="chap-contributing">
|
|
||||||
<title>Contributing to this manual</title>
|
|
||||||
<para>
|
|
||||||
The DocBook and CommonMark sources of NixOS’ manual are in the
|
|
||||||
<link xlink:href="https://github.com/NixOS/nixpkgs/tree/master/nixos/doc/manual">nixos/doc/manual</link>
|
|
||||||
subdirectory of the
|
|
||||||
<link xlink:href="https://github.com/NixOS/nixpkgs">Nixpkgs</link>
|
|
||||||
repository.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
You can quickly check your edits with the following:
|
|
||||||
</para>
|
|
||||||
<programlisting>
|
|
||||||
$ cd /path/to/nixpkgs
|
|
||||||
$ ./nixos/doc/manual/md-to-db.sh
|
|
||||||
$ nix-build nixos/release.nix -A manual.x86_64-linux
|
|
||||||
</programlisting>
|
|
||||||
<para>
|
|
||||||
If the build succeeds, the manual will be in
|
|
||||||
<literal>./result/share/doc/nixos/index.html</literal>.
|
|
||||||
</para>
|
|
||||||
</chapter>
|
|
|
@ -19,6 +19,6 @@
|
||||||
<xi:include href="./generated/options-db.xml"
|
<xi:include href="./generated/options-db.xml"
|
||||||
xpointer="configuration-variable-list" />
|
xpointer="configuration-variable-list" />
|
||||||
</appendix>
|
</appendix>
|
||||||
<xi:include href="./from_md/contributing-to-this-manual.chapter.xml" />
|
<xi:include href="contributing-to-this-manual.xml" />
|
||||||
<xi:include href="release-notes/release-notes.xml" />
|
<xi:include href="release-notes/release-notes.xml" />
|
||||||
</book>
|
</book>
|
||||||
|
|
|
@ -12,8 +12,8 @@ OUT="$DIR/from_md"
|
||||||
mapfile -t MD_FILES < <(find . -type f -regex '.*\.md$')
|
mapfile -t MD_FILES < <(find . -type f -regex '.*\.md$')
|
||||||
|
|
||||||
for mf in ${MD_FILES[*]}; do
|
for mf in ${MD_FILES[*]}; do
|
||||||
if [ "${mf: -11}" == ".section.md" ]; then
|
|
||||||
mkdir -p $(dirname "$OUT/$mf")
|
mkdir -p $(dirname "$OUT/$mf")
|
||||||
|
if [ "${mf: -11}" == ".section.md" ]; then
|
||||||
pandoc "$mf" -t docbook \
|
pandoc "$mf" -t docbook \
|
||||||
--extract-media=media \
|
--extract-media=media \
|
||||||
-f markdown+smart \
|
-f markdown+smart \
|
||||||
|
@ -21,7 +21,6 @@ for mf in ${MD_FILES[*]}; do
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "${mf: -11}" == ".chapter.md" ]; then
|
if [ "${mf: -11}" == ".chapter.md" ]; then
|
||||||
mkdir -p $(dirname "$OUT/$mf")
|
|
||||||
pandoc "$mf" -t docbook \
|
pandoc "$mf" -t docbook \
|
||||||
--top-level-division=chapter \
|
--top-level-division=chapter \
|
||||||
--extract-media=media \
|
--extract-media=media \
|
||||||
|
|
Loading…
Reference in New Issue