We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
index
dirhtml
ogp_site_url = "https://devguide.python.org/"
conf.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
_build/dirhtml/getting-started/getting-help/index.html
og:url
<meta property="og:url" content="https://devguide.python.org/getting-started/getting-help/" />
✅
_build/dirhtml/index.html
❌ Appends index to give a 404 URL: https://devguide.python.org/index/
<meta property="og:url" content="https://devguide.python.org/index/" />
Don't append index for the main page:
This came up at python/devguide#953 (comment), see the demo build at https://cpython-devguide--953.org.readthedocs.build/
The text was updated successfully, but these errors were encountered:
Also need to deal with other index pages, such as _build/dirhtml/getting-started/index.html:
_build/dirhtml/getting-started/index.html
<meta property="og:url" content="https://devguide.python.org/getting-started/index/" />
❌ https://devguide.python.org/getting-started/index/
✅ https://devguide.python.org/getting-started/
Sorry, something went wrong.
PR #78 updated.
ogp_site_url
Successfully merging a pull request may close this issue.
Steps to reproduce
dirhtml
that hasogp_site_url = "https://devguide.python.org/"
inconf.py
_build/dirhtml/getting-started/getting-help/index.html
and checkog:url
:✅
_build/dirhtml/index.html
and checkog:url
Actual result
❌ Appends
index
to give a 404 URL: https://devguide.python.org/index/Expected result
Don't append
index
for the main page:See also
This came up at python/devguide#953 (comment), see the demo build at https://cpython-devguide--953.org.readthedocs.build/
The text was updated successfully, but these errors were encountered: