Changeset b711e1d
- Timestamp:
- 05/30/2004 10:54:18 AM (20 years ago)
- 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
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
rb470bce rb711e1d 1 1 BASEDIR=~/lfs-book 2 CHUNK_QUIET=0 3 PDF_OUTPUT=LFS-BOOK.pdf 4 PRINT_OUTPUT=LFS-BOOK-PRINTABLE.pdf 5 NOCHUNKS_OUTPUT=LFS-BOOK.html 2 6 3 7 lfs: 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 6 11 7 12 if [ ! -e $(BASEDIR)/stylesheets ]; then \ 8 13 mkdir -p $(BASEDIR)/stylesheets; \ 9 14 fi; 10 cp stylesheets/ lfs.css $(BASEDIR)/stylesheets15 cp stylesheets/*.css $(BASEDIR)/stylesheets 11 16 12 17 if [ ! -e $(BASEDIR)/images ]; then \ … … 15 20 cp /usr/share/xml/docbook/xsl-stylesheets-1.65.1/images/*.png \ 16 21 $(BASEDIR)/images 17 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@ " \22 cd $(BASEDIR)/; sed -i -e "s@../stylesheets@stylesheets@g" \ 18 23 index.html part1.html part2.html part3.html longindex.html 19 24 cd $(BASEDIR)/; sed -i -e "s@../images@images@g" \ … … 26 31 index.xml 27 32 sed -i -e "s/inherit/all/" lfs.fo 28 fop.sh lfs.fo lfs.pdf33 fop.sh lfs.fo $(PDF_OUTPUT) 29 34 30 35 print: … … 32 37 stylesheets/lfs-print.xsl index.xml 33 38 sed -i -e "s/inherit/all/" lfs-print.fo 34 fop.sh lfs-print.fo lfs-print.pdf39 fop.sh lfs-print.fo $(PRINT_OUTPUT) 35 40 36 41 nochunks: 37 xsltproc --xinclude --nonet --output lfs.html\42 xsltproc --xinclude --nonet --output $(NOCHUNKS_OUTPUT) \ 38 43 stylesheets/lfs-nochunks.xsl index.xml 39 tidy -config tidy.conf lfs.html|| true44 tidy -config tidy.conf $(NOCHUNKS_OUTPUT) || true 40 45 41 46 validate: -
stylesheets/lfs-chunked2.xsl
rb470bce rb711e1d 17 17 <!-- The CSS Stylesheet --> 18 18 <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> 19 22 20 23 <!-- Dropping some unwanted style attributes --> -
stylesheets/lfs-nochunks.xsl
rb470bce rb711e1d 5 5 version="1.0"> 6 6 7 7 <!-- We use XHTML --> 8 8 <xsl:import href="http://docbook.sourceforge.net/release/xsl/1.65.1/xhtml/docbook.xsl"/> 9 9 … … 11 11 <xsl:output method="html" encoding="ISO-8859-1" indent="no" /> 12 12 13 13 <!-- Including our others customized templates --> 14 14 <xsl:include href="xhtml/lfs-admon.xsl"/> 15 15 <xsl:include href="xhtml/lfs-index.xsl"/> 16 16 <xsl:include href="xhtml/lfs-mixed.xsl"/> 17 17 <xsl:include href="xhtml/lfs-navigational.xsl"/> 18 <!-- The following breaks hyperlinks in the TOC -->19 <!-- <xsl:include href="xhtml/lfs-titles.xsl"/> -->20 18 <xsl:include href="xhtml/lfs-toc.xsl"/> 21 19 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 --> 26 21 <xsl:param name="ulink.target" select="''"></xsl:param> 27 22 <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 */ 29 body { 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 40 a:link { color: #22b; } 41 a:visited { color: #7e4988; } 42 a:hover, a:focus { color: #d30e08; } 43 a:active { color: #6b77b1;} 44 45 /* Headers */ 46 h1, h2, b, strong { 47 color: #000; 48 font-weight: bold; 49 } 50 51 h3, h4, h5, h6 { 52 color: #222; 53 } 54 55 h1 { font-size: 173%; text-align: center; } 56 h2 { font-size: 144%; } 57 h2.subtitle { text-align: center; } 58 h3 { font-size: 120%; padding-top: 0.2em; margin-top: 0.3em; } 59 h4 { font-size: 110%;} 60 h5, h6 { font-size: 110%; font-style: italic; } 61 62 /* TOC and Index*/ 63 64 div.toc ul, div.index ul, div.navheader ul, div.navfooter ul { 65 list-style: none; 66 } 67 68 div.toc, div.dedication { 69 padding-left: 1em; 70 } 71 72 li.preface { 73 margin-left: 1em; 74 } 75 76 div.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 */ 92 div.note, div.tip { 93 background-color: #fffff6; 94 border: 2px solid #dbddec; 95 width: 90%; 96 margin: .5em auto; 97 } 98 99 div.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 108 div.important h3, div.warning h3, div.caution h3 { 109 color: #900; 110 } 111 112 div.admonhead img { 113 display: none; 114 } 115 116 h3.admontitle { 117 padding-left: 2.5em; 118 padding-top: 1em; 119 } 120 121 div.admonbody { 122 margin: .5em; 123 } 124 125 div.important em, div.warning em, div.caution em { 126 color: #000; 127 font-weight: bold; 128 } 129 130 div.important tt, div.warning tt, div.caution tt { 131 font-weight: bold; 132 } 133 134 /* variablelist and segmentedlist */ 135 dl { 136 margin: 0; 137 padding: 0; 138 } 139 140 dt { 141 display: list-item; 142 font-weight: bold; 143 margin: .33em 0 0 1em; 144 padding: 0; 145 } 146 147 div.content dt { 148 list-style: none; 149 } 150 151 dd { 152 margin: 0 0 1em 3em; 153 padding: 0; 154 } 155 156 div.variablelist dd { 157 margin-bottom: 1em; 158 } 159 160 div.variablelist dd p { 161 margin-top: 0px; 162 } 163 164 dl.materials dd { 165 margin-left: 0px; 166 } 167 168 div.segmentedlist { 169 margin-top: 1em; 170 } 171 172 div.segmentedlist p { 173 margin: 0px auto; 174 } 175 176 /* Indented blocks */ 177 p, ul, dl, code, blockquote { 178 padding-left: 1em; 179 } 180 181 /* Monospaced elements */ 182 tt, code, kbd, pre, .command { 183 font-family: monospace; 184 } 185 186 pre.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 195 pre.screen { 196 background-color: #e9e9e9; 197 border: 1px solid #050505; 198 padding: .5em 1em; 199 margin: 0 2em; 200 } 201 202 /* Sections */ 203 div.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 210 div.installation { 211 padding: 0 0.5em 0.3em 0.5em; 212 margin: 0.5em 0 0.5em 0; 213 } 214 215 div.configuration { 216 background: #fefefe; 217 border-top: 0.2em solid #dbddec; 218 padding: 0.5em; 219 margin: 0.5em 0 .5em 0; 220 } 221 222 div.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 230 div.installation h3.title, div.content h3.title { 231 padding-top: 0.3em; 232 margin: 0; 233 } 234 235 div.book, div.preface, div.part, div.chapter, div.sect1, div.index { 236 padding-bottom: 0.5em; 237 } 238 239 div.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 248 div.book h1 { 249 background: #f5f6f7; 250 margin: 0px auto; 251 padding: 0.5em; 252 } 253 254 div.book h2.subtitle { 255 background: #dbddec; 256 margin: 0px auto; 257 padding: 0.2em; 258 } 259 div.authorgroup, div p.copyright, div.abstract { 260 background: #f5f6f7; 261 margin: 0px auto; 262 padding: 1em 0.5em; 263 } 264 265 hr { 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 29 276 </xsl:stylesheet> -
stylesheets/lfs.css
rb470bce rb711e1d 179 179 180 180 dt { 181 display: list-item; 181 182 font-weight: bold; 182 183 margin: .33em 0 0 1em; 183 184 padding: 0; 185 } 186 187 div.content dt { 188 list-style: none; 184 189 } 185 190 … … 195 200 div.variablelist dd p { 196 201 margin-top: 0px; 197 }198 199 dl.materials dt, div.installation dt, div.configuration dt, div.sect2 dt {200 display: list-item;201 202 } 202 203
Note:
See TracChangeset
for help on using the changeset viewer.