Adding documentation pages
| From: | Jacques Marneweck | Date: | Tue, 20 Jul 2004 21:42:02 +0000 |
| Subject: | Adding documentation pages | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-4621@lists.php.net to get a copy of this message | ||
Hi,
When adding pages to the documentation will the following work:
jacques@raider:~/cvsstuff/phpnet/peardoc/en/package/networking$ cvs
diff -u net-ipv4 net-ipv4.xml
Index: net-ipv4.xml
===================================================================
RCS file: /repository/peardoc/en/package/networking/net-ipv4.xml,v
retrieving revision 1.2
diff -u -u -r1.2 net-ipv4.xml
--- net-ipv4.xml 11 Feb 2004 10:40:31 -0000 1.2
+++ net-ipv4.xml 20 Jul 2004 11:56:26 -0000
@@ -11,6 +11,7 @@
&package.networking.net-ipv4.validatenetmask;
&package.networking.net-ipv4.parseaddress;
&package.networking.net-ipv4.calculate;
+ &package.networking.net-ipv4.ipinnetwork;
</sect1>
<!-- Keep this comment at the end of the file
Local variables:
When adding a page one adds the entry to the main package .xml file
correct. Then one needs to use copy an existing documentation page
and modify in this case for the function I've added:
root@raider:~/cvsstuff/phpnet/peardoc/en/package/networking# cat
net-ipv4/ipinnetwork.xml
<!-- $Revision:$ -->
<refentry id="package.networking.net-ipv4.ipinnetwork">
<refnamediv>
<refname>Net_IPv4::ipInNetwork()</refname>
<refpurpose>Determines whether or not the supplied IP is within the supplied
network.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<funcsynopsis>
<funcsynopsisinfo>
require_once('Net/IPv4.php');
</funcsynopsisinfo>
<funcprototype>
<funcdef>bool <function>validateIP</function></funcdef>
<paramdef>string <parameter>$ip_addr</parameter></paramdef>
<paramdef>string <parameter>$cidr_block</parameter></paramdef>
</funcprototype>
</funcsynopsis>
</refsynopsisdiv>
<refsect1 id="package.networking.net-ipv4.ipinnetwork.desc">
&title.desc;
<para>
Determines whether or not the supplied IP address is within the supplied
network.
</para>
</refsect1>
<refsect1 id="package.networking.net-ipv4.ipinnetwork.note">
&title.note;
¬e.canstatic;
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
The next question is can we add some example phpcode to the page as well?
Regards
--jm
--
Jacques Marneweck
http://www.powertrip.co.za/blog/