sphinx icon indicating copy to clipboard operation
sphinx copied to clipboard

sphinx-gallery reference_url links do not work with sphinx >=5

Open hndgzkn opened this issue 2 years ago • 5 comments

Describe the bug

After sphinx version 5, reference_url in sphinx_gallery_conf section gives the following error upon doc build:

Extension error (sphinx_gallery.docs_resolv):
Handler <function embed_code_links at 0x7fe9e0a40820> for event 'build-finished' threw an exception (exception: Expecting property name enclosed in double quotes: line 1 column 2 (char 1))

As far as I could address, for reference_url http://example.com/stable/"in conf.py, /"at the end is treated as escape and removed.

How to Reproduce

$ git clone https://github.com/alphacsc/alphacsc
$ cd alphacsc
$ pip install -e .[doc]
$ cd docs
$ make html 

Expected behavior

No response

Your project

https://github.com/alphacsc/alphacsc

Screenshots

No response

OS

Linux

Python version

3.9.12

Sphinx version

v5.0.0

Sphinx extensions

No response

Extra tools

No response

Additional context

No response

hndgzkn avatar Jul 01 '22 12:07 hndgzkn