From: William A. Rowe Jr Apache 2.0 uses DoxyGen to document the API's and global variables in the
+ the code. This will explain the basics of how to document using DoxyGen.
+
+ To start a documentation block, use /** In the middle of the block, there are multiple tags we can use:
- * "/foo/bar/gum" -> "gum"
- * "/foo/bar/gum/" -> ""
- * "gum" -> "gum"
- * "wi\\n32\\stuff" -> "stuff"
- *
- * @deffunc const char * ap_filename_of_pathname(const char *pathname)
- */
-
-At the top of the header file, we always include
-
-/**
- * @package Name of library header
- */
-
-ScanDoc uses a new html file for each package. The html files are named:
-
-Name of library header.html, so try to be concise with your names
-
diff --git a/docs/manual/developer/documenting.html b/docs/manual/developer/documenting.html
new file mode 100644
index 0000000000..8f8163f426
--- /dev/null
+++ b/docs/manual/developer/documenting.html
@@ -0,0 +1,64 @@
+
+
+
+Documentating Apache 2.0
+
+
+ To end a documentation block, use */
+ Description of this functions purpose
+ @param parameter_name description
+
The deffunc is not always necessary. DoxyGen does not have a full parser + in it, so any prototype that use a macro in the return type declaration + is too complex for scandoc. Those functions require a deffunc.
+ +An example (using &> rather than >):
++/** + * return the final element of the pathname + * @param pathname The path to get the final element of + * @return the final element of the path + * @tip Examples: + * <pre> + * "/foo/bar/gum" -&> "gum" + * "/foo/bar/gum/" -&> "" + * "gum" -&> "gum" + * "wi\\n32\\stuff" -&> "stuff" + * </pre> + * @deffunc const char * ap_filename_of_pathname(const char *pathname) + */ ++ +
At the top of the header file, always include:
++/** + * @package Name of library header + */ ++ +
ScanDoc uses a new html file for each package. The html files are named + {Name_of_library_header}.html, so try to be concise with your names.
+ + + + diff --git a/docs/manual/developer/index.html b/docs/manual/developer/index.html index 93eb0d9d2f..c20d989ccd 100644 --- a/docs/manual/developer/index.html +++ b/docs/manual/developer/index.html @@ -16,10 +16,22 @@Converting Apache 1.3 Modules to Apache 2.0
-Debugging Memory Allocation in APR
- +Many of the documents on these Developer pages are lifted from Apache 1.3's + documentation. While they are all being updated to Apache 2.0, they are + in different stages of progress. Please be patient, and point out any + discrepancies or errors on the developer/ pages directly to the + dev@httpd.apache.org mailing list.
+ +