Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 1 | .. 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. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 4 | |
| 5 | Style guide |
| 6 | =========== |
| 7 | |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 8 | This style guide is for ONAP documentation contributors, reviewers and |
| 9 | committers. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 10 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 11 | Writing guidelines |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 12 | ------------------ |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 13 | Following these writing guidelines will keep ONAP documentation |
| 14 | consistent and readable. Only a few areas are covered below, as |
| 15 | we don't want to make it too complex. Try to keep things simple |
| 16 | and clear, and you can't go far wrong. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 17 | |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 18 | Don’t get too hung up on using correct style. We’d rather have you |
| 19 | submit good information that does not conform to this guide than no |
| 20 | information at all. ONAP’s Documentation project team will be happy |
| 21 | to help you with the prose. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 22 | |
| 23 | General guidelines for all documents |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 25 | - Use standard American English and spelling |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 26 | - Use consistent terminology |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 27 | - 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 | |
| 32 | Abbreviations and acronyms |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 34 | - 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 Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 43 | + Examples: an MSO component, a LAN, an L3-VPN |
| 44 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 45 | |
Andrea Visnyei | 458d275 | 2020-09-18 12:51:39 +0200 | [diff] [blame^] | 46 | ONAP terminology |
| 47 | ^^^^^^^^^^^^^^^^ |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 48 | - AA&I vs AAI: AAI should be used. |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 49 | |
| 50 | - APP-C vs APPC: APPC should be used. |
| 51 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 52 | - SDN-C vs SDNC: SDNC should be used. |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 53 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 54 | - Heat vs HEAT: Both are in use. The official website uses "Heat". |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 55 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 56 | - life cycle vs lifecycle or life-cycle: "life cycle" is preferred. |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 57 | |
| 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 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 64 | - run time (noun). Example: "logging of events at run time". |
| 65 | |
| 66 | GUI elements |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 67 | ^^^^^^^^^^^^ |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 68 | - 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. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 71 | |
| 72 | Headings (Titles) |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 73 | ^^^^^^^^^^^^^^^^^ |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 74 | - Use brief, but specific, informative titles. Titles should give |
| 75 | context when possible. |
| 76 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 77 | - Use sentence-style capitalization; do not end with a period or colon. |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 78 | |
| 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. |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 84 | |
| 85 | Tasks |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 86 | ^^^^^ |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 87 | - Start task titles with an action word. Examples: Create, Add, |
| 88 | Validate, Update. |
| 89 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 90 | - Use [Optional] at the beginning of an optional step. |
Rich Bennett | d504dc8 | 2018-05-31 08:40:36 -0400 | [diff] [blame] | 91 | |
| 92 | - Provide information on the expected outcome of a step, especially |
| 93 | when it is not obvious. |
| 94 | |
MatthewHarffy | 30b6487 | 2017-08-17 16:59:26 +0100 | [diff] [blame] | 95 | - Break down end-to-end tasks into manageable chunks. |
Rich Bennett | 1da3046 | 2017-08-24 12:11:36 -0400 | [diff] [blame] | 96 | |
Rich Bennett | 0ec5a75 | 2018-07-12 16:23:19 -0400 | [diff] [blame] | 97 | |
| 98 | ONAP Conventions for the Use of Sphinx Directives |
| 99 | ------------------------------------------------- |
| 100 | |
| 101 | Needs 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 |