-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Files not in SUMMARY.md are not parsed #702
Comments
This is actually the main purpose of the Using that analogy it sounds like you're asking to be able to add chapters to a book without referencing them anywhere in the table of contents. |
Thank you I understand. In my use case, there would be too much chapters (in deep levels), so I would like to not have them in the TOC. Instead, I manually link them in other chapters (which are listed in If implemented, I think the navigating via left/right arrow keys/buttons would need to be updated too. Some solutions might be:
To compare, the TOC in a PDF file does not always list all chapters the file has. When the user is reading some unlisted chapters, which are inside an official chapter, the indicator still points at that official chapter. Do you think this is a good approach? |
I have thought about this in the past. There could be multiple solutions for this specific problem. Currently I can think of two possible solutions that could improve this use case:
|
Thanks, I like your
If the user is reading
Those examples limits sub chapters being shown to This solution doesn't need to update current navigation code (left/right arrows). However I have almost no experiences in JavaScript :-( But I can code Rust. |
I want to be able to add chapters, but I don't want to list every page in the summary; which is what is required now. My use-case is to have FAQs, with each Q/A being it's own markdown file. I don't want to add every FAQ to the summary, just a title page |
Another use case for files that should be parsed but are not in I'm creating Javadoc API documentation in Markdown during build time of my Java project. The resulting files (names, number) and directory structure may change arbitrarily, but the "start page" stays the same, say, If I only refer to the "start page" in # Summary
- [Chapter 1](./chapter_1.md)
[Javadoc](./javadoc/javadoc.md) It'd be great to have a flag or option in |
I know this is an old issue, but I came to search issues for a similar problem. I would love it if there was a simple way to render some files, while not showing them in the summary. In my particular use case, I would like to have pages that are linked from other pages, but should not appear in the table of contents. A simple solution in my mind (from the user standpoint), is to have an intuitive marker in the So it would be like: # Summary
- [Title](url)
- [Title](url)
- [Title](url)
- [Title](url)
---
- [Hdden File Title](url)
- [Hdden File Title](url)
- [Hdden File Title](url)
- [Hdden File Title](url) which means, that the user has the same control over the path that these files, and:
I hope this (or a similar) implementation is considered. |
Ability to create pages based on links in the page would be super nice. Things like "expanded footnote" can be handled without adding an entry in ToC. I will argue this is important & relevant because unlike a physical book people don't navigate/explore a book via ToC. ToC is just a high level map rather than an exact mapping to every section of a book. Unlike a physical book, such a digital book has search making it the preferable way to find something irrespective of whether its available in ToC or not. Additionally if such a feature will can be used for Instead of getting the list of files to compile from Summary all that needs to be done is to just compile all |
Add all the minuts to SUMMARY.md, else they won't be included in the site, even though they're linked to from other pages. This is a (dubious) requirement of mdbook - only pages linked from the SUMMARY.md are rendered. I guess it's more reasonable given the primary focus of mdbook is to render a book-like document, not a wiki, so why would you have a chapter of your book that's not navigable to from the TOC? Anyway, there is an outstanding feature requests for this kind of behavior: rust-lang/mdBook#702 No one has implemented it for a long time - but the maintainer doesn't seem opposed to the feature in principal. We have a few ways forward: 1. live with it for now and hope someone eventually adds this functionality 2. port the wiki to some other platform. I'm not that attached to mdbook, it's just simple and familiar for me.
I like the first proposed option, I would like to do this however i do not know how to replicate this. Can someone show me the structure of chapter types in SUMMARy.md and the dependency of having to have all pages in the TOC. |
My use case for this is to include .md content generated from API descriptions and include in SUMMARY.md just the "start page" of that collection of interlinked .md files. When navigating to these subpages the navigation should show the parent start page as selected per solution "chapter type not shown but part of the book structure". |
We have a similar use case where we are automatically generating hundreds of pages of markdown docs and it is quite painful and error prone to copy in those sections to the SUMMARY.md and any changes we've made. |
I'm also trying to do something similar with This point being that there are many tools that generate and manage collections of markdown files, wikis come to mind, that are already linked in a specific way. Being able to the starting page(s) of a collection without having to manually link every page in the collection via SUMMARY.md seems reasonable and doable. I see this has been asked for in many other issues and all have been closed accept #703 and #830. I'd be interested to tackle this issue, but don't want to tackle something that's going to be rejected because the maintainers don't like the idea. It would be helpful if the maintainers could indicate a preference or that they feel the current all-pages-must-be-in-the-summary approach is what they want. |
Hi,
I'm using binary
v0.1.7
. Currently files which are not inSUMMARY.md
are not parsed. I manually link them inside other files (to make the left menu short). May I ask if you could add support to parse those files?Thank you,
Edited
I think this could be easily solved. If some of you could give me some hint, I would be happy to code.
The text was updated successfully, but these errors were encountered: