blob: 17dee9fdaad7fa1cab8e78a367b4008ed7e7accf [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
MatthewHarffy30b64872017-08-17 16:59:26 +010011Writing guidelines
Rich Bennett1da30462017-08-24 12:11:36 -040012------------------
Rich Bennettd504dc82018-05-31 08:40:36 -040013Following these writing guidelines will keep ONAP documentation
14consistent and readable. Only a few areas are covered below, as
15we don't want to make it too complex. Try to keep things simple
16and clear, and you can't go far wrong.
MatthewHarffy30b64872017-08-17 16:59:26 +010017
Rich Bennettd504dc82018-05-31 08:40:36 -040018Dont get too hung up on using correct style. Wed rather have you
19submit good information that does not conform to this guide than no
20information at all. ONAPs Documentation project team will be happy
21to help you with the prose.
MatthewHarffy30b64872017-08-17 16:59:26 +010022
23General guidelines for all documents
Rich Bennett1da30462017-08-24 12:11:36 -040024^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010025- Use standard American English and spelling
Rich Bennettd504dc82018-05-31 08:40:36 -040026- Use consistent terminology
MatthewHarffy30b64872017-08-17 16:59:26 +010027- Write in the active voice, using present simple tense when possible
28- Write objective, professional content
29- Keep sentences and paragraphs short and clear
30- Use a spell checker
31
32Abbreviations and acronyms
Rich Bennett1da30462017-08-24 12:11:36 -040033^^^^^^^^^^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040034- Write out the term the first time it appears in the document,
35 immediately followed by the acronym or abbreviation in parenthesis.
36 Then use the acronym in the rest of the document. In diagrams, if
37 space allows, write out the full term.
38
39- Use an before an acronym that begins with a vowel sound when spoken
40 aloud; use "a" before an acronym that begins with a consonant
41 sound when spoken aloud.
42
Rich Bennett1da30462017-08-24 12:11:36 -040043 + Examples: an MSO component, a LAN, an L3-VPN
44
MatthewHarffy30b64872017-08-17 16:59:26 +010045
Andrea Visnyei458d2752020-09-18 12:51:39 +020046ONAP terminology
47^^^^^^^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010048- AA&I vs AAI: AAI should be used.
Rich Bennettd504dc82018-05-31 08:40:36 -040049
50- APP-C vs APPC: APPC should be used.
51
MatthewHarffy30b64872017-08-17 16:59:26 +010052- SDN-C vs SDNC: SDNC should be used.
Rich Bennettd504dc82018-05-31 08:40:36 -040053
MatthewHarffy30b64872017-08-17 16:59:26 +010054- Heat vs HEAT: Both are in use. The official website uses "Heat".
Rich Bennettd504dc82018-05-31 08:40:36 -040055
MatthewHarffy30b64872017-08-17 16:59:26 +010056- life cycle vs lifecycle or life-cycle: "life cycle" is preferred.
Rich Bennettd504dc82018-05-31 08:40:36 -040057
58- open source (adjective): capitalize only in titles; avoid
59 "open-source". (Based on prevalence on the web.)
60
61- run-time vs. execution-time (adjective): prefer run-time.
62 Example: "run-time logging of events"
63
MatthewHarffy30b64872017-08-17 16:59:26 +010064- run time (noun). Example: "logging of events at run time".
65
66GUI elements
Rich Bennett1da30462017-08-24 12:11:36 -040067^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040068- In general, write menu names as they appear in the UI.
69 For example, if a menu or item name is all caps, then write
70 it all caps in the document.
MatthewHarffy30b64872017-08-17 16:59:26 +010071
72Headings (Titles)
Rich Bennett1da30462017-08-24 12:11:36 -040073^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040074- Use brief, but specific, informative titles. Titles should give
75 context when possible.
76
MatthewHarffy30b64872017-08-17 16:59:26 +010077- Use sentence-style capitalization; do not end with a period or colon.
Rich Bennettd504dc82018-05-31 08:40:36 -040078
79- Use a gerund to begin section titles. Examples: Configuring,
80 Managing, Starting.
81
82- Use descriptive titles for tables and figures titles. Do not
83 number tables or figures. Do not (in general) add titles for screen shots.
MatthewHarffy30b64872017-08-17 16:59:26 +010084
85Tasks
Rich Bennett1da30462017-08-24 12:11:36 -040086^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040087- Start task titles with an action word. Examples: Create, Add,
88 Validate, Update.
89
MatthewHarffy30b64872017-08-17 16:59:26 +010090- Use [Optional] at the beginning of an optional step.
Rich Bennettd504dc82018-05-31 08:40:36 -040091
92- Provide information on the expected outcome of a step, especially
93 when it is not obvious.
94
MatthewHarffy30b64872017-08-17 16:59:26 +010095- Break down end-to-end tasks into manageable chunks.
Rich Bennett1da30462017-08-24 12:11:36 -040096
Rich Bennett0ec5a752018-07-12 16:23:19 -040097
98ONAP Conventions for the Use of Sphinx Directives
99-------------------------------------------------
100
101Needs Directive
102^^^^^^^^^^^^^^^
103
104 * Needs IDs must match the regular expression "^[A-Z0-9]+-[A-Z0-9]+"
105
106 * The prefix (string before the dash) must be described in the following table
107
108.. list-table:: Needs Prefix Use
109 :align: center
110 :widths: 8 40 40
111 :header-rows: 1
112
113 * - Prefix
114 - Description
115 - Use
116
117 * - R
118 - Represents a requirement that must be met by a VNF provider
119 - Defined only in the vnfrqts project repositories, may be referenced in any project repository source