openstack-manuals/doc
Pranav Salunke de38f2767f install: Updates syntax for training labs parser.
Training labs parser will allow us to automatically parse RST code
to BASH. This BASH code in turn will be invoked by install-guides for
validating the install guides. To provide the correct information to the
parser for generating BASH code, there are a few changes required to the
RST syntax.

Introduces the following changes to RST syntax:

  - `.. end`

    This tag provides information for the parser to stop extracting the
    given block which could be code, file injection or configuration
    file edit.

  - `.. endonly`

    This tag provides information for the parser with the correct
    distro-switch logic for identifying distro-specific code.

    For .. only:: tags, it is better to avoid nesting. If nesting
    is not avoidable then it is preferable to add the .. endonly
    tag to close the outer block immediately.

  - Extra new lines in code-blocks

    Some commands in the code-blocks provides the expected output of the
    given command. This is not a BASH command which we want to run but
    rather some visual niceness for the users. These new lines provides
    the parser information to identify the end of the command. This
    basic logic would be something similar to find '\r\n' which at least
    for python means new empty line.

  - `mysql>`

    Introducing this operator for mysql commands. This could potentially
    be changed to `pgsql>` or similar for other SQL type databases.
    This allows the parser to identify mysql commands and then run
    them in mysql instead of in 'sh' or 'bash'.

  - `.. path`

    Introducing this tag to provide the parser with the information with
    the path of the configuration file. Using the description text for
    the same is not reliable since the description text may not be
    consistent.

This commit should ideally introduce all the syntax changes required for
the parser to convert the code-blocks in here to BASH code. These
changes should have no impact on the HTML output of the RST code.

Change-Id: I47830b1bc61c8b1a0f3350932d15aa3ce88fa672
2016-09-28 10:58:06 +02:00
..
admin-guide Support Newton release 2016-09-27 13:58:48 +00:00
arch-design Merge "[glossary] Consolodate project codenames [ceilometer]" 2016-09-23 03:57:42 +00:00
arch-design-draft Merge "[arch-design-draft] Migrate technical requirements content" 2016-09-23 12:06:42 +00:00
cli-reference Perfect the file information(trivial) 2016-09-25 14:55:49 +08:00
common install: Updates syntax for training labs parser. 2016-09-28 10:58:06 +02:00
config-reference Add new version info for the huawei-storage-driver.rst 2016-09-28 03:12:59 +00:00
contributor-guide Merge "Revises indentation" 2016-09-28 07:48:02 +00:00
ha-guide Support Newton release 2016-09-27 13:58:48 +00:00
image-guide [Install]Fix typos in ubuntu-image.rst 2016-09-23 17:45:17 +08:00
install-guide install: Updates syntax for training labs parser. 2016-09-28 10:58:06 +02:00
install-guide-debconf [install] Incorporate bootstrap into keystone content 2016-09-16 20:47:32 +00:00
networking-guide Imported Translations from Zanata 2016-09-23 09:05:35 +00:00
ops-guide Merge "[ops-guide] Openstack process" 2016-09-26 10:06:26 +00:00
user-guide Support Newton release 2016-09-27 13:58:48 +00:00