Skip to content

Commit

Permalink
Merge pull request #1022 from sphinx-contrib/support-new-pathlib-use-…
Browse files Browse the repository at this point in the history
…in-sphinx-env

translator: handle new pathlib usage in sphinx-env
  • Loading branch information
jdknight authored Jul 25, 2024
2 parents ddcd143 + 4da8461 commit 769fd0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sphinxcontrib/confluencebuilder/storage/translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -2561,7 +2561,8 @@ def visit_confluence_source_link(self, node):
uri = PARAMS(node)['url']

docname = self.docname
suffix = self.builder.env.doc2path(docname, base=None)[len(docname):]
docpath = str(self.builder.env.doc2path(docname, base=None))
suffix = docpath[len(docname):]
uri = uri.format(page=docname, suffix=suffix, **PARAMS(node))

source_text = PARAMS(node).get('text', L('Edit Source'))
Expand Down

0 comments on commit 769fd0b

Please sign in to comment.