Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
migration:kamailio-module-docbook [2009/04/21 22:34] miconda |
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 | + | <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 in the **Makefile** the name of the file **modulename.xml** |
- | ** **entities.xml** | + | * write your **modulename.xml** |
- | ** **module_faq.xml** with **kam_module_faq.xml** | + | |
- | You are done. Add the new **Makefile** to repository | + | You are done. Add the new **Makefile** |