ba5549b68c
Changed awkward wording in opening sentence. Change-Id: Ica58c1e71ef055edd0aa67e83cc7cf87c2bf49fb
2.6 KiB
2.6 KiB
Documentation structure
File naming conventions
To indicate the hierarchical type of files for XML filenames use the following prefixes:
bk_
for book,ch_
for chapter,section_
for sectionapp_
for appendix.
For RST filenames:
- follow page-based, topical approach to file naming and do not apply any special prefixes,
- use hyphen as a space delimiter.
When migrating XML to RST, use the xml:id
attribute
value from a source file as a filename for a converted file. For
example, if the source XML file contains
xml:id="technical_considerations_multi_site"
, name the
newly created RST file as follows:
technical-considerations-multi-site.rst
Directory structure
For better organization, use subdirectories to organize the files by a particular grouping such as project or topic.
Common practices include:
- Figure subdirectory includes images (both PNG and SVG source files).
- Sample subdirectory contains samples of source code and configuration files.
- Chapter subdirectory stores all sections included in one chapter with the parent file located in the top-level directory.
Structure checklist
Use the following checklist for a DocBook manual.
Task | Make sure that | Tick if done |
---|---|---|
pom.xml file |
Your pom.xml file uses the latest (non-SNAPSHOT) cloud-doc plugin version and is configured correctly. To find the version number of the latest plugin, go to Clouddocs Maven Plugin Release Notes. | |
TOC | Your pom.xml file
configures a TOC for your book. |
|
Glossary | You embedded the shared glossary and marked terms with the
<glossterm> tag in your document. |
|
Preface | Your book has a preface. | |
Document history | The preface includes the document history. Also, make sure that you have included a revision entry for your latest change. | |
Titles | Titles correspond to the file content | |
Code samples | Code samples are in separate files and included in chapter, section, or appendix file. | |
Chunking | Chapters and appendices are in separate files and included in the book file. | |
Source filenames | Source filenames use filename-conv . |