mirror of
https://salsa.debian.org/hertzog/debian-handbook.git
synced 2026-01-11 19:56:38 +00:00
Use conditional tags to not include chapter pictures in non-PDF builds
This saves many megabytes in the generated files.
This commit is contained in:
parent
56bf3aee79
commit
bc7bb04ffd
21 changed files with 30 additions and 19 deletions
|
|
@ -18,7 +18,7 @@ topdir=$(pwd)
|
|||
parse_options "$@"
|
||||
|
||||
if [ ! -e tmp/$OPT_lang/xml ] || [ -z "$OPT_skip" ]; then
|
||||
publican build --formats=xml --langs=$OPT_lang
|
||||
publican build --config=publican-pdf.cfg --formats=xml --langs=$OPT_lang
|
||||
fi
|
||||
|
||||
cp -a build/dblatex tmp/$OPT_lang/xml/
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="the-debian-project">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-pres-debian.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="case-study">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-etude-cas.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="existing-setup">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-existant.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="installation">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-installation.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="packaging-system">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-paquetage.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="apt">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-apt.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="solving-problems">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-src-info.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="basic-configuration">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-config-base.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="unix-services">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-services-unix.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="network-infrastructure">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-infrastructure.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="network-services">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-services-reseau.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="advanced-administration">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-admin-avancee.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="workstation">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-station-travail-2.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="security">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-securite.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="debian-packaging">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-plus-loin.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<chapter id="conclusion">
|
||||
<chapterinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-conclusion.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<appendix id="derivative-distributions">
|
||||
<appendixinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-station-travail.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?xml version="1.0"?>
|
||||
<appendix id="short-remedial-course">
|
||||
<appendixinfo>
|
||||
<mediaobject>
|
||||
<mediaobject condition="pdf">
|
||||
<imageobject>
|
||||
<imagedata fileref="images/chap-rattrapage.png" scalefit="1"/>
|
||||
</imageobject>
|
||||
|
|
|
|||
10
publican-pdf.cfg
Normal file
10
publican-pdf.cfg
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Config::Simple 4.59
|
||||
# Fri Apr 2 10:31:14 2010
|
||||
|
||||
xml_lang: en-US
|
||||
type: Book
|
||||
brand: debian
|
||||
docname: debian-handbook
|
||||
prod_url: http://www.debian.org
|
||||
doc_url: http://debian-handbook.info
|
||||
condition: pdf
|
||||
|
|
@ -7,3 +7,4 @@ brand: debian
|
|||
docname: debian-handbook
|
||||
prod_url: http://www.debian.org
|
||||
doc_url: http://debian-handbook.info
|
||||
condition: none
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue