Skip to content

Refactor docs Makefile #8933

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

Merged
merged 11 commits into from
Apr 29, 2025
Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Apr 27, 2025

Mainly to remove duplication.

Some functional changes:

  • Use --jobs auto for all builders, not just linkcheck. This speeds make -C docs clean html for me from 25 seconds to 14 seconds.
  • Use --fail-on-warning --keep-going for all builders, not just html.


# Internal variables.
PAPEROPT_a4 = --define latex_paper_size=a4
PAPEROPT_letter = --define latex_paper_size=letter
ALLSPHINXOPTS = --doctree-dir $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
# the i18n builder cannot share the environment and doctrees with the others
I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, right, I18NSPHINXOPTS is unused due to #8917

@radarhere radarhere merged commit 07df26a into python-pillow:main Apr 29, 2025
5 checks passed
@hugovk hugovk deleted the docs-makefile-refactor branch April 29, 2025 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants