[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/with-editor 05338d8 069/140: make: inject style switcher i
From: |
Jonas Bernoulli |
Subject: |
[nongnu] elpa/with-editor 05338d8 069/140: make: inject style switcher into generated html manual |
Date: |
Fri, 6 Aug 2021 12:51:22 -0400 (EDT) |
branch: elpa/with-editor
commit 05338d893f3879391d7283324364b472e3f4f4d1
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
make: inject style switcher into generated html manual
---
Makefile | 13 +++++++++++++
with-editor.org | 4 ++--
with-editor.texi | 4 ++--
3 files changed, 17 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 2df3cf4..602c58c 100644
--- a/Makefile
+++ b/Makefile
@@ -82,13 +82,26 @@ dir: $(PKG).info
@printf "Generating $@\n"
@printf "%s" $^ | xargs -n 1 $(INSTALL_INFO) --dir=$@
+HTML_FIXUP_CSS = '/<link rel="stylesheet" type="text\/css"
href="\/assets\/page.css">/a\
+<link class="s-css-s--style" rel="stylesheet" title="Default"
href="/assets/themes/default.css">\
+\n<link class="s-css-s--style" rel="stylesheet alternate" title="Default high
contrast" href="/assets/themes/default-high-contrast.css">\
+\n<link class="s-css-s--style" rel="stylesheet alternate" title="Solarized
dark xterm" href="/assets/themes/solarized-dark-xterm.css">\
+\n<link class="s-css-s--style" rel="stylesheet alternate" title="Black on
white" href="/assets/themes/black-on-white.css">\
+\n<script src="/assets/js/simple-css-switch.js"></script>'
+HTML_FIXUP_ONLOAD = 's/<body lang="en">/<body lang="en"
onload="simpleCssSwitch()">/'
+HTML_FIXUP_MENU = '/<\/body>/i<div id="s-css-s--menu"><\/div>'
+
%.html: %.texi
@printf "Generating $@\n"
@$(MAKEINFO) --html --no-split $(MANUAL_HTML_ARGS) $<
+ @sed -i -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e
$(HTML_FIXUP_MENU) $@
html-dir: $(PKG).texi
@printf "Generating $(PKG)/*.html\n"
@$(MAKEINFO) --html $(MANUAL_HTML_ARGS) $<
+ @for f in $$(find $(PKG) -name '*.html') ; do \
+ sed -i -e $(HTML_FIXUP_CSS) -e $(HTML_FIXUP_ONLOAD) -e
$(HTML_FIXUP_MENU) $$f ; \
+ done
%.pdf: %.texi
@printf "Generating $@\n"
diff --git a/with-editor.org b/with-editor.org
index a67a8b7..bf803e8 100644
--- a/with-editor.org
+++ b/with-editor.org
@@ -7,7 +7,7 @@
#+TEXINFO_DIR_CATEGORY: Emacs
#+TEXINFO_DIR_TITLE: With-Editor: (with-editor).
#+TEXINFO_DIR_DESC: Using the Emacsclient as $EDITOR
-#+SUBTITLE: for version 2.7.0 (v2.7.0-9-gf733034+1)
+#+SUBTITLE: for version 2.7.0 (v2.7.0-10-g93876b6+1)
#+BIND: ox-texinfo+-before-export-hook ox-texinfo+-update-version-strings
#+TEXINFO_DEFFN: t
@@ -29,7 +29,7 @@ additional functionality which makes it useful even for
end-users, who
don't use Magit or another package which uses it internally.
#+TEXINFO: @noindent
-This manual is for With-Editor version 2.7.0 (v2.7.0-9-gf733034+1).
+This manual is for With-Editor version 2.7.0 (v2.7.0-10-g93876b6+1).
#+BEGIN_QUOTE
Copyright (C) 2015-2017 Jonas Bernoulli <jonas@bernoul.li>
diff --git a/with-editor.texi b/with-editor.texi
index a0cd0dd..c48e806 100644
--- a/with-editor.texi
+++ b/with-editor.texi
@@ -30,7 +30,7 @@ General Public License for more details.
@finalout
@titlepage
@title With-Editor User Manual
-@subtitle for version 2.7.0 (v2.7.0-9-gf733034+1)
+@subtitle for version 2.7.0 (v2.7.0-10-g93876b6+1)
@author Jonas Bernoulli
@page
@vskip 0pt plus 1filll
@@ -59,7 +59,7 @@ additional functionality which makes it useful even for
end-users, who
don't use Magit or another package which uses it internally.
@noindent
-This manual is for With-Editor version 2.7.0 (v2.7.0-9-gf733034+1).
+This manual is for With-Editor version 2.7.0 (v2.7.0-10-g93876b6+1).
@quotation
Copyright (C) 2015-2017 Jonas Bernoulli <jonas@@bernoul.li>
- [nongnu] elpa/with-editor 5cddefa 044/140: Use remacsclient when using remacs, (continued)
- [nongnu] elpa/with-editor 5cddefa 044/140: Use remacsclient when using remacs, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1343935 045/140: Fix doc-string typos, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8d73358 046/140: Provide actual url when mentioning old Magit issue numbers, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 890f923 048/140: Drop dependency on dash, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 2417261 051/140: Guard against nonexistent default directory, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ae23243 053/140: Cosmetics and typo fixes, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1b7f6ef 055/140: Require pcase, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor fb9e560 057/140: .travis.yml: fail on byte compilation warnings, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor d68fe1c 061/140: make: rename and sanitize some variables, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8d3d639 063/140: make: use ox-texinfo+-update-version-strings, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 05338d8 069/140: make: inject style switcher into generated html manual,
Jonas Bernoulli <=
- [nongnu] elpa/with-editor 04d59d6 070/140: Release version 2.7.1, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor a77813b 074/140: Update .gitignore, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor ab73c02 027/140: manual: adjust for ox-texinfo+ v1, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8fa5cef 028/140: Remove spurious paranthesis from Makefile recipe, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 8c95e7d 036/140: Use when-let instead of macros from dash, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 1d34c65 047/140: Use user-error when appropriate, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 4d3d50b 049/140: with-editor--setup: create from code previously in with-editor, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor b591c28 050/140: with-editor-locate-emacsclient: don't assume version string length, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 99d3278 058/140: shell-command: enable with-editor-mode when appropriate, Jonas Bernoulli, 2021/08/06
- [nongnu] elpa/with-editor 50b40a8 059/140: manual: enforce preservation of indentation, Jonas Bernoulli, 2021/08/06