-
Notifications
You must be signed in to change notification settings - Fork 200
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
Give a special mention to toctree
directive in docs
#336
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
Totally agreed - I was actually thinking about re-orging the documentation a bit in order to follow this documentation framework: https://documentation.divio.com/ (basically: tutorials, how-tos, reference, and explanation) I think that the |
Actually I think the problem could be generalized beyond The docs are obviously written by the developers, and reading as a user, I think it shows a bit. As a user I don't necessarily care about a generalized syntax description, or the fact that all directives can be parameterized via
As a user the syntax
is no less of a syntax to me compared to something like the bold syntax Maybe MyST should either:
|
Cheers for the feedback, here and in hukkin/mdformat#149 (comment)
This is already discussed in #267 and #81, and the idea is to do auto-conversion with https://github.com/executablebooks/rst-to-myst
Well yes and no. If you are coming from a position of no knowledge of sphinx etc and want to write new documentation, as I know you are, then yes maybe you don't want this. So the questions I've raised before is what is the balance between these documentations: do we want this essentially duplication in documents (but from different perspectives) or should they be merged into a single site This also extends to your other points:
This is how jupyter-book works and, as discussed in executablebooks/meta#285 (reply in thread), perhaps there is a way to make this work with "vanilla sphinx" (and the way jupyter-book builds the ToC via the top-down
Again jupyter-book focusses principally on Markdown
This is something we are essentially already working on in with others (including the developers of PyPI and Pandas) in executablebooks/meta#279 😄
This is perhaps similar to another piece of work in the pipeline: executablebooks/meta#192 |
heyo! I came here looking for how to define a toctree in markdown using MyST. I tried the suggested |
@vsoch have you checked for any warnings in the console window e.g. about indentation? You should not intend the entries. |
ah! Let me try a quick render again. |
Ahhh that totally worked!!! Here is what it looks like in the markdown (click edit to see the toctree) or see screenshot below
Thank youuuu! |
Fab, I ran into this today as well! |
Note, that I added this section to the docs not long ago: https://myst-parser.readthedocs.io/en/latest/syntax/roles-and-directives.html#toc-trees |
Like vsoch, I found this link while searching for details on During this process, I was also looking for a way to comment files/lines inside a I did find that a An up-to-date working Sphinx+MyST demo would be helpful with multiple directories, includes, and images. It would show the file layout on disk, conf.py, index.md files, and the user could compile and manipulate it to learn. Use that same example, within the MyST documentation, so a user could read the doc and then try it on their system. Live examples are nice, but I want to be able to replicate the process on a local system, so if a particular configuration, extension, or other is required, that needs to be shown some place. I know the MyST documentation has download the .md file for the current page, which is very nice, but it cannot be compiled. Some other questions after reading "Organising content":
Is there a particular forum where questions could be asked? Thank you. environment: |
I feel like the docs could maybe give a special mention to the toctree directive, given how its usage seems mandatory for anything but the most trivial single page docs.
Not sure what the right place would be, perhaps somewhere here?: https://myst-parser.readthedocs.io/en/latest/using/howto.html
The text was updated successfully, but these errors were encountered: