From 87d6889bdd2d7e81155899cb3e1419e96071976f Mon Sep 17 00:00:00 2001 From: Martin Geisler Date: Fri, 15 Sep 2023 11:45:21 +0200 Subject: [PATCH] Move JavaScript code to `head` template This will simplify our mdbook updates since there will be fewer customizations to copy over when a new mdbook version has changes to the `index.hbs` template. --- theme/head.hbs | 37 +++++++++++++++++++++++++++++++++++++ theme/index.hbs | 37 ------------------------------------- 2 files changed, 37 insertions(+), 37 deletions(-) create mode 100644 theme/head.hbs diff --git a/theme/head.hbs b/theme/head.hbs new file mode 100644 index 000000000000..60e06a5d76ae --- /dev/null +++ b/theme/head.hbs @@ -0,0 +1,37 @@ + + + + + +{{! Move to template code after fixing this issue: + https://github.com/google/mdbook-i18n-helpers/issues/70 }} + diff --git a/theme/index.hbs b/theme/index.hbs index 243f054fa7df..ab4aa90677b6 100644 --- a/theme/index.hbs +++ b/theme/index.hbs @@ -11,16 +11,6 @@ {{/if}} - - - - {{> head}} @@ -147,33 +137,6 @@ } - {{! Move to template code after fixing this issue: - https://github.com/google/mdbook-i18n-helpers/issues/70 }} - -