summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Robbins <drobbins@gentoo.org>2001-03-26 03:59:54 +0000
committerDaniel Robbins <drobbins@gentoo.org>2001-03-26 03:59:54 +0000
commite1c9e3691d5ca5aa94415b017f971d3da730edce (patch)
tree37be83a1e897bda22bed6b3777fea3b73ca522fc /app-doc
parentAdded docbook stylesheet (diff)
downloadgentoo-2-e1c9e3691d5ca5aa94415b017f971d3da730edce.tar.gz
gentoo-2-e1c9e3691d5ca5aa94415b017f971d3da730edce.tar.bz2
gentoo-2-e1c9e3691d5ca5aa94415b017f971d3da730edce.zip
updates
Diffstat (limited to 'app-doc')
-rwxr-xr-xapp-doc/gentoo-web/files/css/gentoo-doc.css23
-rwxr-xr-xapp-doc/gentoo-web/files/xml/install-new.xml56
-rwxr-xr-xapp-doc/gentoo-web/files/xsl/guide-new.xsl23
3 files changed, 66 insertions, 36 deletions
diff --git a/app-doc/gentoo-web/files/css/gentoo-doc.css b/app-doc/gentoo-web/files/css/gentoo-doc.css
index 66822139eb6b..4e9fccec0ff5 100755
--- a/app-doc/gentoo-web/files/css/gentoo-doc.css
+++ b/app-doc/gentoo-web/files/css/gentoo-doc.css
@@ -6,7 +6,7 @@ BODY {
}
P,H2,H3,UL,OL {
- margin: 0.5em 14% 0.5em 5%;
+ margin: 0.5em 5% 0.5em 5%;
}
TABLE {
@@ -14,7 +14,7 @@ TABLE {
}
PRE {
- margin: 0.5em 14% 0.5em 5%;
+ margin: 0.5em 5% 0.5em 5%;
background: #ddddff;
font-family: Lucida Console, Courier;
}
@@ -38,12 +38,17 @@ H1 {
font-weight: bold;
}
+.chapnum {
+ font-size: 0.8em;
+}
+
.secthead {
- margin: 0.4em 14% 0.2em 4%;
+ margin: 1.0em 14% 0.2em 4%;
+ color: #7a5ada;
font-size: 1.0em;
font-weight: bold;
font-family: Verdana, Arial, Helvetica;
- text-decoration: underline;
+/* text-decoration: underline; */
}
.code {
@@ -60,7 +65,7 @@ H1 {
}
.codenote {
- background: #ffffbb;
+ background: #eeeeff;
font-family: Georgia, Verdana, Arial, Helvetica;
}
@@ -105,6 +110,14 @@ H1 {
font-family: Verdana, Arial, Helvetica;
}
+.tochead a:link {
+ color: #00ff00;
+}
+
+.tochead a:visited {
+ color: #00dd00;
+}
+
.tocitem {
margin: 0em 0% 0em 2%;
font-size: 0.7em;
diff --git a/app-doc/gentoo-web/files/xml/install-new.xml b/app-doc/gentoo-web/files/xml/install-new.xml
index f99cea22463c..4818bf468f9e 100755
--- a/app-doc/gentoo-web/files/xml/install-new.xml
+++ b/app-doc/gentoo-web/files/xml/install-new.xml
@@ -14,7 +14,7 @@ Gentoo Linux release candidate.</abstract>
<version>1.0</version>
<date>18 Feb 2001</date>
-<chapter link="chap1">
+<chapter>
<title>Getting started</title>
<section>
@@ -110,7 +110,7 @@ CD image, which has all the tools you need for ReiserFS.
</section>
</chapter>
-<chapter link="chap2">
+<chapter>
<title>Installation</title>
<section>
@@ -165,7 +165,7 @@ a new ReiserFS filesystem on the partition /dev/hda1, type:
<p>For my example partition layout above, I typed in the following commands:
</p>
-<pre>
+<pre linkid="filesyscode" caption="Creating and mounting filesystems">
# mkreiserfs /dev/hda1
# mkswap /dev/hda2
# mkreiserfs /dev/hda3
@@ -218,14 +218,13 @@ pipeline should do the exact same thing:
-<chapter link="chap3">
+<chapter>
<title>Configuration</title>
<section>
<title>Configure the system</title>
-<body><p><font color="#FF0000">Note: If you want to compile a custom kernel during the install process, them before proceeding with the
+<body><note>If you want to compile a custom kernel during the install process, them before proceeding with the
following instructions, copy the linux-sources tbz2 file from <path>/mnt/distcd/packages/All/linux-sources-???.tbz2</path> to <path>/mnt/gentoo/tmp</path>.
-Then, proceed with these instructions. I'll let you know when it's time to merge it.</font>
-</p>
+Then, proceed with these instructions. I'll let you know when it's time to merge it.</note>
<p>Now that the base system tarball has been extracted, we need to get the system ready for booting. Begin this process
by typing:
@@ -365,18 +364,18 @@ I want to type are:</p><pre>grub&gt; root (hd0,0)
grub&gt; setup (hd0)
</pre>
-<p>Here's how the two commands work. The first "root ( )" command tells GRUB
-the location of your boot partition (in my case, hda1 or in GRUB terminology
-(hd0,0)). Then, the second "setup ( )" command tells GRUB where to install the
-boot record - it will be configure to look for its special files at the "root
-( )" location that you specified. In my case, I want the boot record on the
-MBR of the hard drive, so I simply specify hda ((hd0)). If I were using
+<p>Here's how the two commands work. The first <code>root ( )</code> command tells GRUB
+the location of your boot partition (in my case, <path>/dev/hda1</path> or
+<path>(hd0,0)</path> in GRUB terminology. Then, the second <code>setup ( )</code> command tells GRUB where to install the
+boot record - it will be configure to look for its special files at the <code>root
+( )</code> location that you specified. In my case, I want the boot record on the
+MBR of the hard drive, so I simply specify <path>/dev/hda</path> (<path>(hd0)</path>). If I were using
another boot loader and wanted to set up GRUB as a secondary boot-loader, I
could install GRUB to the boot record of a particular partition. In that case,
I'd specify a particular partition rather than the entire disk. Once the GRUB
boot record has been
-successfully installed, you can type "quit" to quit GRUB. Gentoo Linux is
-installed, but we need to create the /boot/boot/grub/menu.lst file so that
+successfully installed, you can type <code>quit</code> to quit GRUB. Gentoo Linux is
+installed, but we need to create the <path>/boot/boot/grub/menu.lst</path> file so that
we get a nice GRUB boot menu when the system reboots. Here's how to do it.</p>
<p>Now, create the menu.lst file (<code>vi /boot/boot/grub/menu.lst</code>), and add the following to it:</p>
@@ -393,21 +392,26 @@ root (hd0,2)
</pre><p>After saving this file, Gentoo Linux installation is complete. Selecting the first option will
tell GRUB to boot Gentoo Linux without a fuss. The second part of the menu.lst file is optional, and shows you how to
use GRUB to boot a bootable Windows partition.</p>
-<note>Above, <path>(hd0,0)</path> should point to your "boot" partition (<path>/dev/hda1</path> in my case) and <path>/dev/hda3</path> should point to your "root filesystem. <path>(hd0,2)</path> contains the NT boot loader.</note>
-<p>Also, if you need to pass any options to the kernel, simply add them to the end of the "kernel" command. We're already
-passing one option "root=/dev/hda3", but you can pass others as well. There's one in particular that you may be interested
-in. If you want to enable devfs (a special device filesystem), you can add the "devfs=mount" option at the end of the kernel
-line.
-</p>
+
+<note>Above, <path>(hd0,0)</path> should point to your "boot" partition
+(<path>/dev/hda1</path> in my case) and <path>/dev/hda3</path> should point to
+your "root filesystem. <path>(hd0,2)</path> contains the NT boot
+loader.</note> <p>Also, if you need to pass any options to the kernel, simply
+add them to the end of the <code>kernel</code> command. We're already passing one option
+(<code>root=/dev/hda3</code>), but you can pass others as well. There's one in particular
+that you may be interested in. If you want to enable devfs (a special device
+filesystem), you can add the <code>devfs=mount</code> option at the end of the <code>kernel</code>
+line. </p>
+
</body>
</section>
<section>
<title>One Last Step</title>
<body>
-<p>If you copied over the linux-sources-???.tbz2 file, you can now install the package and compile a fresh new
+<p>If you copied over the <path>linux-sources-???.tbz2</path> file, you can now install the package and compile a fresh new
kernel. To merge the linux-sources, type <code>pkgmerge /tmp/linux-sources-???.tbz2</code>. After the merge completes,
-you can remove the .tbz2 from /tmp and continue with the kernel compile step. If you didn't copy over the
+you can remove the .tbz2 from <path>/tmp</path> and continue with the kernel compile step. If you didn't copy over the
linux sources, you can skip the kernel compile step and proceed unmounting your filesystems below.</p>
<p>To compile your own kernel, perform the following steps:</p><pre>
# cd /usr/src/linux
@@ -415,7 +419,7 @@ linux sources, you can skip the kernel compile step and proceed unmounting your
# make bzImage
# make modules
# make modules_install
-# cp arch/i386/boot/bzImage /boot/boot <font color="#FF0000">(Note: the "/boot/boot" is intentional and should not simply be "/boot")</font>
+# cp arch/i386/boot/bzImage /boot/boot <codenote>The "/boot/boot" is intentional and should not simply be "/boot"</codenote>
</pre>
<p>Now, Gentoo Linux is installed. The only remaining step is to exit the chrooted shell, safely unmount your partitions
@@ -431,8 +435,8 @@ and reboot the system:</p>
</chapter>
-<chapter link="chap4">
-<title></title>
+<chapter>
+<title>You're done!</title>
<section>
<title>Congratulations!</title>
<body><p>If you have any questions or would like to get involved with Gentoo Linux development,
diff --git a/app-doc/gentoo-web/files/xsl/guide-new.xsl b/app-doc/gentoo-web/files/xsl/guide-new.xsl
index 45eee4d7c0d6..a9ad2e898cfb 100755
--- a/app-doc/gentoo-web/files/xsl/guide-new.xsl
+++ b/app-doc/gentoo-web/files/xsl/guide-new.xsl
@@ -35,7 +35,8 @@
<p class="tochead">Table of contents:</p>
<p class="tocitem">
<xsl:for-each select="chapter">
- <a href="#{generate-id()}"><xsl:value-of select="title"/></a>
+ <xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable>
+ <a href="#{$chapid}"><xsl:number/>. <xsl:value-of select="title"/></a>
<br/>
</xsl:for-each>
</p>
@@ -43,6 +44,10 @@
</tr>
</table>
<xsl:apply-templates select="chapter"/>
+ <br/>
+ <br/>
+ <table class="tochead" width="100%" border="0"><tr><td align="right">Copyright 2001 Gentoo Technologies, Inc.<br/>
+ Questions, Comments, Corrections? Email <a href="mailto:gentoo-dev@gentoo.org">gentoo-dev@gentoo.org</a>.</td></tr></table>
</body>
</html>
</xsl:template>
@@ -62,12 +67,14 @@
</xsl:template>
<xsl:template match="chapter">
- <a name="{generate-id()}"><p class="chaphead"><xsl:value-of select="title"/></p></a>
+ <xsl:variable name="chapid">doc_chap<xsl:number/></xsl:variable>
+ <a name="#{$chapid}"><p class="chaphead"><span class="chapnum"><xsl:number/>.</span> <xsl:value-of select="title"/></p></a>
<xsl:apply-templates select="section"/>
</xsl:template>
<xsl:template match="section">
- <p class="secthead"><xsl:value-of select="title"/></p>
+ <xsl:variable name="sectid"><xsl:value-of select="$chapid"/>_sec<xsl:number/></xsl:variable>
+ <a name="#{$sectid}"><p class="secthead"><xsl:value-of select="title"/></p></a>
<xsl:apply-templates select="body"/>
</xsl:template>
@@ -78,7 +85,7 @@
</xsl:template>
<xsl:template match="codenote">
- <br/><span class="codenote">(<b>Note:</b> <xsl:value-of select="." />)</span>
+ <span class="codenote">(<b>Note:</b> <xsl:value-of select="." />)</span>
</xsl:template>
@@ -101,8 +108,14 @@
</xsl:template>
<xsl:template match="pre">
+ <xsl:if test="@linkid">
+ <a href="#{@linkid}"/>
+ </xsl:if>
+ <xsl:if test="@caption">
+ <p class="caption"><xsl:value-of select="@caption" /></p>
+ </xsl:if>
<pre>
- <xsl:apply-templates />
+ <xsl:apply-templates />
</pre>
</xsl:template>