Skip to content

Conversation

@anjackson
Copy link

Investigating jupyter-book/jupyter-book#1762 (comment) it seems that this module needs to be updated to support the use of <section> elements (which have superseded <div class="section"> elements).

This PR updates sphinx-comments to support both ways of working. I also noticed that (on Chrome at least) querySelectorAll returns [] when there are not matches, not null, so I've modified the script to cope there and exit cleanly rather than throw an error.

(Sorry, didn't see https://github.com/executablebooks/.github/blob/d375020a952a579cca1c1e642b248a36da606b8b/CONTRIBUTING.md#commit-messages until opening this PR so the commit message is not properly formatted.)

@welcome
Copy link

welcome bot commented May 3, 2023

Thanks for submitting your first pull request! You are awesome! 🤗

If you haven't done so already, check out EBP's Code of Conduct and our Contributing Guide, as this will greatly help the review process.

Welcome to the EBP community! 🎉

@anjackson
Copy link
Author

Just noticed this largely duplicates #18 (except this supports both old and new forms).

The CI fails but it appears to be a problem with the Actions:

Error: Version 3.6 with arch x64 not found

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