Move all base templates to separate directory
Now we can store all base templates in separate directory and use a link on these templates instead of copy-pasting it in all new directory. Change-Id: Ibc0c77642bb40303606047a54e3e198e7ef5a962
This commit is contained in:
parent
0fbe33a108
commit
53c1092943
@ -33,7 +33,7 @@ feed_base_url = 'http://specs.openstack.org/openstack/heat-specs'
|
||||
feed_author = 'OpenStack Heat Team'
|
||||
|
||||
exclude_patterns = [
|
||||
'**/template.rst',
|
||||
'**/templates/*.rst',
|
||||
]
|
||||
|
||||
# Optionally allow the use of sphinxcontrib.spelling to verify the
|
||||
|
@ -87,11 +87,13 @@ class TestTitles(testtools.TestCase):
|
||||
|
||||
def test_template(self):
|
||||
releases = [x.split('/')[1] for x in glob.glob('specs/*/')]
|
||||
# ignore directory with base templates for releases
|
||||
releases.remove('templates')
|
||||
# Ignore juno and kilo.
|
||||
releases.remove('juno')
|
||||
releases.remove('kilo')
|
||||
for release in releases:
|
||||
with open("specs/%s/template.rst" % release) as f:
|
||||
with open("specs/templates/%s-template.rst" % release) as f:
|
||||
template = f.read()
|
||||
spec = docutils.core.publish_doctree(template)
|
||||
template_titles = self._get_titles(spec)
|
||||
|
Loading…
Reference in New Issue
Block a user