We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edc4662 commit 2a88207Copy full SHA for 2a88207
sphinxext/opengraph/__init__.py
@@ -67,10 +67,15 @@ def get_tags(
67
# type tag
68
tags["og:type"] = config["ogp_type"]
69
70
+ from sphinx.util import logging
71
+
72
+ log = logging.getLogger(__name__)
73
74
if os.getenv("READTHEDOCS") and config["ogp_site_url"] is None:
75
# readthedocs uses html_baseurl for sphinx > 1.8
76
parse_result = urlparse(config["html_baseurl"])
-
77
+ log.info(config["html_baseurl"])
78
+ log.info(config["ogp_site_url"])
79
if config["html_baseurl"] is None:
80
raise EnvironmentError("ReadTheDocs did not provide a valid canonical URL!")
81
@@ -86,6 +91,8 @@ def get_tags(
86
91
)
87
92
88
93
94
95
89
96
# url tag
90
97
# Get the URL of the specific page
98
if context["builder"] == "dirhtml":
0 commit comments