Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
migration:kamailio-module-docbook [2009/04/21 22:10] miconda created |
migration:kamailio-module-docbook [2009/04/24 10:21] (current) miconda |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Kamailio Module Docbook Migration ====== | ====== Kamailio Module Docbook Migration ====== | ||
- | * add to your module 'doc' folder a Makefile following the next pattern: | + | <hi # |
- | < | + | ===== For new modules ===== |
- | # | + | |
- | # The list of documents to build (without extensions) | + | |
- | # | + | |
- | DOCUMENTS | + | |
- | # | + | * make a **doc** directory in your module |
- | # The root directory containing | + | * take the Makefile |
- | # | + | |
- | ROOT_DIR=../ | + | |
- | # | + | < |
- | # Validate docbook documents before generating output | + | docs = modulename.xml |
- | # (may be slow) | + | |
- | # | + | |
- | #VALIDATE=1 | + | |
- | # | + | docbook_dir |
- | # You can override the CSS used in generated | + | include $(docbook_dir)/Makefile.module |
- | # HTML documents here | + | |
- | # | + | |
- | #HTML_CSS=/style/docbook.css | + | |
- | + | ||
- | # | + | |
- | # You can override the stylesheet used to generate | + | |
- | # xhtml documents here | + | |
- | # | + | |
- | # | + | |
- | + | ||
- | # | + | |
- | # You can override the stylesheet used to generate | + | |
- | # plain text documents here | + | |
- | # | + | |
- | # | + | |
- | + | ||
- | # | + | |
- | # K documentation style | + | |
- | # | + | |
- | DOCBOOK_MODE=k | + | |
- | + | ||
- | include $(ROOT_DIR)/Makefile.doc | + | |
</ | </ | ||
- | * replace in the Makefile the word ' | + | For **dispatcher** module |
< | < | ||
- | DOCUMENTS | + | docs = dispatcher.xml |
+ | |||
+ | docbook_dir = ../ | ||
+ | include $(docbook_dir)/ | ||
</ | </ | ||
- | * edit doc/ | + | * replace |
- | ** entities.xml with kam_entities.xml | + | * write your **modulename.xml** and other docbook files you include in it |
- | ** module_faq.xml with kam_module_faq.xml | + | |
- | You are done. Add the new Makefile to repository | + | You are done. Add the new **Makefile** and the docbook files to repository, then commit and upload to sip-router.org GIT. |