11
22# READ THIS FIRST
3-
3+
44This directory contains source files and a setup for converting
55PHP's XML documentation into presentation formats like HTML and
66RTF. 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
1717DocBook on Linux or Windows, or what conventions you
1818should follow when writing phpdoc files, please refer
1919to the PHP Documentation HOWTO.
20-
20+
2121You can read the HOWTO online at: http://doc.php.net/tutorial/
22-
22+
2323If you are already working with the phpdoc module,
2424then you can find its XML source in the howto directory
2525of the module, and build it yourself with:
@@ -35,9 +35,9 @@ http://wiki.php.net/doc/phd
3535
3636### source checkout
3737
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 ) .
3939Make sure to upload your SSH-key to your account at people.php.net
40-
40+
4141Check out the source
4242
4343``` bash
@@ -49,41 +49,41 @@ git clone git@git.php.net:/doc/base.git doc-base
4949```
5050
5151Change ` your-language-of-choice ` if you would like to check out a different language.
52-
52+
5353Where ` en/ ` contains the DocBook source files, and ` doc-base ` contains tools
5454and resources used in all languages.
55-
55+
5656### edits
57-
57+
5858* Make the change. Use spaces not tabs. Be sure to carefully watch your whitespace!
5959* Look at your unified diff, make sure it looks right and that whitespace changes aren't mixed in:
6060 ``` bash
6161 git diff path/to/file.xml
6262 ```
63-
63+
6464* Make sure no errors are present, so at the command line in your phpdoc source directory run:
6565 ``` bash
6666 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
6969 from, to the files ` EN-Revision ` -comment
70-
70+
7171 ** Always run ` php configure.php ` before commit!**
7272* Commit your changes
7373 ``` bash
7474 git commit path/to/file.xml
7575 ```
76-
76+
7777Read the HOWTO for more information. After reading the HOWTO,
78- email the phpdoc mailing list (phpdoc@lists.php.net ) with questions
78+ email the phpdoc mailing list (phpdoc@lists.php.net ) with questions
7979and concerns.
8080
8181### 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.
8484 Rename and place it into the appropriate directory.
8585* 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
8787 base-file that you are translating from, to the files ` EN-Revision ` -comment.
8888* Now test locally before commit by first running
8989 ``` bash
@@ -99,31 +99,30 @@ and concerns.
9999 git push remote your-branch
100100 ```
101101* 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
104104about them)
105105
106106### some popular tags and entities
107-
107+
108108 <filename> filenames
109109 <constant> constants
110110 <varname> variables
111111 <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
113113 already on the function's page. it also adds ().
114-
114+
115115 <literal> teletype/mono-space font <tt>
116116 <emphasis> italics
117117 <example> see HOWTO, includes many other tags.
118118 <link> internal manual links
119119 <link linkend="language.variables">variables</link>
120-
120+
121121 <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+
124124 <type> types, this links to the given types manual
125125 page: <type>object</type> -> php.net/types.object
126-
127126
128127 &return.success; see: language-snippets.ent
129128 &true; <constant>TRUE</constant>
0 commit comments