Skip to content

Commit

Permalink
Fix problems with code highlighting by standardising across all themes
Browse files Browse the repository at this point in the history
Fixes #322
  • Loading branch information
d0ugal committed Mar 31, 2015
1 parent 1977353 commit ccf6d29
Show file tree
Hide file tree
Showing 83 changed files with 1,704 additions and 839 deletions.
4 changes: 2 additions & 2 deletions mkdocs/themes/amelia/base.html
Expand Up @@ -14,7 +14,7 @@

<link href="{{ base_url }}/css/bootstrap-custom.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/font-awesome-4.0.3.css" rel="stylesheet">
<link href="{{ base_url }}/css/prettify-1.0.css" rel="stylesheet">
<link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
<link href="{{ base_url }}/css/base.css" rel="stylesheet">
{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">
Expand Down Expand Up @@ -52,7 +52,7 @@

<script src="{{ base_url }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
<script src="{{ base_url }}/js/prettify-1.0.min.js"></script>
<script src="{{ base_url }}/js/highlight.pack.js"></script>
<script src="{{ base_url }}/js/base.js"></script>
{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
Expand Down
125 changes: 125 additions & 0 deletions mkdocs/themes/amelia/css/highlight.css
@@ -0,0 +1,125 @@
/*
This is the GitHub theme for highlight.js
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/

.hljs {
display: block; padding: 0.5em;
color: #333;
}

.hljs-comment,
.hljs-template_comment,
.diff .hljs-header,
.hljs-javadoc {
color: #998;
font-style: italic
}

.hljs-keyword,
.css .rule .hljs-keyword,
.hljs-winutils,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: #333;
font-weight: bold
}

.hljs-number,
.hljs-hexcolor,
.ruby .hljs-constant {
color: #099;
}

.hljs-string,
.hljs-tag .hljs-value,
.hljs-phpdoc,
.tex .hljs-formula {
color: #d14
}

.hljs-title,
.hljs-id,
.coffeescript .hljs-params,
.scss .hljs-preprocessor {
color: #900;
font-weight: bold
}

.javascript .hljs-title,
.lisp .hljs-title,
.clojure .hljs-title,
.hljs-subst {
font-weight: normal
}

.hljs-class .hljs-title,
.haskell .hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
color: #458;
font-weight: bold
}

.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rules .hljs-property,
.django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal
}

.hljs-attribute,
.hljs-variable,
.lisp .hljs-body {
color: #008080
}

.hljs-regexp {
color: #009926
}

.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
color: #990073
}

.hljs-built_in,
.lisp .hljs-title,
.clojure .hljs-built_in {
color: #0086b3
}

.hljs-preprocessor,
.hljs-pragma,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
color: #999;
font-weight: bold
}

.hljs-deletion {
background: #fdd
}

.hljs-addition {
background: #dfd
}

.diff .hljs-change {
background: #0086b3
}

.hljs-chunk {
color: #aaa
}
28 changes: 0 additions & 28 deletions mkdocs/themes/amelia/css/prettify-1.0.css

This file was deleted.

5 changes: 3 additions & 2 deletions mkdocs/themes/amelia/js/base.js
@@ -1,7 +1,8 @@

/* Prettyify */
/* Highlight */
$( document ).ready(function() {
prettyPrint();
hljs.initHighlightingOnLoad();
$('table').addClass('table');
});


Expand Down
1 change: 1 addition & 0 deletions mkdocs/themes/amelia/js/highlight.pack.js

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions mkdocs/themes/amelia/js/prettify-1.0.min.js

This file was deleted.

4 changes: 2 additions & 2 deletions mkdocs/themes/bootstrap/base.html
Expand Up @@ -14,7 +14,7 @@

<link href="{{ base_url }}/css/bootstrap-3.0.3.min.css" rel="stylesheet">
<link href="{{ base_url }}/css/font-awesome-4.0.3.css" rel="stylesheet">
<link href="{{ base_url }}/css/prettify-1.0.css" rel="stylesheet">
<link rel="stylesheet" href="{{ base_url }}/css/highlight.css">
<link href="{{ base_url }}/css/base.css" rel="stylesheet">
{%- for path in extra_css %}
<link href="{{ path }}" rel="stylesheet">
Expand Down Expand Up @@ -60,7 +60,7 @@

<script src="{{ base_url }}/js/jquery-1.10.2.min.js"></script>
<script src="{{ base_url }}/js/bootstrap-3.0.3.min.js"></script>
<script src="{{ base_url }}/js/prettify-1.0.min.js"></script>
<script src="{{ base_url }}/js/highlight.pack.js"></script>
<script src="{{ base_url }}/js/base.js"></script>
{%- for path in extra_javascript %}
<script src="{{ path }}"></script>
Expand Down
125 changes: 125 additions & 0 deletions mkdocs/themes/bootstrap/css/highlight.css
@@ -0,0 +1,125 @@
/*
This is the GitHub theme for highlight.js
github.com style (c) Vasily Polovnyov <vast@whiteants.net>
*/

.hljs {
display: block; padding: 0.5em;
color: #333;
}

.hljs-comment,
.hljs-template_comment,
.diff .hljs-header,
.hljs-javadoc {
color: #998;
font-style: italic
}

.hljs-keyword,
.css .rule .hljs-keyword,
.hljs-winutils,
.javascript .hljs-title,
.nginx .hljs-title,
.hljs-subst,
.hljs-request,
.hljs-status {
color: #333;
font-weight: bold
}

.hljs-number,
.hljs-hexcolor,
.ruby .hljs-constant {
color: #099;
}

.hljs-string,
.hljs-tag .hljs-value,
.hljs-phpdoc,
.tex .hljs-formula {
color: #d14
}

.hljs-title,
.hljs-id,
.coffeescript .hljs-params,
.scss .hljs-preprocessor {
color: #900;
font-weight: bold
}

.javascript .hljs-title,
.lisp .hljs-title,
.clojure .hljs-title,
.hljs-subst {
font-weight: normal
}

.hljs-class .hljs-title,
.haskell .hljs-type,
.vhdl .hljs-literal,
.tex .hljs-command {
color: #458;
font-weight: bold
}

.hljs-tag,
.hljs-tag .hljs-title,
.hljs-rules .hljs-property,
.django .hljs-tag .hljs-keyword {
color: #000080;
font-weight: normal
}

.hljs-attribute,
.hljs-variable,
.lisp .hljs-body {
color: #008080
}

.hljs-regexp {
color: #009926
}

.hljs-symbol,
.ruby .hljs-symbol .hljs-string,
.lisp .hljs-keyword,
.tex .hljs-special,
.hljs-prompt {
color: #990073
}

.hljs-built_in,
.lisp .hljs-title,
.clojure .hljs-built_in {
color: #0086b3
}

.hljs-preprocessor,
.hljs-pragma,
.hljs-pi,
.hljs-doctype,
.hljs-shebang,
.hljs-cdata {
color: #999;
font-weight: bold
}

.hljs-deletion {
background: #fdd
}

.hljs-addition {
background: #dfd
}

.diff .hljs-change {
background: #0086b3
}

.hljs-chunk {
color: #aaa
}

0 comments on commit ccf6d29

Please sign in to comment.