On May 13, 10:05 am, Georg Brandl wrote:
> tuos schrieb:
>
>
>
> > Is there any way to override templates per page?
>
> > After reading source, it seems to me that there is not.
> > Apparently, html_additional_pages are used for other purposes and
> >
Is there any way to override templates per page?
After reading source, it seems to me that there is not.
Apparently, html_additional_pages are used for other purposes and
cannot be used for this because empty context is passed to the
handler:
./html.py-494-# additional pages from conf.py
On May 3, 7:20 pm, Wei-Wei Guo wrote:
> Dear all,
>
> I'm writing a Sphinx extension. I want to implement text folding in HTML like:
>
>
> href="javascript:toggleFold('fold1')">OpenedHead
> href="javascript:toggleFold('fold1')">ClosedHead
> MainText
>
>
> It needs javascript and c
On Apr 25, 5:45 am, Wei-Wei Guo wrote:
> Tuomas Räsänen 写道:
>
> Hi Tuomas,
>
>
>
> > Well, if I understood you correctly, I needed something similiar and
> > ended up with this small extension:
>
> > toctree_items = []
>
> > def html_page_context(app, pagename, templatename, context, doctree):
>
On Apr 22, 3:16 pm, tuos wrote:
> Hi,
>
> I need to extract pagenames and their titles and get the order in
> which they are defined in toctree (in source file). How to do that?
>
> I guess the right event should be 'doctree-resolved' or 'env-update
Hi,
I need to extract pagenames and their titles and get the order in
which they are defined in toctree (in source file). How to do that?
I guess the right event should be 'doctree-resolved' or 'env-updated'.
Titles can be accessed by doctree.env.titles but how to get them in
the original order
Hi,
In version 0.6.1 sphinx/writers/html.py HTMLTranslator.depart_title
does not take into account the situation where a title is a backref-
link to toc and has also a permalink, i.e. the text of h-tag consists
of two separate links.
Therefore Sphinx's html-builder produces nested a-tags (not va