aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit74531418a871a3cfcda14d88ac9db39d8114ccc5 (patch)
tree9e1c215f2d74cff8163b9d5f0050e6f374cb5e4c
parent23063cd88255c9044bad80050587c13d666bb8b2 (diff)
downloadmandoc-74531418a871a3cfcda14d88ac9db39d8114ccc5.tar.gz
mandoc-74531418a871a3cfcda14d88ac9db39d8114ccc5.tar.zst
mandoc-74531418a871a3cfcda14d88ac9db39d8114ccc5.zip
Build xhtml files for www site exemplaria.
-rw-r--r--Makefile4
-rw-r--r--index.sgml10
-rw-r--r--style.css4
3 files changed, 16 insertions, 2 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 503ac2dc..e44947df 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>
@@ -481,7 +489,7 @@
<TR>
<TD>
<DIV CLASS="foot">
- Copyright &#169; 2008&#8211;2010 Kristaps Dzonsons, $Date: 2010/12/20 13:57:49 $
+ Copyright &#169; 2008&#8211;2010 Kristaps Dzonsons, $Date: 2010/12/22 11:58:02 $
</DIV>
</TD>
</TR>
diff --git a/style.css b/style.css
index 6eb4c712..7e429a69 100644
--- a/style.css
+++ b/style.css
@@ -1,4 +1,4 @@
-/* $Id: style.css,v 1.17 2010/12/20 13:39:24 kristaps Exp $ */
+/* $Id: style.css,v 1.18 2010/12/22 11:58:02 kristaps Exp $ */
html { max-width: 800px; }
body { font-family: monospace;
@@ -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. */