Skip to content

Commit

Permalink
Merge pull request #36 from sphinx-contrib/fix-latex-config
Browse files Browse the repository at this point in the history
Only link to Doxygen's PDF output when Sphinx uses the latex format
  • Loading branch information
JasperCraeghs authored Nov 15, 2021
2 parents 0c8bda7 + fa7ef77 commit 50bae69
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
1.11.1 (Nov 15, 2021)
=====================

- Fix: only link to Doxygen's PDF output when Sphinx uses the latex format [PR #36]

1.11 (Sep 22, 2021)
==================

Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/doxylink/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.11'
__version__ = '1.11.1'


def setup(app):
Expand Down
2 changes: 1 addition & 1 deletion sphinxcontrib/doxylink/doxylink.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ def find_doxygen_link(name, rawtext, text, lineno, inliner, options={}, content=
'Error reported was: %s' % (part, error), line=lineno)
return [nodes.inline(title, title)], []

if pdf:
if pdf and app.builder.format == 'latex':
full_url = join(pdf, '#', url.file)
full_url = full_url.replace('.html#', '_') # for links to variables and functions
full_url = full_url.replace('.html', '') # for links to files
Expand Down

0 comments on commit 50bae69

Please sign in to comment.