Skip to content

Commit f0b56af

Browse files
committed
Minifying js and css, updating styles
1 parent 14bf592 commit f0b56af

File tree

5 files changed

+17
-10
lines changed

5 files changed

+17
-10
lines changed

docs/src/css/styles.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ li.current {
5353
border-bottom: 1px solid #010101;
5454
}
5555

56-
.hljs-type, .hljs-keyword, .hljs-title {
57-
font-weight: normal;
56+
.hljs-type, .hljs-keyword, .hljs-title, .hljs-meta-string, .hljs-meta {
57+
font-weight: normal !important;
58+
}
59+
60+
.hljs-meta {
61+
color: #4EC9B0;
5862
}

docs/src/css/styles.min.css

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/scripts/docs.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
1-
$(document).ready(function () {
1+
$(function () {
22
var hlCode = document.querySelectorAll('pre code.cs'),
3-
i,
3+
i, l,
44
hlLength = hlCode.length,
5-
mapperRegex = new RegExp('\\bMapper\\b', 'g'),
6-
typeRegex = new RegExp('(new</span>\\W+|class</span> <span class="hljs-title">|&lt;)([A-Z][^&\\\( ]+)( |{|\\\(|&gt;)', 'g'),
7-
genericTypeRegex = new RegExp('(IDictionary|Dictionary|IEnumerable|IReadOnlyCollection|Collection|List)&lt;', 'g'),
5+
mapperRegex = /\bMapper\b/g,
6+
typeRegex = /(new<\/span>\W+|class<\/span> <span class="hljs-title">|public<\/span>\W+|: <span class="hljs-title">|&lt;)([A-Z][^& \(\[\]]+)( |{|\(|\[\]&gt;|&gt;)/g,
7+
genericTypeRegex = /(I{0,1}Dictionary|IEnumerable|IReadOnlyCollection|I{0,1}Collection|I{0,1}List)&lt;/g,
88
observer = new MutationObserver(function (mutations) {
9-
for (var mutation of mutations) {
9+
for (i = 0, l = mutations.length; i < l; ++i) {
10+
var mutation = mutations[i];
1011
if (mutation.attributeName === 'class') {
1112
var innerHTML = mutation.target.innerHTML
1213
.replace(mapperRegex, '<span class="hljs-type">Mapper</span>')

docs/src/scripts/docs.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ site_dir: 'docs/site'
88

99
extra_css:
1010
- https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.13.1/styles/vs2015.min.css
11-
- css/styles.css
11+
- css/styles.min.css
1212

1313
extra_javascript:
14-
- scripts/docs.js
14+
- scripts/docs.min.js
1515

1616
nav:
1717
- General Use:

0 commit comments

Comments
 (0)