-
Notifications
You must be signed in to change notification settings - Fork 18
Rename items:
to subtree:
#27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Ok interesting, yeh I'm not 100% on the Do you think though it may be to difficult to distinguish the two though? |
I think that if the |
As you mention one nice attribute of using My main question is then that |
No subtrees is not the main toctree, it is a list of toctree within a file. You can add multiple toctree directives to any file, pseudo representation:
|
What if we go with what Sphinx does, and call them so: |
thanks @chrisjsewell that is clear 👍 Probably a silly idea but is there a reason not to just use root: intro
toctrees:
- toctree:
- file:
- toctree:
- glob: Perhaps a bit redundant / too literal and the |
Hmm that is certainly the most similar to how it'd look if you were writing it in rst or myst |
It just feels abit weird to me, with respect to terminology, since essentially the whole file is the ToC tree, then (as shown in https://github.com/executablebooks/sphinx-external-toc/blob/main/toc-graphic.png) the |
Uh oh!
There was an error while loading. Please reload this page.
Right now, we use
items:
to define a singletoctree
object in a file. I think that becauseitems:
always maps onto onetoctree
, we should rename it simply tosubtree
so that users don't have to remember two different words.So for example:
I think that this would reduce the number of words people need to remember, and it would make it clearer that
subtrees:
always contains a list ofsubtree:
lists. I think this also makes it more technically precise, becausesubtree:
always maps onto a singletoctree
directive (I think)This is making the assumption that subtrees always contain a list of
toctree
objects, but I think that is a correct assumption as long as we want to strictly stick with Sphinx's underlying model, right?The text was updated successfully, but these errors were encountered: