-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error on http link containing a dash with sphinx book/pydata theme #12437
Comments
I forgot to paste the complete system log: Platform: darwin; (macOS-10.16-x86_64-i386-64bit)Sphinx version: 7.3.7Python version: 3.11.6 (CPython)Docutils version: 0.21.2Jinja2 version: 3.1.4Pygments version: 2.18.0Last messages:copying assets...copying static files...donecopying extra files...donedonewriting output... [100%]indexLoaded extensions:sphinx.ext.mathjax (7.3.7)alabaster (0.7.16)sphinxcontrib.applehelp (1.0.8)sphinxcontrib.devhelp (1.0.6)sphinxcontrib.htmlhelp (2.0.5)sphinxcontrib.serializinghtml (1.1.10)sphinxcontrib.qthelp (1.0.7)sphinx_book_theme (unknown version)pydata_sphinx_theme (unknown version)Traceback:Traceback (most recent call last): |
FYI, I could reproduce the issue without the sphinx-book-theme, but using only the underlying It seems more like a pydata issue than a Sphinx issue, so I also filed pydata/pydata-sphinx-theme#1887. Is this the right decision? |
It's an bug in PST working on a fix: pydata/pydata-sphinx-theme#1888 I think you can close here to have less noise for sphinx maintainers. |
Thanks alot for the quick reaction, so I close this here. |
Describe the bug
When building an RST page with the sphinx_book_theme containing a web link which includes a dash, Sphinx stops with "ValueError: not enough values to unpack".
How to Reproduce
$ cat >index.rst <<EOF
Welcome to the Documentation!
Report issues to https://gitlab.com/tezos/tezos/-/issues
EOF
$ cat >conf.py <<EOF
source_suffix = '.rst'
master_doc = 'index'
html_theme = "sphinx_book_theme"
EOF
$ poetry run sphinx-build -b html "." "build"
Running Sphinx v7.3.7
building [mo]: targets for 0 po files that are out of date
writing output...
building [html]: targets for 1 source files that are out of date
updating environment: [new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
copying assets... copying static files... done
copying extra files... done
done
writing output... [100%] index
Exception occurred:
File "/Users/nic/Library/Caches/pypoetry/virtualenvs/tezos-LY8-gUlI-py3.11/lib/python3.11/site-packages/pydata_sphinx_theme/short_link.py", line 103, in parse_url
url_type, element_number, * = parts
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: not enough values to unpack (expected at least 2, got 1)
The full traceback has been saved in /var/folders/9y/r3w7mc6j3j79sp8qyp92rd_r0000gn/T/sphinx-err-deyk9e2j.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at https://github.com/sphinx-doc/sphinx/issues. Thanks!
Environment Information
Sphinx extensions
Additional context
$ poetry --version
Poetry (version 1.2.2)
The text was updated successfully, but these errors were encountered: