6060autodoc_typehints = "none"
6161todo_include_todos = True
6262gtagjs_ids = [
63- "G-ZCW0CR8M8X " ,
63+ "G-J25S5BY1L7 " ,
6464]
6565# add_module_names = False
6666
8888# relative to this directory. They are copied after the builtin static files,
8989# so a file named "default.css" will overwrite the builtin "default.css".
9090html_theme = "furo"
91- html_baseurl = "https://zerohertz.github.io/zerohertzLib/"
91+ html_baseurl = os .getenv (
92+ "READTHEDOCS_CANONICAL_URL" , "https://zerohertzlib.readthedocs.io/"
93+ )
9294html_static_path = ["_static" ]
9395html_logo = "_static/zerohertzLib-tp-red.png"
9496
131133 ],
132134}
133135
134- ogp_site_url = "https://zerohertz.github.io/zerohertzLib/"
136+ ogp_site_url = os .getenv (
137+ "READTHEDOCS_CANONICAL_URL" , "https://zerohertzlib.readthedocs.io/"
138+ )
135139ogp_description_length = 200
136140ogp_site_name = f"Zerohertz's Library { release } Documents"
137141ogp_image = "_static/zerohertzLib-black-red-og.png"
@@ -157,7 +161,7 @@ def linkcode_resolve(domain, info):
157161 obj = getattr (obj , part )
158162 obj_filename = inspect .getsourcefile (obj )
159163 obj_line = inspect .getsourcelines (obj )[1 ]
160- except Exception as error :
164+ except Exception :
161165 return None
162166 rel_fn = relpath (obj_filename , start = dirname (module .__file__ ))
163167 return f"https://github.com/zerohertz/zerohertzLib/blob/master/{ info ['module' ].replace ('.' , '/' )} /{ rel_fn } #L{ obj_line } "
@@ -168,7 +172,7 @@ def linkcode_resolve(domain, info):
168172# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
169173# https://sphinx-rtd-theme.readthedocs.io/en/stable/configuring.html
170174# html_theme_options = {
171- # "analytics_id": "G-ZCW0CR8M8X ",
175+ # "analytics_id": "G-J25S5BY1L7 ",
172176# "analytics_anonymize_ip": False,
173177# "logo_only": True,
174178# "style_nav_header_background": "#000000",
0 commit comments