readthedocs / sphinx-notfound-page

Create a custom 404 page with absolute URLs hardcoded
https://sphinx-notfound-page.readthedocs.io/
MIT License
51 stars 33 forks source link

fix: Error with sphinx-notfound-page 1.0.3 - 'tuple' object has no at… #241

Closed dgarcia360 closed 3 months ago

dgarcia360 commented 3 months ago

Closes #240

How to test

Building a Sphinx 7.2.X project with this extension in a virtualenv should not return the 'tuple' object has no attribute 'default' error:

# 1. Install Sphinx 7.2.6
pip install sphinx==7.2.6

# 2. Install the extension
git clone https://github.com/readthedocs/sphinx-notfound-page.git
cd sphinx-notfound-page
gh pr checkout 241
pip install .

# 3. Create a new Sphinx project
cd ..
sphinx-quickstart test_project

# 4. Add the extension to conf.py
See https://github.com/readthedocs/sphinx-notfound-page?tab=readme-ov-file#configuration

# 5. Build the Sphinx project
cd test_project
make html