blob: f8e9d2363753bb38fdbe821f70cb1a08cb2f91bb [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.
thmsdt21d59412022-08-02 13:28:17 +02004.. Copyright 2022 ONAP
MatthewHarffy30b64872017-08-17 16:59:26 +01005
thmsdt21d59412022-08-02 13:28:17 +02006Style Guide (Content)
7=====================
MatthewHarffy30b64872017-08-17 16:59:26 +01008
Rich Bennettd504dc82018-05-31 08:40:36 -04009This style guide is for ONAP documentation contributors, reviewers and
thmsdt21d59412022-08-02 13:28:17 +020010committers and covers content related topics.
MatthewHarffy30b64872017-08-17 16:59:26 +010011
MatthewHarffy30b64872017-08-17 16:59:26 +010012Writing guidelines
Rich Bennett1da30462017-08-24 12:11:36 -040013------------------
Rich Bennettd504dc82018-05-31 08:40:36 -040014Following these writing guidelines will keep ONAP documentation
15consistent and readable. Only a few areas are covered below, as
16we don't want to make it too complex. Try to keep things simple
17and clear, and you can't go far wrong.
MatthewHarffy30b64872017-08-17 16:59:26 +010018
Rich Bennettd504dc82018-05-31 08:40:36 -040019Dont get too hung up on using correct style. Wed rather have you
20submit good information that does not conform to this guide than no
21information at all. ONAPs Documentation project team will be happy
22to help you with the prose.
MatthewHarffy30b64872017-08-17 16:59:26 +010023
24General guidelines for all documents
Rich Bennett1da30462017-08-24 12:11:36 -040025^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MatthewHarffy30b64872017-08-17 16:59:26 +010026- Use standard American English and spelling
Rich Bennettd504dc82018-05-31 08:40:36 -040027- Use consistent terminology
MatthewHarffy30b64872017-08-17 16:59:26 +010028- Write in the active voice, using present simple tense when possible
29- Write objective, professional content
30- Keep sentences and paragraphs short and clear
31- Use a spell checker
32
33Abbreviations and acronyms
Rich Bennett1da30462017-08-24 12:11:36 -040034^^^^^^^^^^^^^^^^^^^^^^^^^^
Rich Bennettd504dc82018-05-31 08:40:36 -040035- Write out the term the first time it appears in the document,
36 immediately followed by the acronym or abbreviation in parenthesis.
37 Then use the acronym in the rest of the document. In diagrams, if
38 space allows, write out the full term.
39
40- Use an before an acronym that begins with a vowel sound when spoken
41 aloud; use "a" before an acronym that begins with a consonant
42 sound when spoken aloud.
43
Rich Bennett1da30462017-08-24 12:11:36 -040044 + Examples: an MSO component, a LAN, an L3-VPN
45
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
thmsdt21d59412022-08-02 13:28:17 +020066GUI 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