devel:module-docbook-readme
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
devel:module-docbook-readme [2013/04/05 11:46] – created miconda | devel:module-docbook-readme [2020/08/12 14:52] (current) – [Writing Docbook Files for Module Readme] miconda | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Writing Docbook Files for Module Readme ====== | ====== Writing Docbook Files for Module Readme ====== | ||
- | README file for each module is generated from xml docbook files residing in **doc/** sub folder. When one adds a new module it has to write these files, then generate the README using: | + | README file for each module is generated from xml docbook files residing in **doc/** sub folder. |
+ | |||
+ | When one adds a new module it has to write these xml docbook | ||
< | < | ||
make modules-readme modules=modules/ | make modules-readme modules=modules/ | ||
</ | </ | ||
+ | |||
+ | For old modules (or after the new module has been published to the public git repository) do not generate anymore the README for pushing it to git. Push only the changes to the xml files, because the README will be automatically generated by a cron service running on server to ensure coherent formatting and avoid conflicts when having to backport to older branches. | ||
+ | |||
+ | Of course, you can generate the README locally to check if the result is the expected one, but then restore the old README without changes -- it can be done with: | ||
+ | |||
+ | < | ||
+ | rm src/ | ||
+ | git checkout src/ | ||
+ | </ | ||
+ | |||
===== Naming Files ===== | ===== Naming Files ===== | ||
Line 13: | Line 25: | ||
The docbook file are: | The docbook file are: | ||
- | * modname.xml - the main docbook file, including other files that have content | + | * modname.xml |
- | * modname_admin.xml - the docbook file that includes content targeting administrators (e.g., short description, | + | * modname_admin.xml |
* modname_devel.xml - the docbook file that includes content targeting developers (e.g., inter module APIs) | * modname_devel.xml - the docbook file that includes content targeting developers (e.g., inter module APIs) | ||
Line 42: | Line 54: | ||
* s - statistics | * s - statistics | ||
* e - event routes | * e - event routes | ||
+ | * v - pseudovariable | ||
Next is an example showing the id for the section corresponding to parameter **workers** from module **async**: | Next is an example showing the id for the section corresponding to parameter **workers** from module **async**: |
devel/module-docbook-readme.1365162363.txt.gz · Last modified: 2013/04/05 11:46 by miconda