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/gora-site.git
The following commit(s) were added to refs/heads/main by this push: new 3920054 Add code highlighting 3920054 is described below commit 3920054d9c8f739a3bd47e2dfd2b79d9b513c2db Author: Dave Fisher <d...@davefisher.tech> AuthorDate: Fri Jun 4 15:09:31 2021 -0700 Add code highlighting --- content/resources/css/docco.css | 94 ++++++++++++++++++++++++++++++++++++++++ theme/apache/templates/base.html | 3 ++ 2 files changed, 97 insertions(+) diff --git a/content/resources/css/docco.css b/content/resources/css/docco.css new file mode 100644 index 0000000..c1284ae --- /dev/null +++ b/content/resources/css/docco.css @@ -0,0 +1,94 @@ +/* +Docco style used in http://jashkenas.github.com/docco/ converted by Simon Madine (@thingsinjars) +https://raw.githubusercontent.com/highlightjs/highlight.js/main/src/styles/docco.css +Use whatever background pre or code has +*/ + +.hljs { + color: #000; +} + +.hljs-comment, +.hljs-quote { + color: #408080; + font-style: italic; +} + +.hljs-keyword, +.hljs-selector-tag, +.hljs-literal, +.hljs-subst { + color: #954121; +} + +.hljs-number { + color: #40a070; +} + +.hljs-string, +.hljs-doctag { + color: #219161; +} + +.hljs-selector-id, +.hljs-selector-class, +.hljs-section, +.hljs-type { + color: #19469d; +} + +.hljs-params { + color: #00f; +} + +.hljs-title { + color: #458; + font-weight: bold; +} + +.hljs-tag, +.hljs-name, +.hljs-attribute { + color: #000080; + font-weight: normal; +} + +.hljs-variable, +.hljs-template-variable { + color: #008080; +} + +.hljs-regexp, +.hljs-link { + color: #b68; +} + +.hljs-symbol, +.hljs-bullet { + color: #990073; +} + +.hljs-built_in { + color: #0086b3; +} + +.hljs-meta { + color: #999; + font-weight: bold; +} + +.hljs-deletion { + background: #fdd; +} + +.hljs-addition { + background: #dfd; +} + +.hljs-emphasis { + font-style: italic; +} + +.hljs-strong { + font-weight: bold; +} diff --git a/theme/apache/templates/base.html b/theme/apache/templates/base.html index e6de4b1..7e76e7a 100644 --- a/theme/apache/templates/base.html +++ b/theme/apache/templates/base.html @@ -172,5 +172,8 @@ under the License. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js"; type="text/javascript"></script> <script src="/resources/js/bootstrap.min.js"></script> <script type="text/javascript">stLight.options({publisher: "4059fafd-3891-49f9-8c96-e4100290d8e6", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script> + <link rel="stylesheet" href="/resources/css/docco.css"> + <script src="//cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.0.1/build/highlight.min.js"></script> + <script>hljs.highlightAll();</script> </body> </html>