Skip to content

Commit

Permalink
Manual: Chunk into separate pages
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Aug 25, 2014
1 parent 6fab53b commit 81f2749
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 18 deletions.
28 changes: 14 additions & 14 deletions nixos/doc/manual/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,6 @@ in rec {

buildInputs = [ libxml2 libxslt ];

xsltFlags = ''
--param section.autolabel 1
--param section.label.includes.component.label 1
--param html.stylesheet 'style.css'
--param xref.with.number.and.title 1
--param toc.section.depth 3
--param admon.style '''
--param callout.graphics.extension '.gif'
'';

buildCommand = ''
${copySources}
Expand All @@ -76,10 +66,20 @@ in rec {
# Generate the HTML manual.
dst=$out/share/doc/nixos
mkdir -p $dst
xsltproc $xsltFlags --nonet --xinclude \
--output $dst/manual.html \
${docbook5_xsl}/xml/xsl/docbook/xhtml/docbook.xsl \
./manual.xml
xsltproc \
--param section.autolabel 1 \
--param section.label.includes.component.label 1 \
--stringparam html.stylesheet style.css \
--param xref.with.number.and.title 1 \
--param toc.section.depth 3 \
--stringparam admon.style "" \
--stringparam callout.graphics.extension .gif \
--param chunk.section.depth 1 \
--param chunk.first.sections 1 \
--param use.id.as.filename 1 \
--stringparam generate.toc "book toc chapter toc" \
--nonet --xinclude --output $dst/ \
${docbook5_xsl}/xml/xsl/docbook/xhtml/chunkfast.xsl ./manual.xml
mkdir -p $dst/images/callouts
cp ${docbook5_xsl}/xml/xsl/docbook/images/callouts/*.gif $dst/images/callouts/
Expand Down
7 changes: 3 additions & 4 deletions nixos/doc/manual/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ table.simplelist
margin-bottom: 1em;
}

div.affiliation
{
font-style: italic;
}
div.navheader table, div.navfooter table {
box-shadow: none;
}

0 comments on commit 81f2749

Please sign in to comment.