@@ -11,7 +11,7 @@ only_build_toc_files: true
1111exclude_patterns : [.github/*]
1212
1313html :
14- # Removed baseurl here to avoid conflicts
14+ # No " baseurl" here to avoid conflicts with the theme
1515 favicon : assets/favicon.ico
1616 use_edit_page_button : true
1717 use_repository_button : true
@@ -30,15 +30,15 @@ parse:
3030 This chapter is still being written & reviewed. Please do post links & discussion in the {{
3131 '[<i class="fas fa-pencil-alt"></i> comments]({}-comments)'.format(env.docname) }} below, or {{
3232 '[<i class="fab fa-github"></i> open a pull request]({}/edit/main/{}.md)'.format(
33- env.config.html_theme_options.repository_url , env.docname)
33+ env.config.html_context.book_baseurl , env.docname)
3434 }}!
3535 table_feedback : |
3636 ```{admonition} Feedback
3737 :class: attention
3838 Is the table above outdated or missing an important model? Let us know in the {{
3939 '[<i class="fas fa-pencil-alt"></i> comments]({}-comments)'.format(env.docname) }} below, or {{
4040 '[<i class="fab fa-github"></i> open a pull request]({}/edit/main/{}.md)'.format(
41- env.config.html_theme_options.repository_url , env.docname)
41+ env.config.html_context.book_baseurl , env.docname)
4242 }}!
4343 ```
4444 comments : |
4848 :class: attention
4949 Missing something important? Let us know in the comments below, or {{
5050 '[<i class="fab fa-github"></i> open a pull request]({}/edit/main/{}.md)'.format(
51- env.config.html_theme_options.repository_url , env.docname)
51+ env.config.html_context.book_baseurl , env.docname)
5252 }}!
5353 ```
5454
@@ -107,15 +107,15 @@ sphinx:
107107 prem_theme : .
108108 recursive_update : true
109109 config :
110- # Add templates_path so Sphinx can see your _templates/page.html override
110+ # Ensure Sphinx sees _templates/page.html
111111 templates_path : ["_templates"]
112112
113+ # Use your custom theme
113114 html_theme : prem_theme
114- html_theme_options :
115- # (NEW) Provide your base URL here, so you can reference it in page.html as {{ theme_options.baseurl }}
116- baseurl : https://book.premai.io/state-of-open-source-ai
117- navigation_with_keys : false
118- use_download_button : false
115+
116+ # Put your custom base URL in html_context to avoid "unsupported theme option" warnings
117+ html_context :
118+ book_baseurl : https://book.premai.io/state-of-open-source-ai
119119
120120 myst_heading_anchors : 4
121121 html_js_files :
0 commit comments