Skip to content

Commit 148b44d

Browse files
committed
Fix PDF build: hide SVG badge from LaTeX output
The Codespaces badge references an external .svg URL which pdflatex cannot include, causing a fatal error. Wrap the badge in '.. only:: html' and provide a plain hyperlink for non-HTML builders. https://claude.ai/code/session_014hVQ5UrK1B4N9ar4UfYpm4
1 parent 98a88cd commit 148b44d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

doc/howto/contributing.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,16 @@ Running in Github Codespaces
2626
Github codespaces make it possible to edit dfetch directly in the browser in a VSCode instance.
2727
All dependencies are pre-installed and makes it easy to get started.
2828

29-
|CodespacesLink|_
29+
.. only:: html
3030

31-
.. |CodespacesLink| image:: https://github.com/codespaces/badge.svg
32-
.. _CodespacesLink: https://codespaces.new/dfetch-org/dfetch
31+
|CodespacesLink|_
32+
33+
.. |CodespacesLink| image:: https://github.com/codespaces/badge.svg
34+
.. _CodespacesLink: https://codespaces.new/dfetch-org/dfetch
35+
36+
.. only:: not html
37+
38+
`Open in GitHub Codespaces <https://codespaces.new/dfetch-org/dfetch>`_
3339

3440
.. tip::
3541

0 commit comments

Comments
 (0)