doc:scratchpad:howto

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
doc:scratchpad:howto [2008/12/19 06:30] – Added info for "checking out phpdoc", and reformatting philipdoc: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 'phpdoc'. See also the [[http://php.net/anoncvs|generic generic php.net CVS instructions]]. And these examples use the cvs command but other methods exist, like [[http://www.tortoisecvs.org/|TortoisCVS]] for Windows users. +They are stored in a SVN module named 'phpdoc'. See also the [[http://www.php.net/svn.php|generic generic php.net SVN instructions]]. And these examples use the svn command but other methods exist, like [[http://www.tortoisesvn.net/|TortoiseSVN]] for Windows users.
-Assuming no CVS account (Password for user //cvsread// is //phpfi//):+
 <code> <code>
-cvs -d :pserver:cvsread@cvs.php.net:/repository login +svn checkout http://svn.php.net/repository/phpdoc
-$ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout phpdoc+
 </code> </code>
-The key informationServercvs.php.net Usercvsread Pass: phpfi CVS Module: phpdoc+ 
 +== Using TortoiseSVN on Windows to do a checkout == 
 +  * First off, download and install TortoiseSVN from its website[[http://tortoisesvn.net/]] 
 +  * 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://svn.php.net/repository/phpdoc", then OK to begin the checkout. If you're prompted to enter a password while checking out, then type in "phpfi" and OK 
 +  * 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/reference/extension_name/+  /phpdoc/en/trunk/reference/extension_name/
  
 For example, the SVN extension documentation exists in: For example, the SVN extension documentation exists in:
    
-  /phpdoc/en/reference/svn/+  /phpdoc/en/trunk/reference/svn/
  
 There you'll find several files: There you'll find several files:
  
-  * //book.xml// (Acts as the container for the extension and contains the preface)+  * //book.xml// (Acts as the container for the extension and contains the preface. Other files (like //examples.xml// are included from here)
   * //setup.xml// (Includes setup, install and configuration documentaiton)   * //setup.xml// (Includes setup, install and configuration documentaiton)
   * //constants.xml// (Lists all constants the extension declares, if any)   * //constants.xml// (Lists all constants the extension declares, if any)
   * //configure.xml// (Usually this information is in setup.xml, but if the file exists it is magically included into setup.xml)   * //configure.xml// (Usually this information is in setup.xml, but if the file exists it is magically included into setup.xml)
 +  * //examples.xml// (Various examples)
 +  * //foo.xml// (Example, foo can be anything specific to a topic. Just be sure to include via //book.xml//)
  
 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 "coding standard" described in the documentation howto. And after it validates, commit. Simply open the files and edit them. Remember to follow the "coding standard" described in the documentation howto. And after it validates, commit.
 <code> <code>
-$ vim phpdoc/en/reference/strings/strlen.xml+$ vim phpdoc/en/trunk/reference/strings/strlen.xml
 $ php configure.php $ php configure.php
-cvs commit phpdoc/en/reference/strings/strlen.xml -m "Added SeeAlso strpos()"+svn commit -m "Added SeeAlso strpos()" phpdoc/en/trunk/reference/strings/strlen.xml
 </code> </code>
  
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:
  
 <code> <code>
-  $ cvs diff -u > changes.patch+  $ svn diff > changes.patch
 </code> </code>
  
-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://www.rarsoft.com/|WinRAR]].
  
 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