You can do this by putting this at the top of the file:
:tocdepth: 2
cheers,
Georg
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
iEYEARECAAYFAk0o9UkACgkQN9GcIYhpnLDNugCgjDWQQPS09YUbkjluJ6owIN/4
wMgAn3zjOSSbB1XDT/grWPT7N1MPXSjX
=TEZQ
-----END PGP SIGNATURE-----
--
You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
To post to this group, send email to sphin...@googlegroups.com.
To unsubscribe from this group, send email to sphinx-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.
Are you sure you put ":tocdepth: 2" at the *top* of the *file*?
Georg
Am 10.01.2011 17:20, schrieb Eric Gilmore:
> Georg, I tried that, and it only affected the TOC tree in the index page -- not
> the side bar.
>
> *Should* that setting affect the side bar as well, and there is something wrong
> with my setup?
>
> The "stickysidebar" setting does basically solve my problem of long parameters
> spilling over. But I'm still curious about controlling the depth of the side bar.
>
> Thanks very much for your attention to my message :)
>
> On Sat, Jan 8, 2011 at 3:37 PM, Georg Brandl <ge...@python.org
> <mailto:ge...@python.org>> wrote:
>
> Am 23.12.2010 19:40, schrieb Gilmorez:
>> It is very easy to set the depth of the TOC on an index page, and that
>> is very handy.
>
>> So far, in my attempts to figure out how to do the same for the
>> sidebar TOC, I'm finding it difficult.
>
>> We are using localtoc, and I would like to limit it to two levels so
>> that long parameter and class names in our documentation do not appear
>> there and spill over into the main frame.
>
>> If anyone can point me in the right direction on how to control that,
>> it is much much appreciated.
>
> You can do this by putting this at the top of the file:
>
> :tocdepth: 2
>
>
> cheers,
> Georg
- --
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to sphin...@googlegroups.com
<mailto:sphin...@googlegroups.com>.
To unsubscribe from this group, send email to
sphinx-dev+...@googlegroups.com
<mailto:sphinx-dev%2Bunsu...@googlegroups.com>.
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.
> --
> *Eric Gilmore
> *
> Consulting Technical Writer
> Riptano, Inc.
> Ph: 510 684 9786 (cell)
> --
> You received this message because you are subscribed to the Google Groups
> "sphinx-dev" group.
> To post to this group, send email to sphin...@googlegroups.com.
> To unsubscribe from this group, send email to
> sphinx-dev+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/sphinx-dev?hl=en.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk0rXP4ACgkQN9GcIYhpnLBn7wCeJZ0Wh9x36xtXnyD0jtlZiec+
kPMAoJKsPxpm+K4kf9+8Z/GOcTmEKMgj
=bOTT
-----END PGP SIGNATURE-----
Yes, that's all nice, but I wasn't talking about toctree at all :)
Just put
:tocdepth: 2
at the top of the file. Nothing else. Example::
:tocdepth: 2
Title of the file
=================
Some text.
HTH,
Georg
iEYEARECAAYFAk0rY7UACgkQN9GcIYhpnLAb2gCdFBNBBW6q3VXyS1K6niQyxvVd
2mYAoLD2nkok+2ATOFFeBtOSazFv5cOx
=mU6b
-----END PGP SIGNATURE-----