blob: 74fc261c15ef8d1afa5f8735db0c882b7d0b1c0a [file] [log] [blame]
Rich Bennettd504dc82018-05-31 08:40:36 -04001.. This work is licensed under a Creative Commons Attribution 4.0
2.. International License. http://creativecommons.org/licenses/by/4.0
3.. Copyright 2017 AT&T Intellectual Property. All rights reserved.
MatthewHarffy30b64872017-08-17 16:59:26 +01004
5Style guide
6===========
7
Rich Bennettd504dc82018-05-31 08:40:36 -04008This style guide is for ONAP documentation contributors, reviewers and
9committers.
MatthewHarffy30b64872017-08-17 16:59:26 +010010
11Getting started
Rich Bennett1da30462017-08-24 12:11:36 -040012---------------
MatthewHarffy30b64872017-08-17 16:59:26 +010013
14When is documentation required?
Rich Bennett1da30462017-08-24 12:11:36 -040015^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040016All ONAP project contributions should have corresponding documentation.
17This includes all new features and changes to features that impact users.
MatthewHarffy30b64872017-08-17 16:59:26 +010018
19How do I create ONAP documentation?
Rich Bennett1da30462017-08-24 12:11:36 -040020^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040021ONAP documentation is written in ReStructuredText_ (an easy-to-read,
22what-you-see-is-what-you-get, plain text markup syntax). The process for
23creating ONAP documentation and what documents are required are
24described in later sections of this Developer Documentation Guide.
MatthewHarffy30b64872017-08-17 16:59:26 +010025
26.. _ReStructuredText: http://docutils.sourceforge.net/rst.html
27
28ReStructuredText markup conventions
Rich Bennett1da30462017-08-24 12:11:36 -040029^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010030For detailed information ReStructuredText and how to best use the format, see:
31
Rich Bennettd504dc82018-05-31 08:40:36 -040032- `ReStructured Text Primer <http://docutils.sourceforge.net/docs/user/rst/quickstart.html>`_
33- `ReStructured Text Quick Reference <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_
MatthewHarffy30b64872017-08-17 16:59:26 +010034
35Writing guidelines
Rich Bennett1da30462017-08-24 12:11:36 -040036------------------
Rich Bennettd504dc82018-05-31 08:40:36 -040037Following these writing guidelines will keep ONAP documentation
38consistent and readable. Only a few areas are covered below, as
39we don't want to make it too complex. Try to keep things simple
40and clear, and you can't go far wrong.
MatthewHarffy30b64872017-08-17 16:59:26 +010041
Rich Bennettd504dc82018-05-31 08:40:36 -040042Dont get too hung up on using correct style. Wed rather have you
43submit good information that does not conform to this guide than no
44information at all. ONAPs Documentation project team will be happy
45to help you with the prose.
MatthewHarffy30b64872017-08-17 16:59:26 +010046
47General guidelines for all documents
Rich Bennett1da30462017-08-24 12:11:36 -040048^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010049- Use standard American English and spelling
Rich Bennettd504dc82018-05-31 08:40:36 -040050- Use consistent terminology
MatthewHarffy30b64872017-08-17 16:59:26 +010051- Write in the active voice, using present simple tense when possible
52- Write objective, professional content
53- Keep sentences and paragraphs short and clear
54- Use a spell checker
55
56Abbreviations and acronyms
Rich Bennett1da30462017-08-24 12:11:36 -040057^^^^^^^^^^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040058- Write out the term the first time it appears in the document,
59 immediately followed by the acronym or abbreviation in parenthesis.
60 Then use the acronym in the rest of the document. In diagrams, if
61 space allows, write out the full term.
62
63- Use an before an acronym that begins with a vowel sound when spoken
64 aloud; use "a" before an acronym that begins with a consonant
65 sound when spoken aloud.
66
Rich Bennett1da30462017-08-24 12:11:36 -040067 + Examples: an MSO component, a LAN, an L3-VPN
68
MatthewHarffy30b64872017-08-17 16:59:26 +010069
70ONAP terms
Rich Bennett1da30462017-08-24 12:11:36 -040071^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010072- AA&I vs AAI: AAI should be used.
Rich Bennettd504dc82018-05-31 08:40:36 -040073
74- APP-C vs APPC: APPC should be used.
75
MatthewHarffy30b64872017-08-17 16:59:26 +010076- SDN-C vs SDNC: SDNC should be used.
Rich Bennettd504dc82018-05-31 08:40:36 -040077
MatthewHarffy30b64872017-08-17 16:59:26 +010078- Heat vs HEAT: Both are in use. The official website uses "Heat".
Rich Bennettd504dc82018-05-31 08:40:36 -040079
MatthewHarffy30b64872017-08-17 16:59:26 +010080- life cycle vs lifecycle or life-cycle: "life cycle" is preferred.
Rich Bennettd504dc82018-05-31 08:40:36 -040081
82- open source (adjective): capitalize only in titles; avoid
83 "open-source". (Based on prevalence on the web.)
84
85- run-time vs. execution-time (adjective): prefer run-time.
86 Example: "run-time logging of events"
87
MatthewHarffy30b64872017-08-17 16:59:26 +010088- run time (noun). Example: "logging of events at run time".
89
90GUI elements
Rich Bennett1da30462017-08-24 12:11:36 -040091^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040092- In general, write menu names as they appear in the UI.
93 For example, if a menu or item name is all caps, then write
94 it all caps in the document.
MatthewHarffy30b64872017-08-17 16:59:26 +010095
96Headings (Titles)
Rich Bennett1da30462017-08-24 12:11:36 -040097^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040098- Use brief, but specific, informative titles. Titles should give
99 context when possible.
100
MatthewHarffy30b64872017-08-17 16:59:26 +0100101- Use sentence-style capitalization; do not end with a period or colon.
Rich Bennettd504dc82018-05-31 08:40:36 -0400102
103- Use a gerund to begin section titles. Examples: Configuring,
104 Managing, Starting.
105
106- Use descriptive titles for tables and figures titles. Do not
107 number tables or figures. Do not (in general) add titles for screen shots.
MatthewHarffy30b64872017-08-17 16:59:26 +0100108
109Tasks
Rich Bennett1da30462017-08-24 12:11:36 -0400110^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -0400111- Start task titles with an action word. Examples: Create, Add,
112 Validate, Update.
113
MatthewHarffy30b64872017-08-17 16:59:26 +0100114- Use [Optional] at the beginning of an optional step.
Rich Bennettd504dc82018-05-31 08:40:36 -0400115
116- Provide information on the expected outcome of a step, especially
117 when it is not obvious.
118
MatthewHarffy30b64872017-08-17 16:59:26 +0100119- Break down end-to-end tasks into manageable chunks.
Rich Bennett1da30462017-08-24 12:11:36 -0400120