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

DM-44137: Add extend_excludes_for_non_index_source #224

Merged
merged 5 commits into from
Apr 30, 2024

Conversation

jonathansick
Copy link
Member

@jonathansick jonathansick commented Apr 30, 2024

This configuration function is for technotes to exclude rst, md, and ipynb files that aren't the index file. Also includes small fixes due to updates in Sphinx:

Bug fixes

  • Technotes ignore files in the repository with .md, .rst, and .ipynb extensions if they aren't the index file. Since technotes are single-page documents, only the index file should be used as a source file. This change lets authors include auxillary notebooks with their technotes without having to explicitly exclude them from the technote build process. This is implemented with technote.conf.extend_excludes_for_non_index_source.

  • In documenteer.ext.lssttasks, attempt to import _pseudo_parse_arglist from sphinx.domains.python._annotations before falling back to the sphinx.domains.python module. Ultimately this is a workaround.

  • Fix setting the rebuild condition for the documenteer.ext.githubbibcache extension.

Other changes

  • Added defusedxml as a dev dependency. This is used by Sphinx's sphinx.testing.fixtures, but isn't included as a dependency by Sphinx itself. This change ensures that defusedxml is installed when running the tests.

This configuration function is for technotes to exclude rst, md, and
ipynb files that aren't the index file.
Although this is a private API, its useful for the lssttasks extension.
We'll need to revisit this if the API does prove to be too unstable to
use in our own purpose.
Sphinx clarifies that this should be a literal type not, not a boolean
in general.
@jonathansick jonathansick merged commit 1374087 into main Apr 30, 2024
6 checks passed
@jonathansick jonathansick deleted the tickets/DM-44137 branch April 30, 2024 21:59
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.

1 participant