File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -67,10 +67,15 @@ def get_tags(
67
67
# type tag
68
68
tags ["og:type" ] = config ["ogp_type" ]
69
69
70
+ from sphinx .util import logging
71
+
72
+ log = logging .getLogger (__name__ )
73
+
70
74
if os .getenv ("READTHEDOCS" ) and config ["ogp_site_url" ] is None :
71
75
# readthedocs uses html_baseurl for sphinx > 1.8
72
76
parse_result = urlparse (config ["html_baseurl" ])
73
-
77
+ log .info (config ["html_baseurl" ])
78
+ log .info (config ["ogp_site_url" ])
74
79
if config ["html_baseurl" ] is None :
75
80
raise EnvironmentError ("ReadTheDocs did not provide a valid canonical URL!" )
76
81
@@ -86,6 +91,8 @@ def get_tags(
86
91
)
87
92
)
88
93
94
+ log .info (config ["ogp_site_url" ])
95
+
89
96
# url tag
90
97
# Get the URL of the specific page
91
98
if context ["builder" ] == "dirhtml" :
You can’t perform that action at this time.
0 commit comments