1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="Stuart Rackham" />
<meta name="author-email" content="srackham@methods.co.nz" />
<link rel="stylesheet" href="main.css" type="text/css" />
<title>Web Pages</title>
</head>
<body>
<div id="header">
<img src="header.png" alt="Header" />
</div>
<div id="menu">
<a href="index.html">Overview</a>
<a href="webpages.html">Web Pages</a>
<a href="aap-script.html">A-A-P Script</a>
<a href="execution-environment.html">Execution Environment</a>
<a href="installation-wizard.html">Installation Wizard</a>
<a href="cdrom-creation.html">CD-ROM Creation</a>
<a href="links.html">Links</a>
<a href="feedback.html">Feedback</a>
</div>
<div id="content">
<h1>Web Pages</h1>
<div id="preamble">
<p>
The <tt>asciidoc(1)</tt> command converts <em>AsciiDoc</em> source files to HTML web
pages.
</p>
<p>
The <em>AsciiDoc</em> source files are plain text files with a <tt>.txt</tt>
file name extensions and are located in the <em>AsciiDoc</em> distribution
<tt>examples/website</tt> directory.
</p>
<p>
<em>AsciiDoc</em> commands to build the entire website are executed by an
<a href="aap-script.html">A-A-P script</a>.
</p>
</div>
<h2>AsciiDoc Configuration File</h2>
<p>
The <tt>asciidoc.conf</tt> <em>AsciiDoc</em> configuration file customizes the web
pages content (menus, headings, footers).
</p>
<div class="listingblock"><pre>
#
# Asciidoc configuration file for example AsciiDoc generated website.
#
[attributes]
author=Stuart Rackham
email=srackham@methods.co.nz
[specialwords]
emphasizedwords=\bAsciiDoc\b
monospacedwords=\basciidoc\(1\)
[header]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="AsciiDoc {asciidoc_version}" />
<meta name="author" content="{author}" />
<meta name="author-email" content="{email}" />
{index-only}<meta name="description" content="AsciiDoc Example Website" />
{index-only}<meta name="keywords" content="text to HTML, text to DocBook, text to LinuxDoc, text to XML, AsciiDoc, Python installer, Python execution environment" />
<link rel="stylesheet" href="main.css" type="text/css" />
<title>{doctitle}</title>
</head>
<body>
<div id="header">
<img src="header.png" alt="Header" />
</div>
<div id="menu">
<a href="index.html">Overview</a>
<a href="webpages.html">Web Pages</a>
<a href="aap-script.html">A-A-P Script</a>
<a href="execution-environment.html">Execution Environment</a>
<a href="installation-wizard.html">Installation Wizard</a>
<a href="cdrom-creation.html">CD-ROM Creation</a>
<a href="links.html">Links</a>
<a href="feedback.html">Feedback</a>
</div>
<div id="content">
<h1>{doctitle}</h1>
[footer]
</div>
<div id="footer">
<p>
Website built using <a href="http://www.methods.co.nz/asciidoc/">AsciiDoc</a>
and <a href="http://www.a-a-p.org/">A-A-P</a><br/>
Last updated {localdate} {localtime} <br/>
</p>
<p><span class="ahem">This document might look funny (or very plain) to you,
since you're not using a browser which (correctly) supports CSS.</span></p>
</div>
</body>
</html>
[tags]
title1=<h1>|</h1>
title2=<h2>|</h2>
title3=<h3>|</h3>
[graphic-right]
<div class="graphic-right">
<p><img src="{target}" alt="{caption={target}}"/></p>
<p class="caption">{caption}</p>
</div>
[quoteblock]
<div class="quoteblock">
|
</div>
</pre></div>
<h2>Web Site CSS2 Stylesheet</h2>
<p>
The <tt>main.css</tt> file is a CSS2 stylesheet that customizes content
presentation.
</p>
<div class="listingblock"><pre>
/*
Main stylesheet.
*/
body {
margin: 0;
padding: 0;
background-color: white;
background-image: url(sidebar.png);
background-position: 0 0;
background-repeat: repeat-y;
background-attachment: fixed;
}
div#content {
background-color: transparent;
min-height: 350px;
margin: 5px 25px 25px 170px;
padding: 10px;
}
div#content a {
font-weight: normal;
text-decoration: underline;
}
div#content a:link {
color: #00c;
}
div#content a:hover {
color: #f60;
}
div#menu {
position: absolute;
top: 70px;
left: 0px;
width: 157px;
}
div#menu a {
display: block;
padding: 5px 0px 5px 10px;
margin: 0px;
text-align: left;
text-decoration: underline;
color: rgb(63,82,148);
font: bold 12pt Arial, sans-serif;
}
div#menu a:hover, div#menu a:focus {
color: #f60;
}
h1,h2,h3,h4 {
color: rgb(63,82,148);
font: normal bold medium Arial, sans-serif;
letter-spacing: 0.25em;
}
h1 {
font-size: 16pt;
background: rgb(255,254,234);
margin: 0 -13px 15px;
padding: 2px 0 2px 29px;
border-top: 2px solid rgb(152,166,211);
border-bottom: 2px solid rgb(152,166,211);
}
h2 {
font-size: 12pt;
letter-spacing: 0.2em;
text-decoration: underline;
margin: 1em 0 0.25em 14px;
}
p {margin: 0 14px 1em;}
ul,ol {
margin-top: 0;
margin-left: 1.25em;
padding: 0 1em;
list-style-position: outside;
}
em { font-weight: normal; font-style: italic;}
li { padding-bottom: 0.25em; }
dl { padding: 0 1em; }
dt { font-weight: bold; }
dd p, li p { margin: 0; padding: 0; }
li div.literalparagraph { margin-left: 0; }
div.literalparagraph pre, li div.literalparagraph pre { margin-left: 2%; }
div#header {
margin: 15px 0 0 195px;
}
div#footer {
clear: both;
background: rgb(255,254,234);
font: 8pt sans-serif;
margin: 0 25px 2px 167px;
padding: 0;
position: relative; /* IE6 loses paragraph without this. */
bottom: 0;
border-top: 2px solid rgb(152,166,211);
border-bottom: 2px solid rgb(152,166,211);
}
div#footer p {
margin: .5em 0 0 15px;
}
div#footer a {
color: #00c;
background: transparent;
font-weight: normal;
text-decoration: underline;
}
div#footer a:hover, div#footer a:focus {
color: #f60;
}
div#badges {padding: 0 12px 5px 12px;}
div#badges td {vertical-align: middle;}
div#badges img {padding-right: 20px; border-style: none;}
div.graphic {
border-style: none;
}
div.graphic img {
margin: 0;
padding: 0;
/* border: 2px solid rgb(152,166,211); */
}
/* graphic caption */
p.caption {
margin: 0 14px 1em;
font-style: italic;
}
div.literalparagraph { margin: 0 1em 1em; }
div.literalblock { margin: 0 1em; }
div.listingblock {
background: #e8e8e8;
margin: 0.5em -9px 1em 14px;
padding: 0.5em 1em;
}
div.sidebarblock {
background: rgb(255,254,234);
margin: 0.5em -9px 1em 14px;
padding: 0.5em 1em;
border: 2px solid rgb(152,166,211);
}
div.sidebarblock p { margin-left: 0; }
div.sidebarblock * { padding-left: 0; }
div.sidebarblock div { margin: 0; }
p.sidebartitle { font-family: sans-serif; font-style: italic; }
div.quoteblock {
margin: 0.5em 35% 0.5em 14px;
padding: 0;
}
div.quoteblock p { font: italic medium serif; }
div.quoteblock p { margin-left: 0; }
div.quoteblock * { padding-left: 0; }
div.quoteblock div { margin: 0; }
div.admonition div.icon {
float: left;
width: 56px;
}
div.admonition div.text {
margin-left: 56px;
padding-top: 1px;
}
div.admonition div.text * { padding: 0; }
div.clear {
clear: both;
}
/* Display for browsers that don't understand stylesheets. */
.ahem { display: none; }
/* Print nicely. */
@media print {
@page { margin: 10% } /* This _is_ valid CSS2. */
h1,h2,h3,h4 { page-break-after: avoid; page-break-inside: avoid }
blockquote,pre { page-break-inside: avoid }
ul,ol,dl { page-break-before: avoid }
/* Override existing property settings. */
div#header { margin: 20px 0 0;}
div#content { margin: 0; border: 0; }
div#menu, div#footer { display: none; }
}
</pre></div>
</div>
<div id="footer">
<p>
Website built using <a href="http://www.methods.co.nz/asciidoc/">AsciiDoc</a>
and <a href="http://www.a-a-p.org/">A-A-P</a><br/>
Last updated 29-Jan-2005 14:47:05 NZDT <br/>
</p>
<p><span class="ahem">This document might look funny (or very plain) to you,
since you're not using a browser which (correctly) supports CSS.</span></p>
</div>
</body>
</html>
|