jekyll-materialdocs 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_includes/head.html +1 -1
- data/_layouts/default.html +1 -1
- data/assets/search.html +4 -2
- data/assets/search.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c4b95bea3a1e5bcbfa2b83a15de90bbe64047c2
|
|
4
|
+
data.tar.gz: 673f0cac184a312de11f323c480e0d13f0247605
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 822d85a87abd2cfa38849adf5eb622f84b2e213688635cbdf2fccc800546d7ea4602beae6a2f142f91d1285e3e571c7acf9567d2827304cae156c9f8fad4f8a1
|
|
7
|
+
data.tar.gz: 5008cec8d925049659803136a07be557a8e38184df09f68ffe88d4091e0341dcce944a1113ec3f3d125a11b6775653ba7257d90f993661e29b8555dd78b2333f
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
**View this theme on [ThemeJekyll](https://themejekyll.github.io/theme/materialdocs/)**
|
|
4
4
|
|
|
5
|
-

|
|
6
6
|
|
|
7
7
|
MaterialDocs is a material two-column Jekyll theme designed for documentation websites. It is built with [Material Design Lite](https://getmdl.io).
|
|
8
8
|
|
data/_includes/head.html
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
{% assign mdl_colors = page.mdl_colors %}
|
|
12
12
|
{% endif %}
|
|
13
13
|
<link rel="stylesheet" href="https://code.getmdl.io/1.3.0/material.{{ mdl_colors }}.min.css" />
|
|
14
|
-
<link rel="stylesheet" href="{{
|
|
14
|
+
<link rel="stylesheet" href="{{ '/assets/jekyll-materialdocs.css' | absolute_url }}">
|
|
15
15
|
<title>{{ page.title }} | {{ site.title }}</title>
|
data/_layouts/default.html
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
</header>
|
|
22
22
|
<div class="mdl-layout__drawer">
|
|
23
|
-
<span class="mdl-layout-title"><a id="site-title" href="{{
|
|
23
|
+
<span class="mdl-layout-title"><a id="site-title" href="{{ '/' | absolute_url }}">{{ site.title }}</a></span>
|
|
24
24
|
<nav class="mdl-navigation">
|
|
25
25
|
{% include menu.html %}
|
|
26
26
|
</nav>
|
data/assets/search.html
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
layout: page
|
|
3
3
|
title: Search
|
|
4
4
|
menu: false
|
|
5
|
+
search: false
|
|
6
|
+
permalink: /search
|
|
5
7
|
---
|
|
6
8
|
{% if site.search != false %}
|
|
7
9
|
<div id="search-container">
|
|
@@ -13,12 +15,12 @@ menu: false
|
|
|
13
15
|
</form>
|
|
14
16
|
<ul class="demo-list-item mdl-list" id="results"></ul>
|
|
15
17
|
</div>
|
|
16
|
-
<script src="{{
|
|
18
|
+
<script src="{{ '/assets/simple-jekyll-search.min.js' | absolute_url }}"></script>
|
|
17
19
|
<script>
|
|
18
20
|
SimpleJekyllSearch({
|
|
19
21
|
searchInput: document.getElementById('search'),
|
|
20
22
|
resultsContainer: document.getElementById('results'),
|
|
21
|
-
json:
|
|
23
|
+
json: "{{ '/assets/search.json' | absolute_url }}",
|
|
22
24
|
searchResultTemplate: '<li class="mdl-list__item"><a href="{url}"><span class="mdl-list__item-primary-content">{title}</span></a></li>'
|
|
23
25
|
})
|
|
24
26
|
</script>
|
data/assets/search.json
CHANGED
|
@@ -6,7 +6,7 @@ layout: null
|
|
|
6
6
|
{% for node in site.pages %}{% if node.title and node.content and node.search != false %}
|
|
7
7
|
{
|
|
8
8
|
"title" : "{{ node.title | escape }}",
|
|
9
|
-
"url" : "{{
|
|
9
|
+
"url" : "{{ node.url | absolute_url }}",
|
|
10
10
|
"content" : {{ node.content | newlines_to_br | strip_html | jsonify }}
|
|
11
11
|
},
|
|
12
12
|
{% endif %}{% endfor %}{}
|