Changeset b711e1d


Ignore:
Timestamp:
05/30/2004 10:54:18 AM (20 years ago)
Author:
Manuel Canales Esparcia <manuel@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
574b0ea
Parents:
b470bce
Message:

Added a CSS to can print the HTMLs.
Hardoded a CSS code into the nuchunk output to make it full stand alone.
Updated the Makefile.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3729 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rb470bce rb711e1d  
    11BASEDIR=~/lfs-book
     2CHUNK_QUIET=0
     3PDF_OUTPUT=LFS-BOOK.pdf
     4PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf
     5NOCHUNKS_OUTPUT=LFS-BOOK.html
    26
    37lfs:
    4         xsltproc --xinclude --nonet -stringparam base.dir $(BASEDIR)/ \
    5           stylesheets/lfs-chunked.xsl index.xml
     8        xsltproc --xinclude --nonet -stringparam chunk.quietly $(CHUNK_QUIET) \
     9          -stringparam base.dir $(BASEDIR)/ stylesheets/lfs-chunked.xsl \
     10          index.xml
    611
    712        if [ ! -e $(BASEDIR)/stylesheets ]; then \
    813          mkdir -p $(BASEDIR)/stylesheets; \
    914        fi;
    10         cp stylesheets/lfs.css $(BASEDIR)/stylesheets
     15        cp stylesheets/*.css $(BASEDIR)/stylesheets
    1116
    1217        if [ ! -e $(BASEDIR)/images ]; then \
     
    1520        cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \
    1621          $(BASEDIR)/images
    17         cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@" \
     22        cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \
    1823          index.html part1.html part2.html part3.html longindex.html
    1924        cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \
     
    2631          index.xml
    2732        sed -i -e "s/inherit/all/" lfs.fo
    28         fop.sh lfs.fo lfs.pdf
     33        fop.sh lfs.fo $(PDF_OUTPUT)
    2934
    3035print:
     
    3237          stylesheets/lfs-print.xsl index.xml
    3338        sed -i -e "s/inherit/all/" lfs-print.fo
    34         fop.sh lfs-print.fo lfs-print.pdf
     39        fop.sh lfs-print.fo $(PRINT_OUTPUT)
    3540
    3641nochunks:
    37         xsltproc --xinclude --nonet --output lfs.html \
     42        xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \
    3843          stylesheets/lfs-nochunks.xsl index.xml
    39         tidy -config tidy.conf lfs.html || true
     44        tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true
    4045
    4146validate:
  • stylesheets/lfs-chunked2.xsl

    rb470bce rb711e1d  
    1717    <!-- The CSS Stylesheet -->
    1818  <xsl:param name="html.stylesheet" select="'../stylesheets/lfs.css'"/>
     19  <xsl:template name='user.head.content'>
     20     <link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css" media="print"/>
     21  </xsl:template>
    1922
    2023    <!-- Dropping some unwanted style attributes -->
  • stylesheets/lfs-nochunks.xsl

    rb470bce rb711e1d  
    55                version="1.0">
    66
    7         <!-- We use XHTML -->
     7    <!-- We use XHTML -->
    88  <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/docbook.xsl"/>
    99
     
    1111  <xsl:output method="html" encoding="ISO-8859-1" indent="no" />
    1212 
    13         <!-- Including our others customized templates -->
     13   <!-- Including our others customized templates -->
    1414  <xsl:include href="xhtml/lfs-admon.xsl"/>
    1515  <xsl:include href="xhtml/lfs-index.xsl"/>
    1616  <xsl:include href="xhtml/lfs-mixed.xsl"/>
    1717  <xsl:include href="xhtml/lfs-navigational.xsl"/>
    18   <!-- The following breaks hyperlinks in the TOC -->
    19   <!--  <xsl:include href="xhtml/lfs-titles.xsl"/> -->
    2018  <xsl:include href="xhtml/lfs-toc.xsl"/>
    2119
    22         <!-- The CSS Stylesheet -->
    23   <xsl:param name="html.stylesheet" select="'lfs.css'"/>
    24 
    25         <!-- Dropping some unwanted style attributes -->
     20    <!-- Dropping some unwanted style attributes -->
    2621  <xsl:param name="ulink.target" select="''"></xsl:param>
    2722  <xsl:param name="css.decoration" select="0"></xsl:param>
    28  
     23
     24    <!-- The CSS Stylesheet -->
     25  <xsl:template name='user.head.content'>
     26    <style type="text/css">
     27      <xsl:text>
     28/* Global settings */
     29body {
     30  font-family: sans-serif;
     31  text-align: left;
     32  background: #fff;
     33  color: #333;
     34  margin: 1em;
     35  padding: 0;
     36  font-size: 1em;
     37  line-height: 1.2em
     38}
     39
     40a:link { color: #22b; }
     41a:visited { color: #7e4988; }
     42a:hover, a:focus { color: #d30e08; }
     43a:active { color: #6b77b1;}
     44
     45/* Headers */
     46h1, h2, b, strong {
     47  color: #000;
     48  font-weight: bold;
     49}
     50
     51h3, h4, h5, h6 {
     52  color: #222;
     53}
     54
     55h1 { font-size: 173%; text-align: center; }
     56h2 { font-size: 144%; }
     57h2.subtitle { text-align: center; }
     58h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; }
     59h4 { font-size: 110%;}
     60h5, h6 { font-size: 110%; font-style: italic; }
     61
     62/* TOC and Index*/
     63
     64div.toc ul, div.index ul, div.navheader ul, div.navfooter ul {
     65  list-style: none;
     66}
     67
     68div.toc, div.dedication {
     69  padding-left: 1em;
     70}
     71
     72li.preface {
     73  margin-left: 1em;
     74}
     75
     76div.toc ul li h3, div.toc ul li h4 {
     77  margin: .4em;
     78}
     79
     80.item {
     81    width: 15em;
     82    float: left;
     83}
     84
     85.secitem {
     86    font-weight: normal;
     87    width: 14em;
     88    float: left;
     89}
     90
     91/* Admonitions */
     92div.note, div.tip {
     93  background-color: #fffff6;
     94  border: 2px solid #dbddec;
     95  width: 90%;
     96  margin: .5em auto;
     97}
     98
     99div.important, div.warning, div.caution {
     100  background-color: #fffff6;
     101  border: medium solid #400;
     102  width: 90%;
     103  margin: 1.5em auto;
     104  color: #600;
     105  font-size: larger;
     106}
     107
     108div.important h3, div.warning h3, div.caution h3 {
     109  color: #900;
     110}
     111
     112div.admonhead img {
     113  display: none;
     114}
     115
     116h3.admontitle {
     117  padding-left: 2.5em;
     118  padding-top: 1em;
     119}
     120
     121div.admonbody {
     122  margin: .5em;
     123}
     124
     125div.important em, div.warning em, div.caution em {
     126  color: #000;
     127  font-weight: bold;
     128}
     129
     130div.important tt, div.warning tt, div.caution tt {
     131  font-weight: bold;
     132}
     133
     134/* variablelist and segmentedlist */
     135dl {
     136  margin: 0;
     137  padding: 0;
     138}
     139
     140dt {
     141  display: list-item;
     142  font-weight: bold;
     143  margin: .33em 0 0 1em;
     144  padding: 0;
     145}
     146
     147div.content dt {
     148  list-style: none;
     149}
     150
     151dd  {
     152  margin: 0 0 1em 3em;
     153  padding: 0;
     154}
     155
     156div.variablelist dd {
     157  margin-bottom: 1em;
     158}
     159
     160div.variablelist dd p {
     161  margin-top: 0px;
     162}
     163
     164dl.materials dd {
     165  margin-left: 0px;
     166}
     167
     168div.segmentedlist {
     169  margin-top: 1em;
     170}
     171
     172div.segmentedlist p {
     173  margin: 0px auto;
     174}
     175
     176/* Indented blocks */
     177p, ul, dl, code, blockquote {
     178  padding-left: 1em;
     179}
     180
     181/* Monospaced elements */
     182tt, code, kbd, pre, .command {
     183  font-family: monospace;
     184}
     185
     186pre.userinput {
     187  color: #101310;
     188  background-color: #e5e5e5;
     189  border: 1px solid #050505;
     190  padding: .5em 1em;
     191  margin: 0 2em;
     192  font-weight: bold;
     193}
     194
     195pre.screen {
     196  background-color: #e9e9e9;
     197  border: 1px solid #050505;
     198  padding: .5em 1em;
     199  margin: 0 2em;
     200}
     201
     202/* Sections */
     203div.package {
     204  background: #f5f6f7;
     205  border-bottom: 0.2em solid #dbddec;
     206  padding: 0.5em 0.5em 0.3em 0.5em;
     207  margin: 0px auto;
     208}
     209
     210div.installation {
     211  padding: 0 0.5em 0.3em 0.5em;
     212  margin: 0.5em 0 0.5em 0;
     213}
     214
     215div.configuration {
     216  background:   #fefefe;
     217  border-top: 0.2em solid #dbddec;
     218  padding: 0.5em;
     219  margin: 0.5em 0 .5em 0;
     220}
     221
     222div.content {
     223  background: #f5f6f7;
     224  border-top: 0.2em solid #dbddec;
     225  border-bottom: 0.2em solid #dbddec;
     226  padding: 0.5em 0.5em 1em 0.5em;
     227  margin: 0.5em 0 .5em 0;
     228}
     229
     230div.installation h3.title, div.content h3.title {
     231  padding-top: 0.3em;
     232  margin: 0;
     233}
     234
     235div.book, div.preface, div.part, div.chapter, div.sect1, div.index {
     236  padding-bottom: 0.5em;
     237}
     238
     239div.preface h2, div.part h1, div.chapter h2.title, div.sect1 h2.title, div.index h1 {
     240  background: #f5f6f7;
     241  border-bottom: .2em solid #dbddec;
     242  border-top: .2em solid #dbddec;
     243  margin-top 1em;
     244  padding: .5em;
     245  text-align: center;
     246}
     247
     248div.book h1 {
     249  background: #f5f6f7;
     250  margin: 0px auto;
     251  padding: 0.5em;
     252}
     253
     254div.book h2.subtitle {
     255  background: #dbddec;
     256  margin: 0px auto;
     257  padding: 0.2em;
     258}
     259div.authorgroup, div p.copyright, div.abstract {
     260  background: #f5f6f7;
     261  margin: 0px auto;
     262  padding:  1em 0.5em;
     263}
     264
     265hr {
     266  background: #dbddec;
     267  height: .3em;
     268  border: 0px;
     269  margin: 0px auto;
     270  padding: 0;
     271}
     272      </xsl:text>
     273    </style>
     274  </xsl:template>
     275
    29276</xsl:stylesheet>
  • stylesheets/lfs.css

    rb470bce rb711e1d  
    179179
    180180dt {
     181  display: list-item;
    181182  font-weight: bold;
    182183  margin: .33em 0 0 1em;
    183184  padding: 0;
     185}
     186
     187div.content dt {
     188  list-style: none;
    184189}
    185190
     
    195200div.variablelist dd p {
    196201  margin-top: 0px;
    197 }
    198 
    199 dl.materials dt, div.installation dt, div.configuration dt, div.sect2 dt {
    200   display: list-item;
    201202}
    202203
Note: See TracChangeset for help on using the changeset viewer.