summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:58:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-22 11:58:02 +0000
commit916d816563107e6cc9968f15b06bd97c213c7d69 (patch)
tree4aaf06fc6653e9b76845b34b04272112f2c84b75
parent2515c52e9db48734748471e72b6574b7253f9978 (diff)
downloadmandoc-916d816563107e6cc9968f15b06bd97c213c7d69.tar.gz
Build xhtml files for www site exemplaria.
-rw-r--r--Makefile4
-rw-r--r--index.sgml8
-rw-r--r--style.css2
3 files changed, 14 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index a44c620f..05cd9300 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,6 @@
.SUFFIXES: .html .xml .sgml .1 .3 .7 .md5 .tar.gz
.SUFFIXES: .1.txt .3.txt .7.txt
+.SUFFIXES: .1.xhtml .3.xhtml .7.xhtml
.SUFFIXES: .1.sgml .3.sgml .7.sgml
.SUFFIXES: .h .h.html
.SUFFIXES: .1.ps .3.ps .7.ps
@@ -309,6 +310,9 @@ mandoc: $(MAINOBJS) libroff.a libmdoc.a libman.a libmandoc.a
.1.1.ps .3.3.ps .7.7.ps:
./mandoc -Tps -Wall,stop $< > $@
+.1.1.xhtml .3.3.xhtml .7.7.xhtml:
+ ./mandoc -Txhtml -Wall,stop -Ostyle=style.css,man=%N.%S.xhtml,includes=%I.html $< > $@
+
.1.1.pdf .3.3.pdf .7.7.pdf:
./mandoc -Tpdf -Wall,stop $< > $@
diff --git a/index.sgml b/index.sgml
index 1f072beb..7a9d9c41 100644
--- a/index.sgml
+++ b/index.sgml
@@ -165,6 +165,7 @@
man macro compiler library
<SPAN STYLE="font-size: smaller;">
(<A HREF="man.3.txt">text</A> |
+ <A HREF="man.3.xhtml">xhtml</A> |
<A HREF="man.3.pdf">pdf</A> |
<A HREF="man.3.ps">postscript</A>)
</SPAN>
@@ -176,6 +177,7 @@
man language reference
<SPAN STYLE="font-size: smaller;">
(<A HREF="man.7.txt">text</A> |
+ <A HREF="man.7.xhtml">xhtml</A> |
<A HREF="man.7.pdf">pdf</A> |
<A HREF="man.7.ps">postscript</A>)
</SPAN>
@@ -187,6 +189,7 @@
format and display UNIX manuals
<SPAN STYLE="font-size: smaller;">
(<A HREF="mandoc.1.txt">text</A> |
+ <A HREF="mandoc.1.xhtml">xhtml</A> |
<A HREF="mandoc.1.pdf">pdf</A> |
<A HREF="mandoc.1.ps">postscript</A>)
</SPAN>
@@ -198,6 +201,7 @@
mandoc special characters
<SPAN STYLE="font-size: smaller;">
(<A HREF="mandoc_char.7.txt">text</A> |
+ <A HREF="mandoc_char.7.xhtml">xhtml</A> |
<A HREF="mandoc_char.7.pdf">pdf</A> |
<A HREF="mandoc_char.7.ps">postscript</A>)
</SPAN>
@@ -209,6 +213,7 @@
mdoc macro compiler library
<SPAN STYLE="font-size: smaller;">
(<A HREF="mdoc.3.txt">text</A> |
+ <A HREF="mdoc.3.xhtml">xhtml</A> |
<A HREF="mdoc.3.pdf">pdf</A> |
<A HREF="mdoc.3.ps">postscript</A>)
</SPAN>
@@ -220,6 +225,7 @@
mdoc language reference
<SPAN STYLE="font-size: smaller;">
(<A HREF="mdoc.7.txt">text</A> |
+ <A HREF="mdoc.7.xhtml">xhtml</A> |
<A HREF="mdoc.7.pdf">pdf</A> |
<A HREF="mdoc.7.ps">postscript</A>)
</SPAN>
@@ -231,6 +237,7 @@
roff macro compiler library
<SPAN STYLE="font-size: smaller;">
(<A HREF="roff.3.txt">text</A> |
+ <A HREF="roff.3.xhtml">xhtml</A> |
<A HREF="roff.3.pdf">pdf</A> |
<A HREF="roff.3.ps">postscript</A>)
</SPAN>
@@ -242,6 +249,7 @@
roff-mandoc language reference
<SPAN STYLE="font-size: smaller;">
(<A HREF="roff.7.txt">text</A> |
+ <A HREF="roff.7.xhtml">xhtml</A> |
<A HREF="roff.7.pdf">pdf</A> |
<A HREF="roff.7.ps">postscript</A>)
</SPAN>
diff --git a/style.css b/style.css
index 97ab0470..c592fa84 100644
--- a/style.css
+++ b/style.css
@@ -10,12 +10,14 @@ body { font-family: monospace;
table.foot { width: 100%;
font-size: 0.8em;
+ margin-top: 1em;
border-top: 1px dotted #dddddd;
color: #999999; } /* Document footer. */
td.foot-date { width: 50%; } /* Document footer: date. */
td.foot-os { width: 50%; text-align: right; } /* Document footer: OS/source. */
table.head { width: 100%;
font-size: 0.8em;
+ margin-bottom: 1em;
border-bottom: 1px dotted #dddddd;
color: #999999; } /* Document header. */
td.head-ltitle { width: 10%; } /* Document header: left-title. */