4 |
have wml and texi2html installed. To make the HTML files, just |
have wml and texi2html installed. To make the HTML files, just |
5 |
type "make". |
type "make". |
6 |
|
|
7 |
Questions, comments, or gripes about this setup can be sent to |
|
8 |
/dev/null. |
Quick and dirty "How To" |
9 |
|
|
10 |
|
How to create a webpage: |
11 |
|
|
12 |
|
1. When working in a subdirectory, begin the page with: |
13 |
|
#!wml --include=.. |
14 |
|
|
15 |
|
2. Add: |
16 |
|
#include "include/layout.wml" |
17 |
|
|
18 |
|
3. Add <subject "page title"> |
19 |
|
|
20 |
|
this will set the page title to: |
21 |
|
"page title - GNU Project -Free Software Foundation (FSF)" |
22 |
|
|
23 |
|
4. Write your contents. Use the following pattern: |
24 |
|
|
25 |
|
<box> |
26 |
|
<boxtitle>...section title...</boxtitle> |
27 |
|
<boxitem>...section contents...</boxitem> |
28 |
|
|
29 |
|
<boxtitle>...section title...</boxtitle> |
30 |
|
<boxitem>...section contents...</boxitem> |
31 |
|
</box> |
32 |
|
|
33 |
|
5. To change the menu entries, edit include/layout.wml |
34 |
|
|
35 |
|
6. Call make to build the pages. |
36 |
|
|
37 |
|
7. Set "CLASSPATH_WEBROOT" to a directory before calling "make publish" |
38 |
|
to deploy the pages locally |
39 |
|
|
40 |
|
A few useful tags (defined in layout.wml) |
41 |
|
|
42 |
|
* <createlink name="name" url="url> |
43 |
|
|
44 |
|
creates a <a href="url">name</a> entry |
45 |
|
|
46 |
|
Some pages define their own tags (e.g. faq.wml, tools.wml, downloads.wml) |
47 |
|
to organize their content. |