From a88ad95fa225b4b3edbdb65fe82ef9b687ca2fd8 Mon Sep 17 00:00:00 2001 From: Vincenzo Mantova Date: Wed, 30 Oct 2024 19:37:24 +0000 Subject: [PATCH] release v0.11.0 Breaking changes: - disable again mathMLSpacing option in MathJax due to poor results - improve listings with line numbers (fix #25) - only add --navigationtoc=context when using the GitBook style - Docker container uses root again for compatibility with GitHub actions - template GitHub workflow improvements --- CSS/style.gitbook.scss | 11 ++++++++++- Dockerfile | 1 - XSLT/bookml-html5.xsl | 6 ------ XSLT/proc-resources.xsl | 5 +++++ bookml.mk | 6 +++--- template/.github/workflows/bookml.yaml | 11 +++++++---- 6 files changed, 25 insertions(+), 15 deletions(-) diff --git a/CSS/style.gitbook.scss b/CSS/style.gitbook.scss index 00d24eb..c133fc1 100644 --- a/CSS/style.gitbook.scss +++ b/CSS/style.gitbook.scss @@ -397,7 +397,8 @@ mjx-container[jax="SVG"][display="true"] { /* unset bookdown font size, restore spaces */ &>pre>code { font-size: inherit; - white-space: pre; + white-space: normal; + display: block; } /* adjust position of download button */ @@ -406,6 +407,14 @@ mjx-container[jax="SVG"][display="true"] { } } +/* typeset line numbers within container */ +.ltx_lst_numbers_left .ltx_listingline .ltx_tag { + position: initial; + display: inline-block; + margin-left: 0; + width: 1.7em; +} + .book .book-body .page-wrapper .page-inner section.normal { & code.ltx_lstlisting { font-size: inherit; diff --git a/Dockerfile b/Dockerfile index 302704e..8cdf926 100644 --- a/Dockerfile +++ b/Dockerfile @@ -146,4 +146,3 @@ EOF WORKDIR /source ENTRYPOINT ["/run-bookml"] -USER ubuntu diff --git a/XSLT/bookml-html5.xsl b/XSLT/bookml-html5.xsl index 541f40e..9e16992 100644 --- a/XSLT/bookml-html5.xsl +++ b/XSLT/bookml-html5.xsl @@ -90,12 +90,6 @@