executablebooks / sphinx-external-toc

A sphinx extension that allows the site-map to be defined in a single YAML file
https://sphinx-external-toc.readthedocs.io
MIT License
33 stars 18 forks source link

tableofcontents maxdepth directive not applied #59

Closed ZviBaratz closed 2 years ago

ZviBaratz commented 2 years ago

Describe the problem

The table of contents rendered by the tableofcontents directive shows only one level, even when the maxdepth parameter in the book's _toc.yml is set to some higher number.

Link to your repository or website

https://zvibaratz.github.io/phd/content.html

Steps to reproduce

  1. Create a book with some "deep" headers and a _toc.yml such as:
    format: jb-book
    root: front
    chapters:
    - file: abstract
    - file: content
    options:
    numbered: true
    maxdepth: 4
    sections:
    - file: lists
    - file: chapters/introduction
    ...

The version of Python you're using

3.9.9

Your operating system

Linux (Kubuntu)

Versions of your packages

Jupyter Book      : 0.12.1
External ToC      : 0.2.3
MyST-Parser       : 0.15.2
MyST-NB           : 0.13.1
Sphinx Book Theme : 0.1.7
Jupyter-Cache     : 0.4.3
NbClient          : 0.5.9

Additional context

The issue is opened following the discussion in executablebooks/meta#592.

welcome[bot] commented 2 years ago

Thanks for opening your first issue here! Engagement like this is essential for open source projects! :hugs:
If you haven't done so already, check out EBP's Code of Conduct. Also, please try to follow the issue template as it helps other community members to contribute more effectively.
If your issue is a feature request, others may react to it, to raise its prominence (see Feature Voting).
Welcome to the EBP community! :tada:

ZviBaratz commented 2 years ago

This is resolved with titlesonly set to false.