[docs] Include rally-openstack plugins into docs

Change-Id: I349b92245f800d141ba33f1d9009761f15742e30
This commit is contained in:
Andrey Kurilin
2020-05-06 20:05:01 +03:00
parent 266d6bc53f
commit 346268901e
2 changed files with 10 additions and 5 deletions

View File

@@ -22,15 +22,17 @@ from docutils.parsers import rst
from docutils import utils
import string
import six
def parse_text(text):
parser = rst.Parser()
settings = frontend.OptionParser(
components=(rst.Parser,)).get_default_values()
document = utils.new_document(text, settings)
parser.parse(text, document)
try:
parser.parse(text, document)
except Exception as e:
print(f"WARNING: {e}")
return []
return document.children
@@ -51,7 +53,7 @@ def make_definition(term, ref, descriptions):
{"ref": ref, "term": term})
for descr in descriptions:
if descr:
if isinstance(descr, (six.text_type, six.binary_type)):
if isinstance(descr, (str, bytes)):
if descr[0] not in string.ascii_uppercase:
descr = descr.capitalize()
descr = paragraph(" %s" % descr)

View File

@@ -1,2 +1,5 @@
# we are using theme from it
oslosphinx
oslosphinx
# Rally plugins
rally-openstack