diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-01-24 13:00:11 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-01-24 13:00:11 +0000 |
| commit | 1c47f2b55351d224c74707a0c0cb047046bec6c2 (patch) | |
| tree | f177ef9065d652e558e995895caa76231c5f08d2 | |
| parent | b10be2b32adc91e3d51117aeac8a75e59271d941 (diff) | |
| download | puzzles-1c47f2b55351d224c74707a0c0cb047046bec6c2.zip puzzles-1c47f2b55351d224c74707a0c0cb047046bec6c2.tar.gz puzzles-1c47f2b55351d224c74707a0c0cb047046bec6c2.tar.bz2 puzzles-1c47f2b55351d224c74707a0c0cb047046bec6c2.tar.xz | |
Improve OS X help: split back up into multiple files (thanks to
Halibut's new \cfg{html-local-head} directive), and add some CSS to
mimic the font choices of system help files.
[originally from svn r5194]
| -rw-r--r-- | Recipe | 5 | ||||
| -rw-r--r-- | osx-help.but | 14 | ||||
| -rw-r--r-- | osx.m | 9 | ||||
| -rw-r--r-- | puzzles.but | 10 |
4 files changed, 23 insertions, 15 deletions
@@ -48,8 +48,9 @@ Puzzles : [MX] osx osx.icns osx-info.plist COMMON ALL CFLAGS += -DCOMBINED Puzzles_extra = Puzzles.app/Contents/Resources/Help/index.html Puzzles.app/Contents/Resources/Help/index.html: \ - Puzzles.app/Contents/Resources/Help puzzles.but - halibut --html=$@ puzzles.but + Puzzles.app/Contents/Resources/Help osx-help.but puzzles.but + cd Puzzles.app/Contents/Resources/Help; \ + halibut --html ../../../../osx-help.but ../../../../puzzles.but Puzzles.app/Contents/Resources/Help: Puzzles.app/Contents/Resources mkdir -p Puzzles.app/Contents/Resources/Help !end diff --git a/osx-help.but b/osx-help.but new file mode 100644 index 0000000..fa45996 --- /dev/null +++ b/osx-help.but @@ -0,0 +1,14 @@ +\# Additional Halibut fragment to set up the HTML output +\# appropriately for MacOS online help. + +\cfg{html-head-end}{ +<style type="text/css"> +body \{ font-family: "Lucida Grande", Helvetica, Arial; font-size: 9pt \} +h1 \{ font-size: 12pt \} +h2 \{ font-size: 10pt \} +h3 \{ font-size: 9pt \} +h4 \{ font-size: 9pt \} +h5 \{ font-size: 9pt \} +h6 \{ font-size: 9pt \} +</style> +} @@ -3,13 +3,8 @@ * * Still to do: * - * - Improve the help. For a start I probably ought to split it - * into pieces (which means Halibut needs to acquire a mechanism - * of putting something in the head section of _only one_ HTML - * file); then I'd also like to be able to call up context help - * for a specific game at a time. Also I just idly wonder - * whether changing font might be nice, to match up to Apple - * norms. + * - I'd like to be able to call up context help for a specific + * game at a time. * * Mac interface issues that possibly could be done better: * diff --git a/puzzles.but b/puzzles.but index 305340a..44081e3 100644 --- a/puzzles.but +++ b/puzzles.but @@ -5,17 +5,14 @@ \cfg{text-filename}{puzzles.txt} -\# \cfg{html-contents-filename}{index.html} +\cfg{html-template-filename}{%k.html} +\cfg{html-index-filename}{docindex.html} \cfg{html-leaf-level}{1} \cfg{html-contents-depth-0}{1} \cfg{html-contents-depth-1}{2} \cfg{html-leaf-contains-contents}{true} -\cfg{html-single-filename}{index.html} -\cfg{html-head-end}{<meta name="AppleTitle" content="Puzzles Help">} -\cfg{html-leaf-level}{0} - \cfg{info-filename}{puzzles.info} \cfg{ps-filename}{puzzles.ps} @@ -27,8 +24,9 @@ This is a collection of small one-player puzzle games. reserved. You may distribute this documentation under the MIT licence. See \k{licence} for the licence text in full. -\versionid $Id$ +\cfg{html-local-head}{<meta name="AppleTitle" content="Puzzles Help">} +\versionid $Id$ \C{intro} Introduction |