-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
130 lines (85 loc) · 4.02 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
sh-cgi a Stronghelp CGI gateway
Copyright (C) 2000 V.R.Sanders
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
To contact V Sanders email
The main web site for this program is
http://www.kyllikki.fluff.org/software
sh-cgi uses cgi-util LGPL library by Bill Kendrick (see cgi-util directory)
--------------------------------------------
VERSION 1.12
This is sh-cgi , it is a cgi gateway for the acess of stronghelp manuals by
standard HTML browsers.
Contributors
------------
John Beranek <[email protected]> for some url escaping stuff (for
c++ manual), hints on some alignment html codes and original ideas for
alphabetical manual listings.
Dave Hines <[email protected]> for lots of asistance with the tree code,
re-writing the html output routines to be bounds safe and much heckling from
the back.
Changes from 1.00
-----------------
Url producing code is now bounds safe (pointed out by John and fixed by
Dave) .
Manual listing is now in alphabetical order (idea from John and
implemented by me , tree ideas from Dave).
Basic Setup
-----------
Unpack the source tar.
Edit the Makefile if you want to change the cgis name.
Type make, Currently known to work on linux and solaris 2.6 (with gcc).
Install sh-cgi in your cgi-bin directory.
Create a directory named sh-manuals in your http document root, place
all the stronghelp manuals you wish to server in this directory(note they
should be named so they do not have any punctuation, ie no full stops commas
etc or sh-cgi will ignore these files) please be careful with case as while
acorn filesystems are case tolerant most unix filesystems are case sensitive ie
Vdu and VDU for manual names are different! (note manuals that refer to other
manuals cause this to be a problem ie they refer to VDU usualy not Vdu sh-cgi
makes no attempt to match differing case manual names)
If you would like background images (the stronghelp star) copy the
background.gif image supplied to the sh-manuals directory as ".background.gif"
(NOTE The dot!)
Point a web browser at http://<your www server/cgi-bin/sh-cgi>
Other bits
----------
The directory used for the manuals can be set by changing the #define
in sh-cgi.h
The background image name (possibly for using the background png file -
beware browser incompatabilities) can be set by changing the #define in
shhtml.h
The tags used for the fonts may be changed by editing the #defines in
shhtml.h
Known Problems
--------------
These bits have yet to be implemented or have issues(submit a patch :-)
Currently there is no run-time config - in future i hope to have a
.configure file in the sh-manuals directory.
Manual names have to be an exact case match in refering tags (unix case
sensitivity issue).
Manual names with any form of punctuation are omited from the manual
list and cannot be referenced - sledgehammer way of ensuring nasty hackers
cannot get the cgi to attempt to look outside of its "sandbox".
#spritefile and #sprite are not implemented currently - not too hard
but i would have to ship a default set of risc os sprites ?!?
#below ,#bottom and #draw are all likewise unimplemented.
limitations on #f - routine needs a re-think really.
#indent,#tab and tabs in text are incorectaly handled.
#manuals isnt implemented.
#rgb isnt implemented.
subpages are not implemenetd - hence #subpage ,#tag and the subpage
links dont work.
#wrap isnt implemented.
Have Fun!
Regards Vincent