Hi,

You can customize the caption of ToC by template.
For example, putting following code as _templates/localtoc.html changes the 
title.

<h3><a href="{{ pathto(master_doc) }}">TOC</a></h3>
{{ toc }}

More details, please refer the 
templating: http://www.sphinx-doc.org/en/stable/templating.html

Thanks,
Takeshi KOMIYA


2016年6月23日木曜日 8時55分50秒 UTC+9 EMK:
>
> I'm working on a user guide delivered in HTML and the html theme 
> "classic". I added the overall document structure to the sidebar by using 
> the information in the 
> http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars 
> documentation.
>
> Now I have the problem that each TOC automatically gets a <h3> title that 
> says Table of Contents. So I have multiple Table Of Contents headers in my 
> sidebar. 
>
> I tried adding a custom TOC name by using the *caption* parameter in the 
> TOCs, but that just gets put in after Table of Contents. (And it looks like 
> it only gets put in on the main index page, which is not really what I 
> want...) 
>
> So when you look at my sidebar now, you see something like this: 
>
> Table Of Contents         <-- mysterious header content
>
>   Configuration Guide                  <- caption from toc (only appears 
> on index page?)
>
>    - About this software          <-- toc contents 
>    - Configuration Overview 
>    - Control Panel Settings
>    -   ... 
>    - Appendix B: Removing Licenses 
>
> Table Of Contents        <-- mysterious header content
>
>   Configuration Overview            <-- local page title 
>
>    - Networking                      <-- local page contents from titles
>    - Storage
>    - ...
>
> Previous topic
>  ...
>
> Next topic
>  ...
>
> Quick search 
>  ... 
>
>
> I would like to be able to change one or both of the "Table of Contents" 
> headers to some other words. 
>
> Also it would be great if I could control the relative size of those 
> headers, for example to have the main table of contents header stay at a 
> <h3> and move the page contents header down to <h4>.
>
> Thoughts? 
>
>

-- 
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 https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to