This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/bval-site.git
The following commit(s) were added to refs/heads/main by this push:
new 6e4bda5 add code highting from hightlightjs.org
6e4bda5 is described below
commit 6e4bda5e29422325b3a8516550b00fe63c5f3af3
Author: Dave Fisher <[email protected]>
AuthorDate: Fri Jun 4 12:23:16 2021 -0700
add code highting from hightlightjs.org
---
content/resources/css/arduino-light.css | 89 +++++++++++++++++++++++++++++++++
theme/apache/templates/base.html | 3 ++
2 files changed, 92 insertions(+)
diff --git a/content/resources/css/arduino-light.css
b/content/resources/css/arduino-light.css
new file mode 100644
index 0000000..d34c443
--- /dev/null
+++ b/content/resources/css/arduino-light.css
@@ -0,0 +1,89 @@
+/*
+
+Arduino® Light Theme - Stefania Mellai <[email protected]>
+
+From
https://raw.githubusercontent.com/highlightjs/highlight.js/main/src/styles/arduino-light.css
+
+Modified the background to be #f5f5f5
+
+*/
+
+.hljs {
+ background: #f5f5f5;
+ color: #434f54;
+}
+
+.hljs-subst {
+ color: #434f54;
+}
+
+.hljs-keyword,
+.hljs-attribute,
+.hljs-selector-tag,
+.hljs-doctag,
+.hljs-name {
+ color: #00979D;
+}
+
+.hljs-built_in,
+.hljs-literal,
+.hljs-bullet,
+.hljs-code,
+.hljs-addition {
+ color: #D35400;
+}
+
+.hljs-regexp,
+.hljs-symbol,
+.hljs-variable,
+.hljs-template-variable,
+.hljs-link,
+.hljs-selector-attr,
+.hljs-selector-pseudo {
+ color: #00979D;
+}
+
+.hljs-type,
+.hljs-string,
+.hljs-selector-id,
+.hljs-selector-class,
+.hljs-quote,
+.hljs-template-tag,
+.hljs-deletion {
+ color: #005C5F;
+}
+
+.hljs-comment {
+ color: rgba(149,165,166,.8);
+}
+
+.hljs-meta .hljs-keyword {
+
+ color: #728E00;
+}
+
+.hljs-meta {
+ color: #434f54;
+}
+
+.hljs-emphasis {
+ font-style: italic;
+}
+
+.hljs-strong {
+ font-weight: bold;
+}
+
+.hljs-function {
+ color: #728E00;
+}
+
+.hljs-title,
+.hljs-section {
+ color: #880000;
+ font-weight: bold;
+}
+
+.hljs-number {
+ color: #8A7B52;
+}
diff --git a/theme/apache/templates/base.html b/theme/apache/templates/base.html
index 05c66b2..53f5ed5 100644
--- a/theme/apache/templates/base.html
+++ b/theme/apache/templates/base.html
@@ -145,6 +145,9 @@ under the License.
<!-- Placed at the end of the document so the pages load faster -->
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js";
type="text/javascript"></script>
<script src="/resources/js/bootstrap.min.js"></script>
+ <link rel="stylesheet" href="/resources/css/arduino-light.css">
+ <script
src="//cdn.jsdelivr.net/gh/highlightjs/[email protected]/build/highlight.min.js"></script>
+ <script>hljs.highlightAll();</script>
</body>
</html>