diff --git a/_static/book.css b/_static/book.css index c509371..fa38fc6 100644 --- a/_static/book.css +++ b/_static/book.css @@ -21,6 +21,16 @@ html[data-theme="dark"] { .bd-article-container { max-width: 53rem; } .bd-article h2 { margin-top: 2.2rem; } .logo__image.only-dark { background: white; padding: 4px 8px; border-radius: 6px; } +.sidebar-book-title { + margin: 0; + font-family: var(--pst-font-family-heading); + font-size: 1.25rem; + font-weight: 400; + line-height: 1.3; + letter-spacing: -0.02em; +} +.sidebar-book-title a { color: var(--pst-color-text-base); text-decoration: none; } +.sidebar-book-title a:hover { color: var(--pst-color-link); text-decoration: underline; text-underline-offset: 0.15em; } table.docutils th { white-space: normal; } .bd-article a { text-underline-offset: 0.18em; } .chapter-figure { margin: 1.8rem 0; } diff --git a/_templates/book-title.html b/_templates/book-title.html new file mode 100644 index 0000000..bc6fec7 --- /dev/null +++ b/_templates/book-title.html @@ -0,0 +1,3 @@ +
diff --git a/conf.py b/conf.py index 4e269b4..1d1ec2f 100644 --- a/conf.py +++ b/conf.py @@ -35,6 +35,16 @@ } html_theme = "sphinx_book_theme" +templates_path = ["_templates"] +html_sidebars = { + "**": [ + "navbar-logo.html", + "book-title.html", + "icon-links.html", + "search-button-field.html", + "sbt-sidebar-nav.html", + ], +} html_context = {"default_mode": "auto"} html_title = project html_baseurl = "https://mlc.ai/agentic-gpu-programming-for-mlsys/" @@ -43,7 +53,7 @@ html_css_files = ["book.css"] html_js_files = ["book-tabs.js", "fold-code.js"] html_theme_options = { - "logo": {"link": "https://mlc.ai/"}, + "logo": {"link": "https://mlc.ai/", "alt_text": "Machine Learning Compilation home"}, "repository_url": "https://github.com/mlc-ai/agentic-gpu-programming-for-mlsys", "use_repository_button": True, "use_download_button": False,