forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
88 lines (55 loc) · 2.54 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
Zend Framework Docbook End-User Documentation
=============================================
To build the documentation, you have two options: using the standard
xsltproc toolchain, or using PhD (http://docs.php.net/phd/), PHP's
Documentation renderer (preferred).
Using PhD
---------
To generate using PhD, you need the following tools:
- xsltproc
- The ZF build tools:
You can check these out locally within this directory by running the
following command:
"svn co http://framework.zend.com/svn/framework/build-tools/trunk/build-tools/docs phd"
From here, you need to collate the docbook sources to a single file, and
then run PhD:
- run "xsltproc --xinclude ./phd/db4-upgrade.xsl manual.xml.in > manual.full.xml | tee -a err.txt"
- run "./phd/pear/phd -g 'phpdotnet\phd\Highlighter_GeSHi' --xinclude -f zfpackage -d manual.full.xml -o ./output"
The manual will now be in "output/zf-package-chunked-xhtml/manual.html"
Using the xsltproc toolchain
----------------------------
Using the xsltproc toolchain requires the following tools:
- autoconf
- make
- xsltproc
- xmllint
You can setup this environment variables to set a different DTD or stylesheet:
- DOCBOOK_DTD=http://www.docbook.org/xml/5.0/dtd/docbook.dtd
- DOCBOOK_XSL=http://docbook.sourceforge.net/release/xsl/1.76.1/html/chunk.xsl
- DOCBOOK_FO_XSL=http://docbook.sourceforge.net/release/xsl/1.76.1/fo/docbook.xsl
On Windows, you should use Cygwin software or another port of GNU
development tools.
- run "autoconf" in this dir
- run "./configure" in this dir
- run "make"
The HTML files are rendered in the "html" dir.
When developing content, you can verify your changes by running:
"make check"
This verifies the XML for the whole manual is valid.
You can verify your changes in a single file by running:
"make XMLFILE=filename.xml check1"
The filename.xml is relative to the "module_specs" directory.
DocBook resources:
http://www.ibiblio.org/godoy/sgml/docbook/howto/index.html
http://opensource.bureau-cornavin.com/crash-course/index.html
http://ds9a.nl/docbook/
http://www.sagehill.net/docbookxsl/index.html
http://docbook.org/tdg/en/html/part2.html DocBook tag reference
To generate a CHM project file, you must install MsHtmlHelpWorkshop.
To build the CHM file on the command line navigate to the directory
in which the manual html files are built as described above
Then call:
"C:/path/to/workshop/hhc htmlhelp.hhp"
where "C:/path/to/workshop/" is the path to MsHtmlHelpWorkshop.
This will build a "Zend_Framework_LANGUAGE.chm" file.
You should now have an index in the file.