aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2006-12-23 08:44:51 +0000
committerSimon Tatham <anakin@pobox.com>2006-12-23 08:44:51 +0000
commitd1cfcffa05958114846836fddcd186b156eeac37 (patch)
treecac8479487eaa70a8aa8184ed8e2b634eeee2983
parente08948a7ea96ae6051850a5359bbb960398afcf4 (diff)
downloadpuzzles-d1cfcffa05958114846836fddcd186b156eeac37.zip
puzzles-d1cfcffa05958114846836fddcd186b156eeac37.tar.gz
puzzles-d1cfcffa05958114846836fddcd186b156eeac37.tar.bz2
puzzles-d1cfcffa05958114846836fddcd186b156eeac37.tar.xz
Ability to build a .CHM for Puzzles. I haven't yet arranged for it
to be used by the Windows binaries; that's the next step. [originally from svn r7006]
-rw-r--r--Makefile.doc7
-rw-r--r--chm.but23
-rw-r--r--chm.css7
3 files changed, 37 insertions, 0 deletions
diff --git a/Makefile.doc b/Makefile.doc
index 677bc8e..ff67357 100644
--- a/Makefile.doc
+++ b/Makefile.doc
@@ -5,3 +5,10 @@ puzzles.hlp puzzles.txt: puzzles.but
HACKING: devel.but
halibut --text=HACKING devel.but
+
+chm: puzzles.hhp
+puzzles.hhp: puzzles.but chm.but
+ halibut --html puzzles.but chm.but
+
+clean:
+ rm -f puzzles.hlp puzzles.txt HACKING *.html *.hh[pck]
diff --git a/chm.but b/chm.but
new file mode 100644
index 0000000..a28384d
--- /dev/null
+++ b/chm.but
@@ -0,0 +1,23 @@
+\# File containing the magic HTML configuration directives to create
+\# an MS HTML Help project. We put this on the end of the Puzzles
+\# docs build command line to build the HHP and friends.
+
+\cfg{html-leaf-level}{infinite}
+\cfg{html-leaf-contains-contents}{false}
+\cfg{html-suppress-navlinks}{true}
+\cfg{html-suppress-address}{true}
+
+\cfg{html-contents-filename}{index.html}
+\cfg{html-template-filename}{%k.html}
+\cfg{html-template-fragment}{%k}
+
+\cfg{html-mshtmlhelp-chm}{puzzles.chm}
+\cfg{html-mshtmlhelp-project}{puzzles.hhp}
+\cfg{html-mshtmlhelp-contents}{puzzles.hhc}
+\cfg{html-mshtmlhelp-index}{puzzles.hhk}
+
+\cfg{html-body-end}{}
+
+\cfg{html-head-end}{<link rel="stylesheet" type="text/css" href="chm.css">}
+
+\versionid $Id$
diff --git a/chm.css b/chm.css
new file mode 100644
index 0000000..d8c316b
--- /dev/null
+++ b/chm.css
@@ -0,0 +1,7 @@
+/* Stylesheet for a Windows .CHM help file */
+
+body { font-size: 75%; font-family: Verdana, Arial, Helvetica, Sans-Serif; }
+
+h1 { font-weight: bold; font-size: 150%; }
+h2 { font-weight: bold; font-size: 130%; }
+h3 { font-weight: bold; font-size: 120%; }