doc:scratchpad:howto
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:scratchpad:howto [2008/12/19 06:30] – Added info for "checking out phpdoc", and reformatting philip | doc:scratchpad:howto [2009/08/04 11:32] – Fix CVS mentions mrook | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Quick guide for improving the existing PHP documentation ===== | ===== Quick guide for improving the existing PHP documentation ===== | ||
- | |||
==== Getting setup ==== | ==== Getting setup ==== | ||
Line 6: | Line 5: | ||
== Source files of the PHP Manual == | == Source files of the PHP Manual == | ||
- | They are stored in a CVS module named ' | + | They are stored in a SVN module named ' |
- | Assuming no CVS account (Password for user //cvsread// is //phpfi//): | + | |
< | < | ||
- | $ cvs -d :pserver: | + | $ svn checkout http://svn.php.net/ |
- | $ cvs -d : | + | |
</ | </ | ||
- | The key information: Server: cvs.php.net User: cvsread Pass: phpfi CVS Module: | + | |
+ | == Using TortoiseSVN on Windows to do a checkout == | ||
+ | * First off, download and install TortoiseSVN from its website: [[http:// | ||
+ | * Open a new explorer window and go to the folder you wish to do a checkout in | ||
+ | * Right click anywhere in the blank area to spawn the context menu, select "SVN Checkout..." | ||
+ | * A new window will popup asking for details about the checkout, these values will be remembered, so you will not need to enter them again | ||
+ | * Enter the following URL: "http:// | ||
+ | * When the checkout is complete, then it should have created a directory called "phpdoc" where the php documentation source tree will be | ||
+ | |||
+ | |||
== The build system == | == The build system == | ||
Line 40: | Line 47: | ||
Poke around the **html/** directory and open up some of the files in you favorite browser to see if everything is fine. | Poke around the **html/** directory and open up some of the files in you favorite browser to see if everything is fine. | ||
- | |||
==== Knowing the structure ==== | ==== Knowing the structure ==== | ||
The documentation for extensions is located in: | The documentation for extensions is located in: | ||
- | / | + | /phpdoc/en/trunk/ |
For example, the SVN extension documentation exists in: | For example, the SVN extension documentation exists in: | ||
- | / | + | /phpdoc/en/trunk/ |
There you'll find several files: | There you'll find several files: | ||
- | * // | + | * // |
* // | * // | ||
* // | * // | ||
* // | * // | ||
+ | * // | ||
+ | * //foo.xml// (Example, foo can be anything specific to a topic. Just be sure to include via // | ||
A procedural extension (like SVN) also has: | A procedural extension (like SVN) also has: | ||
Line 73: | Line 81: | ||
Simply open the files and edit them. Remember to follow the " | Simply open the files and edit them. Remember to follow the " | ||
< | < | ||
- | $ vim phpdoc/ | + | $ vim phpdoc/en/trunk/ |
$ php configure.php | $ php configure.php | ||
- | $ cvs commit phpdoc/ | + | $ svn commit |
</ | </ | ||
Line 115: | Line 123: | ||
If everything is looking good, its time to post the changes. | If everything is looking good, its time to post the changes. | ||
- | |||
==== Committing the changes ==== | ==== Committing the changes ==== | ||
Line 123: | Line 130: | ||
< | < | ||
- | $ cvs diff -u > changes.patch | + | $ svn diff > changes.patch |
</ | </ | ||
- | If you added new files you will have to create an archive of the new files you added (tar -cf changes.tar file1.xml file2.xml file3.xml). | + | If you added new files you will have to create an archive of the new files you added (tar -cf changes.tar file1.xml file2.xml file3.xml). On Windows you may use an external utility to create an archive such as [[http:// |
Then upload the archive (or patch file) to http somewhere and post the link to phpdoc@lists.php.net including a short summary of what you did. | Then upload the archive (or patch file) to http somewhere and post the link to phpdoc@lists.php.net including a short summary of what you did. | ||
Line 134: | Line 141: | ||
== Committing patches == | == Committing patches == | ||
- | If you have CVS karma then there is no need to create patches... just commit! | + | If you have SVN karma then there is no need to create patches... just commit! |
- | + |
doc/scratchpad/howto.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1