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:
parent
6a0e71402a
commit
e79292d8d1
10
specs/index.rst
Normal file
10
specs/index.rst
Normal file
@ -0,0 +1,10 @@
|
||||
================
|
||||
Specifications
|
||||
================
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
:maxdepth: 1
|
||||
|
||||
juno/index
|
||||
kilo/index
|
10
specs/juno/index.rst
Normal file
10
specs/juno/index.rst
Normal file
@ -0,0 +1,10 @@
|
||||
====================
|
||||
Kilo Specifications
|
||||
====================
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
:maxdepth: 2
|
||||
|
||||
*
|
||||
|
10
specs/kilo/index.rst
Normal file
10
specs/kilo/index.rst
Normal file
@ -0,0 +1,10 @@
|
||||
====================
|
||||
Kilo Specifications
|
||||
====================
|
||||
|
||||
.. toctree::
|
||||
:glob:
|
||||
:maxdepth: 2
|
||||
|
||||
.. *
|
||||
|
@ -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.")
|
||||
|
Loading…
x
Reference in New Issue
Block a user