Style Guide, structure only

Create Style Guide as a .rst document in fuel-docs.

Change-Id: Ifa9aa07c183e82b22669375ac04aa1737fbe5a2b
This commit is contained in:
Meg McRoberts 2015-01-03 03:27:43 -08:00 committed by Dmitry Borodaenko
parent 092c10a2ba
commit 3511765c71
10 changed files with 159 additions and 0 deletions

View File

@ -17,4 +17,5 @@ Documentation
terminology
file-ref
release-notes
style-guide
eula

View File

@ -0,0 +1,7 @@
.. include:: /pages/style-guide/0010-intro.rst
.. include:: /pages/style-guide/0100-words.rst
.. include:: /pages/style-guide/0200-syntax.rst
.. include:: /pages/style-guide/0300-coding.rst
.. include:: /pages/style-guide/0800-git-gerrit.rst
.. include:: /pages/style-guide/0900-reviewer-checklist.rst

View File

@ -80,6 +80,11 @@ with references to other documentation and other useful information.
Reference pages for select configuration files that Fuel uses.
:ref:`style-guide`
~~~~~~~~~~~~~~~~~~
Contains style guidelines for the Mirantis OpenStack documentation.
:ref:`release-notes` `(pdf) <pdf/Mirantis-OpenStack-6.0-RelNotes.pdf>`__
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View File

@ -0,0 +1,13 @@
Introduction
============
This little guide is a compendium of documentation practices
for Mirantis writers.
It is a living document;
anyone involved in the documentation creation process
is free to submit CRs to modify and augment the content.
Documentation from non-writers
------------------------------

View File

@ -0,0 +1,5 @@
.. _terminology-style:
Terminology lists
=================

View File

@ -0,0 +1,89 @@
.. _syntax-style:
Writing syntax
==============
Directive
---------
Write short & simple sentences.
**Correct use:** To verify that Neutron HA is working, do the following.
**Incorrect use:** If you'd like to verify that Neutron HA is working, shut down the node hosting the Neutron agent and check if the agents start on the other node with the *crm status* command.
Directive
---------
Write sentences that express only one idea.
**Correct use:** Corosync should start after the network interfaces are activated. *bindnetaddr* should be located in the management network or at least in the same multicast reachable segment.
**Incorrect use:** Corosync should start after the network interfaces are activated, and bindnetaddr should be located in the management network or at least in the same multicast reachable segment.
Directive
---------
Write the same sentence if you want to express the same content. Dont be afraid to repeat. Avoid synonyms.
**Correct use:** These commands, in order, allow you to start, stop, and restart resources. ...These commands, in order, allow you to start, stop, and restart resources.
**Incorrect use:** These commands, in order, allow you to start, stop, and restart resources. ...The execution of these commands will allow you restart, stop, or start the resources in the same order.
Directive
---------
Write sentences in the active form. Avoid passive voice.
**Correct use:** To enable the feature, execute the following on a running Fuel Master node.
**Incorrect use:** The following should be executed on a running Fuel Master node for the feature to be enabled.
Directive
---------
Write sentences that repeat the noun instead of using a pronoun.
**Correct use:** Fuel is able to configure Murano's dashboard, API, and engine services. Fuel can install Murano on either CentOS or Ubuntu.
**Incorrect use:** Fuel is able to configure Murano's dashboard, API, and engine services. Fuel can install it on either CentOS or Ubuntu.
Directive
---------
Write sentences that use articles to identify nouns.
**Correct use:** Test the installation.
**Incorrect use:** Test installation.
Directive
---------
Write sentences that use only words with correct spelling and capitalization. Avoid mistakes.
**Correct use:** You can manage the VMware cluster using the Horizon dashboard.
**Incorrect use:** You can manage the VMWare cluster using the Horizon dashboard.
Directive
---------
Capitalize all words in a title except for prepositions and articles, regardless of the preposition length.
**Correct use:** Choosing between the Horizon Console or Nova CLI
**Incorrect use:** Choosing Between The Horizon Console or Nova CLI
Directive
---------
Capitalize only the first word in a subtitle.
**Correct use:** Restarting the services
**Incorrect use:** Restarting the Services
Directive
---------
Put the UI elements and commands when used in a sentence in *italics*.
**Correct use:** Check the status with the *crm_mon -1* command.
**Incorrect use:** Check the status with the "crm_mon -1" command.
Directive
---------
Be careful when giving examples in your writing. The words 'For example' should begin a sentence only when a main verb follows.
**Correct use:** For example, a Load Balancing as a Service (LBaaS) plug-in allows you to add network load balancing functionality to your cloud.
**Incorrect use:** You can add network load balancing functionality to your cloud. For example, through a Load Balancing as a Service (LBaaS) plug-in.
Directive
---------
Avoid beginning sentences with certain linking words, for example, 'which', 'while/whilst', 'whereas', 'although', as well as 'and' or 'but'.
**Correct use:** Add Ubuntu or CentOS packages which are required for your plug-in.
**Incorrect use:** Add Ubuntu or CentOS packages. Which is required for your plug-in to run successfully.

View File

@ -0,0 +1,6 @@
.. _coding-style:
Coding and formatting practices
===============================

View File

@ -0,0 +1,17 @@
.. _git-gerrit:
Git and Gerrit practices
========================
Basic Git and Gerrit workflow
-----------------------------
Submitting a CR to a stable (already-release) branch
----------------------------------------------------
Basing a CR on another CR
-------------------------
Sizing a CR
-----------

View File

@ -0,0 +1,5 @@
.. _reviewer-checklist-style:
Reviewer's Checklist
====================

11
style-guide.rst Normal file
View File

@ -0,0 +1,11 @@
.. index:: Style Guide
.. _style-guide:
===========
Style Guide
===========
.. contents:: :local:
.. include:: /contents/contents-style-guide.rst