1

I´m trying to run sphinx-bootstrap-theme from Ryan Romer and anything goes on the right way, but the globaltoc maximumdepth; I could not fix that in a value differente than one.

from conf.py

'globaltoc_depth': "3",

'globaltoc_includehidden': "true",

from theme.config

globaltoc_includehidden = true

navbar_fixed_top = false
mzjn
  • 48,958
  • 13
  • 128
  • 248
DanCom
  • 13
  • 3

1 Answers1

0

Do not place quote marks around integers. Doing so casts them to strings. See the theme-options for readme for sphinx-bootstrap-theme.

The correct values in conf.py should be:

"globaltoc_depth": 3,
"globaltoc_includehidden": "true",

Strangely the same does not hold for booleans in the configuration. If you don't get what you want, try changing to:

"globaltoc_includehidden": True,
Steve Piercy
  • 13,693
  • 1
  • 44
  • 57
  • This is one of the options I tried, but it didn't work and it still doesn't work a few hours later. But thanks. – DanCom Sep 15 '19 at 09:57
  • Did you do a `make clean` to remove cached files? Check the build file's timestamp to ensure it is after your last run. – Steve Piercy Sep 16 '19 at 17:00
  • @StevePiercy I guess setting "true" works correctly, because it is a String. In Python, if you do a Boolean comparison with a String which is not empty (""), results in `True`. – david Dec 17 '21 at 14:46