You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
==========
Chapter A
==========
.. toctree::
:hidden::glob::maxdepth:1a/*
Intro
========
Introduction text
Terminology-wise I'll refer to Intro as an "internal" section heading as this is defined on the same page, and a/* as "external" section headings as they are defined on subpages.
Currently sphinx-material in the global TOC renders all the subsection headings a/* plus Intro directly below Chapter A in the tree, as per what the above syntax defines. In the local TOC however, this renders just Intro directly below Chapter A, i.e. only the internal section heading.
I would like to omit rendering Intro (i.e. the internal section heading) in the global TOC, and only render external section headings, however I couldn't figure out how to change globaltoc.html and localtoc.html to do this. Clearly there is some way of distinguishing the internal vs external section headings, could you please advise?
The text was updated successfully, but these errors were encountered:
infinity0
added a commit
to infinity0/sphinx-material
that referenced
this issue
Dec 4, 2020
Suppose I have a page like:
Terminology-wise I'll refer to
Intro
as an "internal" section heading as this is defined on the same page, anda/*
as "external" section headings as they are defined on subpages.Currently sphinx-material in the global TOC renders all the subsection headings
a/*
plusIntro
directly belowChapter A
in the tree, as per what the above syntax defines. In the local TOC however, this renders justIntro
directly belowChapter A
, i.e. only the internal section heading.I would like to omit rendering
Intro
(i.e. the internal section heading) in the global TOC, and only render external section headings, however I couldn't figure out how to changeglobaltoc.html
andlocaltoc.html
to do this. Clearly there is some way of distinguishing the internal vs external section headings, could you please advise?The text was updated successfully, but these errors were encountered: