Update formatting of teams page
Make the teams page a little easier to use. * Add section titles for clarity and for hrefs, so you can link to say the mission of a team (neutron.html#mission) * List each tag on its own line. As the number of tags grow putting all the tags for a given repo on a single line will become unwieldy. Change-Id: I1aef7897f718ab851a5ac83a1a979ee8ca48f6c2
This commit is contained in:
parent
fdd9535a85
commit
86108189be
|
@ -36,6 +36,9 @@ def _team_to_rst(name, info):
|
||||||
yield ''
|
yield ''
|
||||||
mission = info.get('mission', '').rstrip()
|
mission = info.get('mission', '').rstrip()
|
||||||
if mission:
|
if mission:
|
||||||
|
yield "Mission"
|
||||||
|
yield '-------'
|
||||||
|
yield ''
|
||||||
yield mission
|
yield mission
|
||||||
yield ''
|
yield ''
|
||||||
tags = [
|
tags = [
|
||||||
|
@ -43,23 +46,26 @@ def _team_to_rst(name, info):
|
||||||
for t in info.get('tags', [])
|
for t in info.get('tags', [])
|
||||||
]
|
]
|
||||||
if tags:
|
if tags:
|
||||||
yield 'Team based tags:'
|
yield 'Team based tags'
|
||||||
yield '%s' % ', '.join(tags)
|
yield '----------------'
|
||||||
yield ''
|
yield ''
|
||||||
yield 'Repositories (tags):'
|
for tag in tags:
|
||||||
|
yield '- %s' % tag
|
||||||
|
yield ''
|
||||||
|
yield 'Repositories and Tags'
|
||||||
|
yield '---------------------'
|
||||||
yield ''
|
yield ''
|
||||||
for project in info.get('projects', []):
|
for project in info.get('projects', []):
|
||||||
tags = [
|
yield '- :repo:`%s`' % project['repo']
|
||||||
':ref:`tag-%s`' % t['name']
|
tags = project.get('tags', [])
|
||||||
for t in project.get('tags', [])
|
if tags is not []:
|
||||||
]
|
|
||||||
if tags:
|
|
||||||
tag_references = '(%s)' % ', '.join(tags)
|
|
||||||
else:
|
|
||||||
tag_references = ''
|
|
||||||
yield '- :repo:`%s` %s' % (project['repo'], tag_references)
|
|
||||||
yield ''
|
yield ''
|
||||||
yield '.. extraatcstable:: :ref:`Extra ATCs <atc>`'
|
for tag in tags:
|
||||||
|
yield ' - :ref:`tag-%s`' % tag['name']
|
||||||
|
yield ''
|
||||||
|
yield 'Extra ATCs'
|
||||||
|
yield '-----------'
|
||||||
|
yield '.. extraatcstable:: '
|
||||||
yield ' :project: %s' % name
|
yield ' :project: %s' % name
|
||||||
yield ''
|
yield ''
|
||||||
|
|
||||||
|
|
|
@ -4,5 +4,6 @@
|
||||||
|
|
||||||
.. toctree::
|
.. toctree::
|
||||||
:glob:
|
:glob:
|
||||||
|
:titlesonly:
|
||||||
|
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue