We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
python
Learn more about funding links in repositories.
Report abuse
ogp_site_url
1 parent 6902d1c commit 7583b17Copy full SHA for 7583b17
build_docs.py
@@ -751,9 +751,15 @@ def build(self):
751
blurb = self.venv / "bin" / "blurb"
752
753
if self.includes_html:
754
+ site_url = self.version.url
755
+ if self.language.tag != "en":
756
+ site_url += f"{self.language.tag}/"
757
# Define a tag to enable opengraph socialcards previews
758
# (used in Doc/conf.py and requires matplotlib)
- sphinxopts.append("-t create-social-cards")
759
+ sphinxopts += (
760
+ "-t create-social-cards",
761
+ f"-D ogp_site_url={site_url}",
762
+ )
763
764
# Disable CPython switchers, we handle them now:
765
run(
0 commit comments