Thanks, Takayuki Shimizukawa. That looks like it will work. 

On Tuesday, October 28, 2014 5:12:33 AM UTC-7, Takayuki SHIMIZUKAWA wrote:
>
> Hi, 
>
> This might works fine, but this will emit WARNINGs. 
>
> html_sidebars = { 
>     '**': ['non-index-template.html'], 
>     '**/index': ['index-template.html'], 
>     'index': ['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']] 
> > } 
>
> How about this? 
>
> html_sidebars = { 
>     '**': ['non-index-template.html'], 
>     'index.rst': ['index-template.html'], 
> } 
> html_sidebars['1/index.rst'] = html_sidebars['index.rst'] 
> html_sidebars['2/index.rst'] = html_sidebars['index.rst'] 
> html_sidebars['3/index.rst'] = html_sidebars['index.rst'] 
>
> Or, 
>
> index_sidebars = ['index-template.html'] 
> html_sidebars = { 
>     '**': ['non-index-template.html'], 
>     'index.rst': index_sidebars, 
>     '1/index.rst': index_sidebars, 
>     '2/index.rst': index_sidebars, 
>     '3/index.rst': index_sidebars, 
> } 
>
> Regards, 
> -- 
> Takayuki SHIMIZUKAWA 
> http://about.me/shimizukawa 
>

-- 
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