diff options
author | Rich Bennett <rb2745@att.com> | 2018-05-31 08:40:36 -0400 |
---|---|---|
committer | Rich Bennett <rb2745@att.com> | 2018-05-31 08:47:54 -0400 |
commit | d504dc8a03a9e885056980daa39cfddfa720305e (patch) | |
tree | ac1d77c09457f16f6306652942ffe7bf37ea4542 /docs/guides/onap-developer/how-to-use-docs/style-guide.rst | |
parent | 795452f4608f6145bec3ea181bae51da1b59d17a (diff) |
Updates to How To Create Documentation
Integrating with doc project named release branch
Code review of verify job console and html build
How to use Read Docs URLs
Doc8, formating, and reference link corrections
Change-Id: If8ba97632045ec9542fd4bf1b2213a1bac5fd61d
Issue-ID: DOC-270
Signed-off-by: Rich Bennett <rb2745@att.com>
Diffstat (limited to 'docs/guides/onap-developer/how-to-use-docs/style-guide.rst')
-rw-r--r-- | docs/guides/onap-developer/how-to-use-docs/style-guide.rst | 83 |
1 files changed, 62 insertions, 21 deletions
diff --git a/docs/guides/onap-developer/how-to-use-docs/style-guide.rst b/docs/guides/onap-developer/how-to-use-docs/style-guide.rst index 5d477a99b..74fc261c1 100644 --- a/docs/guides/onap-developer/how-to-use-docs/style-guide.rst +++ b/docs/guides/onap-developer/how-to-use-docs/style-guide.rst @@ -1,21 +1,27 @@ -.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. This work is licensed under a Creative Commons Attribution 4.0 +.. International License. http://creativecommons.org/licenses/by/4.0 +.. Copyright 2017 AT&T Intellectual Property. All rights reserved. Style guide =========== -This style guide is for ONAP documentation contributors, reviewers and committers. +This style guide is for ONAP documentation contributors, reviewers and +committers. Getting started --------------- When is documentation required? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -All ONAP project contributions should have corresponding documentation. This includes all new features and changes to features that impact users. +All ONAP project contributions should have corresponding documentation. +This includes all new features and changes to features that impact users. How do I create ONAP documentation? ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -ONAP documentation is written in ReStructuredText_ (an easy-to-read, what-you-see-is-what-you-get, plain text markup syntax). -The process for creating ONAP documentation and what documents are required are described here: <<add links to Documentation process/automated tools sections>> +ONAP documentation is written in ReStructuredText_ (an easy-to-read, +what-you-see-is-what-you-get, plain text markup syntax). The process for +creating ONAP documentation and what documents are required are +described in later sections of this Developer Documentation Guide. .. _ReStructuredText: http://docutils.sourceforge.net/rst.html @@ -23,19 +29,25 @@ ReStructuredText markup conventions ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ For detailed information ReStructuredText and how to best use the format, see: -- `ReStructured Text Primer <http://docutils.sourceforge.net/docs/user/rst/quickstart.html>` -- `ReStructured Text Quick Reference <http://docutils.sourceforge.net/docs/user/rst/quickref.html>` +- `ReStructured Text Primer <http://docutils.sourceforge.net/docs/user/rst/quickstart.html>`_ +- `ReStructured Text Quick Reference <http://docutils.sourceforge.net/docs/user/rst/quickref.html>`_ Writing guidelines ------------------ -Following these writing guidelines will keep ONAP documentation consistent and readable. Only a few areas are covered below, as we don't want to make it too complex. Try to keep things simple and clear, and you can't go far wrong. +Following these writing guidelines will keep ONAP documentation +consistent and readable. Only a few areas are covered below, as +we don't want to make it too complex. Try to keep things simple +and clear, and you can't go far wrong. -Don’t get too hung up on using correct style. We’d rather have you submit good information that doesn’t conform to this guide than no information at all. ONAP’s Documentation project team will be happy to help you with the prose. +Don’t get too hung up on using correct style. We’d rather have you +submit good information that does not conform to this guide than no +information at all. ONAP’s Documentation project team will be happy +to help you with the prose. General guidelines for all documents ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - Use standard American English and spelling -- Use consistent terminology +- Use consistent terminology - Write in the active voice, using present simple tense when possible - Write objective, professional content - Keep sentences and paragraphs short and clear @@ -43,37 +55,66 @@ General guidelines for all documents Abbreviations and acronyms ^^^^^^^^^^^^^^^^^^^^^^^^^^ -- Write out the term the first time it appears in the document, immediately followed by the acronym or abbreviation in parenthesis. Then use the acronym in the rest of the document. In diagrams, if space allows, write out the full term. -- Use “an” before an acronym that begins with a vowel sound when spoken aloud; use "a" before an acronym that begins with a consonant sound when spoken aloud. +- Write out the term the first time it appears in the document, + immediately followed by the acronym or abbreviation in parenthesis. + Then use the acronym in the rest of the document. In diagrams, if + space allows, write out the full term. + +- Use “an” before an acronym that begins with a vowel sound when spoken + aloud; use "a" before an acronym that begins with a consonant + sound when spoken aloud. + + Examples: an MSO component, a LAN, an L3-VPN ONAP terms ^^^^^^^^^^ - AA&I vs AAI: AAI should be used. -- APP-C vs APPC: APPC should be used. + +- APP-C vs APPC: APPC should be used. + - SDN-C vs SDNC: SDNC should be used. + - Heat vs HEAT: Both are in use. The official website uses "Heat". + - life cycle vs lifecycle or life-cycle: "life cycle" is preferred. -- open source (adjective): capitalize only in titles; avoid "open-source". (Based on prevalence on the web.) -- run-time vs. execution-time (adjective): prefer run-time. Example: "run-time logging of events" + +- open source (adjective): capitalize only in titles; avoid + "open-source". (Based on prevalence on the web.) + +- run-time vs. execution-time (adjective): prefer run-time. + Example: "run-time logging of events" + - run time (noun). Example: "logging of events at run time". GUI elements ^^^^^^^^^^^^ -- In general, write menu names as they appear in the UI. For example, if a menu or item name is all caps, then write it all caps in the document. +- In general, write menu names as they appear in the UI. + For example, if a menu or item name is all caps, then write + it all caps in the document. Headings (Titles) ^^^^^^^^^^^^^^^^^ -- Use brief, but specific, informative titles. Titles should give context when possible. +- Use brief, but specific, informative titles. Titles should give + context when possible. + - Use sentence-style capitalization; do not end with a period or colon. -- Use a gerund to begin section titles. Examples: Configuring, Managing, Starting. -- Use descriptive titles for tables and figures titles. Do not number tables or figures. Do not (in general) add titles for screen shots. + +- Use a gerund to begin section titles. Examples: Configuring, + Managing, Starting. + +- Use descriptive titles for tables and figures titles. Do not + number tables or figures. Do not (in general) add titles for screen shots. Tasks ^^^^^ -- Start task titles with an action word. Examples: Create, Add, Validate, Update. +- Start task titles with an action word. Examples: Create, Add, + Validate, Update. + - Use [Optional] at the beginning of an optional step. -- Provide information on the expected outcome of a step, especially when it is not obvious. + +- Provide information on the expected outcome of a step, especially + when it is not obvious. + - Break down end-to-end tasks into manageable chunks. |