tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Manual: Reduce chunking
Fixes #7607.
Eelco Dolstra
10 years ago
48a25dc8
323fed42
+14
-3
2 changed files
expand all
collapse all
unified
split
nixos
doc
manual
default.nix
manual.xml
+13
-2
nixos/doc/manual/default.nix
···
61
61
echo "${version}" > version
62
62
'';
63
63
64
64
+
toc = builtins.toFile "toc.xml"
65
65
+
''
66
66
+
<toc role="chunk-toc">
67
67
+
<d:tocentry xmlns:d="http://docbook.org/ns/docbook" linkend="book-nixos-manual"><?dbhtml filename="index.html"?>
68
68
+
<d:tocentry linkend="ch-options"><?dbhtml filename="options.html"?>
69
69
+
</d:tocentry>
70
70
+
</d:tocentry>
71
71
+
</toc>
72
72
+
'';
73
73
+
64
74
in rec {
65
75
66
76
# The NixOS options in JSON format.
···
113
123
--param chunk.section.depth 0 \
114
124
--param chunk.first.sections 1 \
115
125
--param use.id.as.filename 1 \
116
116
-
--stringparam generate.toc "book toc chapter toc appendix toc" \
126
126
+
--stringparam generate.toc "book toc appendix toc" \
127
127
+
--stringparam chunk.toc ${toc} \
117
128
--nonet --xinclude --output $dst/ \
118
118
-
${docbook5_xsl}/xml/xsl/docbook/xhtml/chunkfast.xsl ./manual.xml
129
129
+
${docbook5_xsl}/xml/xsl/docbook/xhtml/chunktoc.xsl ./manual.xml
119
130
120
131
mkdir -p $dst/images/callouts
121
132
cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/
+1
-1
nixos/doc/manual/manual.xml
···
2
2
xmlns:xlink="http://www.w3.org/1999/xlink"
3
3
xmlns:xi="http://www.w3.org/2001/XInclude"
4
4
version="5.0"
5
5
-
xml:id="NixOSManual">
5
5
+
xml:id="book-nixos-manual">
6
6
7
7
<info>
8
8
<title>NixOS Manual</title>