-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
enable start-at for include #11289
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
From what I understand, you want to include a lot of files (e.g., by specifying If you want to use the If you want to include "blocks" from a file, you need to use multiple |
I don't think I want to use the I can't use static line numbers because the include is in a file that is called many times, once for each orphaned file. The file where the include is has this syntax: where I'd like to just dynamically skip the I think my other option is to use some sort of hidden toctree but that seemed like even more of a hack so I have not tried implementing that yet. I'd just like for my builds to not have 80+ warnings each time. |
By looking at your project developer-doc, I think I understand what you want to do. What I understood is as follows:
By the way, you tell me that you cannot use an absolute line number, but since your included files start with I am not very confident in changing the If you want to suppress warnings about |
Is your feature request related to a problem? Please describe.
I have some files that throw the "isn't included in any toctree" warning. They are referenced via a somewhat wildcarded "include" as part of a home-grown templating solution. Unfortunately, if I add :orphan: to the top of the files that throw the warning, it is rendered in my output.
Describe the solution you'd like
I'd like to be able to use start-at with include so I can start at the first relevant part of the file and skip the :orphan:
Describe alternatives you've considered
Alternatively I'd love for the :orphan: to just not render, but it seems like if a file is referenced in some way by include, that's just how it works. I can't use :start-after: orphan because it leaves a blank line at the top when rendered (at least it doesn't say :orphan: at the top!)
Another option would, I suppose, be a file trim function to trim the empty line(s) at the start and end of whatever is referenced by the include.
The text was updated successfully, but these errors were encountered: