gemini-code-assist[bot] commented on code in PR #19855:
URL: https://github.com/apache/tvm/pull/19855#discussion_r3448815423


##########
docs/conf.py:
##########
@@ -361,9 +366,25 @@ def jupyter_notebook(script_blocks, gallery_conf, 
target_dir, real_func):
 # so a file named "default.css" will overwrite the builtin "default.css".
 html_static_path = ["_static"]
 
-html_theme_options = {
-    "logo_only": True,
-}
+if html_theme == "sphinx_book_theme":
+    html_theme_options = {
+        "repository_url": "https://github.com/apache/tvm";,
+        "repository_branch": "main",
+        "path_to_docs": "docs/",
+        "use_repository_button": True,
+        "use_issues_button": True,
+        "use_edit_page_button": False,
+        "home_page_in_toc": False,
+        "show_navbar_depth": 1,
+        "show_toc_level": 2,
+    }
+else:
+    html_theme_options = {
+        "logo_only": True,
+    }
+
+if html_theme == "sphinx_book_theme":
+    html_css_files = ["css/tirx_theme.css"]

Review Comment:
   ![medium](https://www.gstatic.com/codereviewagent/medium-priority.svg)
   
   Overwriting `html_css_files` directly will discard any existing custom CSS 
files (such as `css/custom.css` which is defined by default in TVM's 
`conf.py`). To ensure both `css/custom.css` and `css/tirx_theme.css` are loaded 
under the `sphinx_book_theme`, please include both in the list or append to the 
existing list.
   
   ```suggestion
   if html_theme == "sphinx_book_theme":
       html_css_files = ["css/custom.css", "css/tirx_theme.css"]
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to