1
1
2
2
# READ THIS FIRST
3
-
3
+
4
4
This directory contains source files and a setup for converting
5
5
PHP's XML documentation into presentation formats like HTML and
6
6
RTF. You should not have to bother with this unless you are
@@ -17,9 +17,9 @@ set up the tools needed, how to work with git and
17
17
DocBook on Linux or Windows, or what conventions you
18
18
should follow when writing phpdoc files, please refer
19
19
to the PHP Documentation HOWTO.
20
-
20
+
21
21
You can read the HOWTO online at: http://doc.php.net/tutorial/
22
-
22
+
23
23
If you are already working with the phpdoc module,
24
24
then you can find its XML source in the howto directory
25
25
of the module, and build it yourself with:
@@ -35,9 +35,9 @@ http://wiki.php.net/doc/phd
35
35
36
36
### source checkout
37
37
38
- For a more general git-workflow see [ the Wiki] ( https://wiki.php.net/vcs/gitworkflow#reviewing_and_closing_pull_requests ) .
38
+ For a more general git-workflow see [ the Wiki] ( https://wiki.php.net/vcs/gitworkflow#reviewing_and_closing_pull_requests ) .
39
39
Make sure to upload your SSH-key to your account at people.php.net
40
-
40
+
41
41
Check out the source
42
42
43
43
``` bash
49
49
```
50
50
51
51
Change ` your-language-of-choice ` if you would like to check out a different language.
52
-
52
+
53
53
Where ` en/ ` contains the DocBook source files, and ` doc-base ` contains tools
54
54
and resources used in all languages.
55
-
55
+
56
56
### edits
57
-
57
+
58
58
* Make the change. Use spaces not tabs. Be sure to carefully watch your whitespace!
59
59
* Look at your unified diff, make sure it looks right and that whitespace changes aren't mixed in:
60
60
``` bash
61
61
git diff path/to/file.xml
62
62
```
63
-
63
+
64
64
* Make sure no errors are present, so at the command line in your phpdoc source directory run:
65
65
``` bash
66
66
php doc-base/configure.php
67
- ```
68
- * If you are translating, remember to add the full hash of the english base-file that you are translating
67
+ ```
68
+ * If you are translating, remember to add the full hash of the english base-file that you are translating
69
69
from, to the files ` EN-Revision ` -comment
70
-
70
+
71
71
** Always run ` php configure.php ` before commit!**
72
72
* Commit your changes
73
73
``` bash
74
74
git commit path/to/file.xml
75
75
```
76
-
76
+
77
77
Read the HOWTO for more information. After reading the HOWTO,
78
- email the phpdoc mailing list (
[email protected] ) with questions
78
+ email the phpdoc mailing list (
[email protected] ) with questions
79
79
and concerns.
80
80
81
81
### new functions
82
-
83
- * Copy an existing xml file or use a skeleton from the HOWTO.
82
+
83
+ * Copy an existing xml file or use a skeleton from the HOWTO.
84
84
Rename and place it into the appropriate directory.
85
85
* Edit. Be sure no leftover text exists. No tabs either.
86
- * If you are translating, remember to add the full commit-hash of the english
86
+ * If you are translating, remember to add the full commit-hash of the english
87
87
base-file that you are translating from, to the files ` EN-Revision ` -comment.
88
88
* Now test locally before commit by first running
89
89
``` bash
@@ -99,31 +99,30 @@ and concerns.
99
99
git push remote your-branch
100
100
```
101
101
* Open a PullRequest to the main repository via github
102
-
103
- Note that the version numbers are taken care of elsewhere (don't worry
102
+
103
+ Note that the version numbers are taken care of elsewhere (don't worry
104
104
about them)
105
105
106
106
### some popular tags and entities
107
-
107
+
108
108
<filename> filenames
109
109
<constant> constants
110
110
<varname> variables
111
111
<parameter> a function's parameter/argument
112
- <function> functions, this links to function pages or bolds if
112
+ <function> functions, this links to function pages or bolds if
113
113
already on the function's page. it also adds ().
114
-
114
+
115
115
<literal> teletype/mono-space font <tt>
116
116
<emphasis> italics
117
117
<example> see HOWTO, includes many other tags.
118
118
<link> internal manual links
119
119
<link linkend="language.variables">variables</link>
120
-
120
+
121
121
<link> external links via global.ent
122
- <link xlink:href="&spec.cookies;">mmm cookies</link>
123
-
122
+ <link xlink:href="&spec.cookies;">mmm cookies</link>
123
+
124
124
<type> types, this links to the given types manual
125
125
page: <type>object</type> -> php.net/types.object
126
-
127
126
128
127
&return.success; see: language-snippets.ent
129
128
&true; <constant>TRUE</constant>
0 commit comments