From ecd2da4612fa31899e1cb24d8f0dbaf95632387f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bla=C5=BE=20Hrastnik?= Date: Sun, 7 Jun 2026 23:10:48 +0900 Subject: [PATCH] book: detect both scm and tsq --- book/book.toml | 2 +- book/{theme => }/scheme.min.js | 0 book/theme/index.hbs | 3 ++- 3 files changed, 3 insertions(+), 2 deletions(-) rename book/{theme => }/scheme.min.js (100%) diff --git a/book/book.toml b/book/book.toml index 50ccd733..5bcbd9a4 100644 --- a/book/book.toml +++ b/book/book.toml @@ -10,7 +10,7 @@ preferred-dark-theme = "colibri" git-repository-url = "https://github.com/helix-editor/helix" edit-url-template = "https://github.com/helix-editor/helix/edit/master/book/{path}" additional-css = ["custom.css"] -additional-js = ["theme/scheme.min.js"] +additional-js = ["scheme.min.js"] [output.html.search] use-boolean-and = true diff --git a/book/theme/scheme.min.js b/book/scheme.min.js similarity index 100% rename from book/theme/scheme.min.js rename to book/scheme.min.js diff --git a/book/theme/index.hbs b/book/theme/index.hbs index 62a78cd4..53edd928 100644 --- a/book/theme/index.hbs +++ b/book/theme/index.hbs @@ -323,13 +323,14 @@ - {{#each additional_js}} {{/each}} + + {{#if is_print}} {{#if mathjax_support}}