Skip to content

gdot: default image format changed from PNG to SVG#47

Merged
sdpython merged 7 commits intomainfrom
copilot/use-svg-by-default
Mar 6, 2026
Merged

gdot: default image format changed from PNG to SVG#47
sdpython merged 7 commits intomainfrom
copilot/use-svg-by-default

Conversation

Copy link
Contributor

Copilot AI commented Mar 3, 2026

The gdot directive defaulted to PNG, which requires a local graphviz binary. SVG rendering uses viz.js (client-side), making it the more practical default.

Change

  • sphinx_gdot_extension.py: Default format in GDotDirective.run() changed from "png" to "svg"

PNG remains available via explicit :format: png.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdnjs.cloudflare.com
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmpety23rmj /tmp/tmpety23rmj/output (dns block)
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmp42apgfyn /tmp/tmp42apgfyn/output (dns block)
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmp37lebape /tmp/tmp37lebape/output (dns block)
  • requirejs.org
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmpety23rmj /tmp/tmpety23rmj/output (dns block)
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmp42apgfyn /tmp/tmp42apgfyn/output (dns block)
    • Triggering command: /usr/bin/python /usr/bin/python -m sphinx -b rst /tmp/tmp37lebape /tmp/tmp37lebape/output (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

This section details on the original issue you should resolve

<issue_title>use svg by default instead of png</issue_title>
<issue_description></issue_description>

Comments on the Issue (you are @copilot in this section)

@xadupre in gdot

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Use SVG by default instead of PNG gdot: default image format changed from PNG to SVG Mar 3, 2026
@xadupre xadupre marked this pull request as ready for review March 6, 2026 14:22
@sdpython sdpython merged commit 2820367 into main Mar 6, 2026
7 of 12 checks passed
@sdpython sdpython deleted the copilot/use-svg-by-default branch March 6, 2026 14:23
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.

use svg by default instead of png

3 participants