Suppose I have the following project structure:

/
    index.rst
    1/
        index.rst
        a.rst
    2/
        index.rst
        b.rst
        3/
            index.rst
            c.rst

How can I create an html_sidebars 
<http://sphinx-doc.org/config.html#confval-html_sidebars> rule in Sphinx's 
conf.py which applies to all files named index.rst? If possible, please 
provide supporting Sphinx documentation explaining the various wildcard 
characters that can be used with html_sidebars.

Or do I have to explicitly specify every file...

html_sidebars = {'**': ['non-index-template.html'],
                 'index.rst': ['index-template.html'],
                 '1/index.rst': ['index-template.html'],
                 '2/index.rst': ['index-template.html'],
                 '3/index.rst': ['index-template.html']}


Tangential question, is there a way to reference the value of a dictionary 
key within that dictionary? E.g.

html_sidebars = {'**': ['non-index-template.html'],
                 'index.rst': ['index-template.html'],
                 '1/index.rst': [this['index.rst']],
                 '2/index.rst': [this['index.rst']],
                 '3/index.rst': [this['index.rst']]}

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to