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
Subject: Only directive blocks headers from being in TOC
Problem
If you use the "only directive" to flag off some content, any headers inside that directive won't show up in the TOC.
Procedure to reproduce the problem
**CONTENTS:**
.. contents::
:local:
:depth: 1
Title1
======
Some content.
.. only:: internal
Title2
======
Some more content.
Title3
======
Even more content.
Error logs / results
When you run:
sphinx-build -b html -t internal ....
The generated TOC at the top of the page looks like this:
CONTENTS:
Title1
Title3
Expected results
What we really want is this:
CONTENTS:
Title1
Title2
Title3
The "Title2" header should only be missing from the TOC if I run something like sphinx-build -b html -t external so using a -t flag other than internal.
The text was updated successfully, but these errors were encountered:
Subject: Only directive blocks headers from being in TOC
Problem
Procedure to reproduce the problem
Error logs / results
When you run:
The generated TOC at the top of the page looks like this:
CONTENTS:
Expected results
What we really want is this:
CONTENTS:
The "Title2" header should only be missing from the TOC if I run something like
sphinx-build -b html -t external
so using a-t
flag other thaninternal
.The text was updated successfully, but these errors were encountered: