Add the service type to the project page title
This has the advantage of including the service type in the list of projects which gives readers some extra context in an otherwise potentially bewildering list of names. Change-Id: Icf6a644d283368f957b978fa4321800d15f38f3e
This commit is contained in:
parent
30a0d73a6c
commit
852db7a9e2
@ -25,11 +25,17 @@ IRC_LOG_URL_BASE = 'http://eavesdrop.openstack.org/irclogs/%23'
|
||||
|
||||
|
||||
def _team_to_rst(name, info):
|
||||
|
||||
if 'service' in info:
|
||||
title = "{0} ({1})".format(name.title(), info['service'])
|
||||
else:
|
||||
title = name.title()
|
||||
|
||||
yield '.. _project-%s:' % projects.slugify(name)
|
||||
yield ''
|
||||
yield '=' * len(name)
|
||||
yield name.title()
|
||||
yield '=' * len(name)
|
||||
yield '=' * len(title)
|
||||
yield title
|
||||
yield '=' * len(title)
|
||||
yield ''
|
||||
yield ':Home Page: ' + info.get('url', '')
|
||||
ptl = info.get('ptl', {'name': '', 'irc': ''})
|
||||
|
Loading…
Reference in New Issue
Block a user