tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Manual: Chunk into separate pages
Eelco Dolstra
11 years ago
81f27490
6fab53b4
+17
-18
2 changed files
expand all
collapse all
unified
split
nixos
doc
manual
default.nix
style.css
+14
-14
nixos/doc/manual/default.nix
···
55
55
56
56
buildInputs = [ libxml2 libxslt ];
57
57
58
58
-
xsltFlags = ''
59
59
-
--param section.autolabel 1
60
60
-
--param section.label.includes.component.label 1
61
61
-
--param html.stylesheet 'style.css'
62
62
-
--param xref.with.number.and.title 1
63
63
-
--param toc.section.depth 3
64
64
-
--param admon.style '''
65
65
-
--param callout.graphics.extension '.gif'
66
66
-
'';
67
67
-
68
58
buildCommand = ''
69
59
${copySources}
70
60
···
76
66
# Generate the HTML manual.
77
67
dst=$out/share/doc/nixos
78
68
mkdir -p $dst
79
79
-
xsltproc $xsltFlags --nonet --xinclude \
80
80
-
--output $dst/manual.html \
81
81
-
${docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
82
82
-
./manual.xml
69
69
+
xsltproc \
70
70
+
--param section.autolabel 1 \
71
71
+
--param section.label.includes.component.label 1 \
72
72
+
--stringparam html.stylesheet style.css \
73
73
+
--param xref.with.number.and.title 1 \
74
74
+
--param toc.section.depth 3 \
75
75
+
--stringparam admon.style "" \
76
76
+
--stringparam callout.graphics.extension .gif \
77
77
+
--param chunk.section.depth 1 \
78
78
+
--param chunk.first.sections 1 \
79
79
+
--param use.id.as.filename 1 \
80
80
+
--stringparam generate.toc "book toc chapter toc" \
81
81
+
--nonet --xinclude --output $dst/ \
82
82
+
${docbook5_xsl}/xml/xsl/docbook/xhtml/chunkfast.xsl ./manual.xml
83
83
84
84
mkdir -p $dst/images/callouts
85
85
cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/
+3
-4
nixos/doc/manual/style.css
···
262
262
margin-bottom: 1em;
263
263
}
264
264
265
265
-
div.affiliation
266
266
-
{
267
267
-
font-style: italic;
268
268
-
}
265
265
+
div.navheader table, div.navfooter table {
266
266
+
box-shadow: none;
267
267
+
}