Skip to content

Commit 50bae69

Browse files
Merge pull request #36 from sphinx-contrib/fix-latex-config
Only link to Doxygen's PDF output when Sphinx uses the latex format
2 parents 0c8bda7 + fa7ef77 commit 50bae69

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

CHANGES.rst

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
1.11.1 (Nov 15, 2021)
2+
=====================
3+
4+
- Fix: only link to Doxygen's PDF output when Sphinx uses the latex format [PR #36]
5+
16
1.11 (Sep 22, 2021)
27
==================
38

sphinxcontrib/doxylink/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = '1.11'
1+
__version__ = '1.11.1'
22

33

44
def setup(app):

sphinxcontrib/doxylink/doxylink.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def find_doxygen_link(name, rawtext, text, lineno, inliner, options={}, content=
333333
'Error reported was: %s' % (part, error), line=lineno)
334334
return [nodes.inline(title, title)], []
335335

336-
if pdf:
336+
if pdf and app.builder.format == 'latex':
337337
full_url = join(pdf, '#', url.file)
338338
full_url = full_url.replace('.html#', '_') # for links to variables and functions
339339
full_url = full_url.replace('.html', '') # for links to files

0 commit comments

Comments
 (0)