-
-
Notifications
You must be signed in to change notification settings - Fork 34
Do not append index with dirhtml #77
Copy link
Copy link
Closed
Description
Steps to reproduce
- Build docs using
dirhtmlthat hasogp_site_url = "https://devguide.python.org/"inconf.py
git clone https://github.com/python/devguide
cd devguide
make dirhtml
# or:
# sphinx-build -b dirhtml -d _build/doctrees -W --keep-going -n . _build/dirhtml- Open a non-index page, for example
_build/dirhtml/getting-started/getting-help/index.htmland checkog:url:
<meta property="og:url" content="https://devguide.python.org/getting-started/getting-help/" />✅
- Open a index page,
_build/dirhtml/index.htmland checkog:url
Actual result
❌ Appends index to give a 404 URL: https://devguide.python.org/index/
<meta property="og:url" content="https://devguide.python.org/index/" />Expected result
Don't append index for the main page:
<meta property="og:url" content="https://devguide.python.org/index/" />See also
This came up at python/devguide#953 (comment), see the demo build at https://cpython-devguide--953.org.readthedocs.build/
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels