Add index files for specs, specs/juno, specs/kilo

These 3 folders didn't have an index file. This patch adds one so it can
contain a TOC for the accepted specs.

Change-Id: Ib674688ba51765d70b555fa51bcc5d35a9b6bcad
This commit is contained in:
Flavio Percoco 2014-10-07 14:59:04 +02:00
parent 6a0e71402a
commit e79292d8d1
4 changed files with 33 additions and 1 deletions

10
specs/index.rst Normal file
View File

@ -0,0 +1,10 @@
================
Specifications
================
.. toctree::
:glob:
:maxdepth: 1
juno/index
kilo/index

10
specs/juno/index.rst Normal file
View File

@ -0,0 +1,10 @@
====================
Kilo Specifications
====================
.. toctree::
:glob:
:maxdepth: 2
*

10
specs/kilo/index.rst Normal file
View File

@ -0,0 +1,10 @@
====================
Kilo Specifications
====================
.. toctree::
:glob:
:maxdepth: 2
.. *

View File

@ -93,7 +93,9 @@ class TestTitles(testtools.TestCase):
self.assertEqual(0, len(titles[refs]))
def test_template(self):
files = ['specs/template.rst'] + glob.glob('specs/*/*')
files = (['specs/template.rst'] +
filter(lambda x: not x.endswith('index.rst'),
glob.glob('specs/*/*')))
for filename in files:
self.assertTrue(filename.endswith(".rst"),
"spec's file must uses 'rst' extension.")