KOMIYAさん ありがとうございます。
Does this file extend localtoc or overwrite it?
I figured out how to do it with globaltoc (same thing but with {{ toctree()
}} at the bottom), but I am worried that I will omit important parts of the
original globaltoc if _templates/globaltoc.html overwrites the built-in
globaltoc.
On Friday, June 24, 2016 at 11:31:10 AM UTC-4, Komiya Takeshi wrote:
>
> 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.