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

Initialize of builder classes support create_builder for Sphinx 5.x and later #124

Merged
merged 1 commit into from Aug 1, 2022

Conversation

attakei
Copy link
Owner

@attakei attakei commented Jul 31, 2022

Description

Adding env as optional argument into RevealjsHTMLBuilder.__init__ for Sphinx 5.x and later.

Reason

Sphinx 5.x try passing app and env when registry create builders.

  • Ref code
  • This proc uses try-except. If builder accept app only, passing app.

After Sphinx is 7.x, craete_builder raise error if custom builder accept app only.

This PR is patch for future.

Why I patch it NOW?

For Sphinx v5.1.0

Sphinx v5.1.0 failure handle in except (ref).
So, sphinx-build is failure by only Sphinx v5.1.0 and sphinx-revealjs <= v2.0.0 .

Refs

@attakei attakei changed the title Clear any DeprecationWarnings of Sphinx Initialize of builder classes support create_builder for Sphinx 5.x and later Aug 1, 2022
@attakei attakei merged commit 939e66b into master Aug 1, 2022
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.

None yet

1 participant