Skip to content
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

Use tags instead of line numbers to include code in docs #3405

Merged
merged 1 commit into from
Feb 14, 2024

Conversation

connorjward
Copy link
Contributor

Description

Fixes #3316.

Note that with this method we can't quite seamlessly combine the code as before. Previously we could have things like

:lines: 12-15, 23-26

and it would be rendered as a single piece of code. Now we have to have this as 2 separate literalinclude blocks.

I have scanned the generate documentation and it looks right.

@dham dham merged commit 3415f5c into master Feb 14, 2024
10 checks passed
@dham dham deleted the connorjward/fix-literal-include-docs branch February 14, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DOCS: Use Sphinx directives to include code _using tags_
2 participants