gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] branch master updated: fix doc build, incl


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] branch master updated: fix doc build, include syntax highlighting
Date: Thu, 01 Feb 2018 15:08:45 +0100

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

The following commit(s) were added to refs/heads/master by this push:
     new 4db25c5  fix doc build, include syntax highlighting
4db25c5 is described below

commit 4db25c53116277c38ba1a916b88b8552ac90ebad
Author: Florian Dold <address@hidden>
AuthorDate: Thu Feb 1 15:08:33 2018 +0100

    fix doc build, include syntax highlighting
---
 doc/Makefile.am |  9 ++++-----
 doc/manual.texi |  4 +++-
 doc/syntax.texi | 44 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 6 deletions(-)

diff --git a/doc/Makefile.am b/doc/Makefile.am
index 94c0ef4..a755143 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,13 +1,12 @@
 all: manual.pdf manual.html
 
 manual.pdf: arch.pdf manual.texi
-       texi2pdf manual.texi
-manual.html: arch.jpg manual.texi
-       makeinfo --html --no-split manual.texi
+manual.html: arch.png manual.texi
+
 arch.pdf: arch.dot
        dot -Tpdf arch.dot > arch.pdf
-arch.jpg: arch.dot
-       dot -Tjpg arch.dot > arch.jpg
+arch.png: arch.dot
+       dot -Tpng arch.dot > arch.png
 
 AM_MAKEINFOHTMLFLAGS = --no-split --css-ref=docstyle.css 
--css-ref=brown-paper.css
 
diff --git a/doc/manual.texi b/doc/manual.texi
index 861951d..d8eeb0e 100644
--- a/doc/manual.texi
+++ b/doc/manual.texi
@@ -4,6 +4,8 @@
 @include version.texi
 @settitle The GNU Taler merchant backend operator tutorial @value{VERSION}
 
address@hidden syntax.texi
+
 @c Define a new index for options.
 @defcodeindex op
 @c Combine everything into one index (arbitrarily chosen to be the
@@ -159,7 +161,7 @@ The Taler software stack for a merchant consists of four 
main components:
 The following image illustrates the various interactions of these
 key components:
 
address@hidden @image{arch, 3in, 4in}
address@hidden @image{arch, 3in}
 
 @cindex RESTful
 Basically, the backend provides the cryptographic protocol support,
diff --git a/doc/syntax.texi b/doc/syntax.texi
new file mode 100644
index 0000000..8aca39d
--- /dev/null
+++ b/doc/syntax.texi
@@ -0,0 +1,44 @@
address@hidden Syntax highlighting for texinfo's HTML output
+
address@hidden
+<script src="highlight.pack.js"></script>
+<script>
+var hls = [];
+var syntaxAuto = true;
+addEventListener("DOMContentLoaded", function() {
+  // Highlight blocks with fixed language
+  for (let x of hls) {
+    let next = x[0].nextElementSibling;
+    console.log("next", next);
+    let blocks = next.querySelectorAll("pre.example");
+    for (let i = 0; i < blocks.length; i++) {
+      blocks[i].classList.add("language-" + x[1]);
+      hljs.highlightBlock(blocks[i]);
+    }
+  } 
+  // auto-detect other blocks if not disabled
+  if (syntaxAuto) {
+    let blocks = document.querySelectorAll("pre.example");
+    for (let i = 0; i < blocks.length; i++) {
+      hljs.highlightBlock(blocks[i]);
+    }
+  }
+});
+</script>
address@hidden html
+
address@hidden setsyntax{lang}
address@hidden
+<script>
+hls.push([document.currentScript, "\lang\"]);
+</script>
address@hidden html
address@hidden macro
+
address@hidden setsyntaxnoauto{}
address@hidden
+<script>
+syntaxAuto = false;
+</script>
address@hidden html
address@hidden macro

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]