Hi,

I try using sphinx for building a static website. I'm struggling to get
a custom TOC-tree, which depends on the document path. I read through
the docs and searched the web, but maybe I've overlooked something.

I want to show only the top-level, the "path" to the current documents
and the current documents siblings. This is the navigation-menu which is
common in websites, eg. those created with Plone. An (ugly) example can
be found in the navigation-menu at
<http://www.crazy-compilers.com/decompyle/service.html>.

How can I achieve this?

Details of what I want:

Assume a file structure like this:

index
project1/
    index
    download
project1/
    index
    background/
        index
        some-more       
    references
contact
impressum

My aim is to have the TOC contain

  * in each *top-level* page: /index, /project1/index, /project2/index,
    /contact, /impresum
  * in */project1/** pages: /index, */project1/**, /project2/index,
    /contact, /impresum
  * in */project2/background/** pages: /index, /project1/index,
    /project2/index, */project2/background/**, /contact, /impresum

I hope, you understand, what I mean :-)

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goe...@crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to sphinx-dev@googlegroups.com.
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en.

Reply via email to