You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to include my README in the index of my API docs, but this results in a duplicate top-level heading as the README has its own title. It's quite a specific use case but probably one that's likely to recur.
Screenshot
Proposal
Implement the start-line option for the include directive. Then the following code would resolve the problem.
.. include:: ../README.md:start-line: 1
Alternatives
Users can use CSS to hide the README heading by its id, but the navbar still includes the extra heading.
Additional context
I'm happy to make/review the PR if you think this is a good idea. For completeness, I can include the other start-* and end-* options but I think the other options are out of scope.
The text was updated successfully, but these errors were encountered:
I don't think we have anything else yet that parses directive options, but if we tackle this it probably makes most sense to extract it into a generic helper like so:
Problem Description
I want to include my README in the index of my API docs, but this results in a duplicate top-level heading as the README has its own title. It's quite a specific use case but probably one that's likely to recur.
Screenshot
Proposal
Implement the
start-line
option for theinclude
directive. Then the following code would resolve the problem.Alternatives
Users can use CSS to hide the README heading by its
id
, but the navbar still includes the extra heading.Additional context
I'm happy to make/review the PR if you think this is a good idea. For completeness, I can include the other
start-*
andend-*
options but I think the other options are out of scope.The text was updated successfully, but these errors were encountered: