Skip to content

Docs: PDF: isolate PDF build deps in a dedicated venv#44

Closed
Copilot wants to merge 7 commits intogh-139588-docs-pdf-svgfrom
copilot/sub-pr-43
Closed

Docs: PDF: isolate PDF build deps in a dedicated venv#44
Copilot wants to merge 7 commits intogh-139588-docs-pdf-svgfrom
copilot/sub-pr-43

Conversation

Copy link
Copy Markdown

Copilot AI commented Feb 28, 2026

The PDF build requires sphinxcontrib-svg2pdfconverter (to handle SVGs introduced in pythongh-133591) which should not pollute the standard doc build environment.

Changes

  • Doc/requirements-pdf.txt — new requirements file: extends requirements.txt with sphinxcontrib-svg2pdfconverter~=2.0.0
  • Doc/Makefile:
    • VENVDIR_PDF = ./venv-pdf — separate venv root for PDF builds
    • venv-pdf target — creates ./venv-pdf from requirements-pdf.txt; supports both uv and plain pip, mirrors the existing venv target
    • clean-venv — now also removes $(VENVDIR_PDF)
    • dist-pdf — depends on venv-pdf; passes VENVDIR=$(VENVDIR_PDF) to the latex sub-make so sphinx-build resolves from the PDF venv

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: m-aciek <9288014+m-aciek@users.noreply.github.com>
Copilot AI changed the title [WIP] Add functionality to convert SVG to PDF using sphinxcontrib.rsvgconverter Docs: PDF: isolate PDF build deps in a dedicated venv Feb 28, 2026
@m-aciek m-aciek closed this Mar 5, 2026
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.

2 participants