jekyll-materialdocs 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -0
- data/_includes/menu.html +10 -8
- data/_layouts/default.html +1 -1
- data/assets/search.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f234e1f0641c6e958b8e88578047521a6cd8039
|
4
|
+
data.tar.gz: 8b06cc184dca42bab8e9c0a89de1764b807cd3d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6013753a4cd5ebc665b37011f4f3c4095c75c4107d9102ed5bffa81ed5462aeda7052559ef4e2bdc5db514bf82325f649833a988209d413d31c4b7487770f62f
|
7
|
+
data.tar.gz: 5ba132c3d2ba17afbe7c11389960de27c28c567b7db989f1881c33d3cdf1c92a9d00764dd41f97a5466545a5fb21d38c65e859daa3c5275564f55908b3b8a08d
|
data/README.md
CHANGED
@@ -50,6 +50,7 @@ remote_theme: chromatical/jekyll-materialdocs
|
|
50
50
|
mdl_colors: indigo-pink # a supported Material Design Lite color scheme
|
51
51
|
copyright: Your Name # will override the copyright notice (default is site title)
|
52
52
|
search: true # enabled by default, set to false to disable site search
|
53
|
+
menu_style: dropdown # will only show child menu items for the main item selected
|
53
54
|
```
|
54
55
|
MaterialDocs supports changing the color scheme by setting `mdl_colors` in _config.yml to a supported Material Design Lite scheme (e.g. indigo-pink, deep_orange-blue). Use the [MDL theme builder](https://getmdl.io/customize/index.html) to find color schemes.
|
55
56
|
|
@@ -61,6 +62,7 @@ menu: Example Page # will use this as the menu item text instead of title, set t
|
|
61
62
|
parent: index.md # will make this menu item a child of the index.md item
|
62
63
|
weight: 2 # smaller weights rise to the top of the menu
|
63
64
|
mdl_colors: deep_orange-blue # override global color scheme for this page
|
65
|
+
search: false # hides this page from search results
|
64
66
|
```
|
65
67
|
|
66
68
|
## Contributing
|
data/_includes/menu.html
CHANGED
@@ -4,17 +4,19 @@
|
|
4
4
|
{% if node.menu or node.title %}
|
5
5
|
{% unless node.parent %}
|
6
6
|
<a class="mdl-navigation__link parent {% if node.url == page.url or page.parent == node.path %}is-active{% endif %}" href="{{ node.url | absolute_url }}">{% if node.menu %}{{ node.menu }}{% else %}{{ node.title }}{% endif %}</a>
|
7
|
-
{%
|
8
|
-
{%
|
9
|
-
{% if child.menu
|
10
|
-
{% if child.
|
11
|
-
{% if child.parent
|
12
|
-
|
7
|
+
{% if site.menu_style != 'dropdown' or node.url == page.url or page.parent == node.path %}
|
8
|
+
{% for child in sorted_pages %}
|
9
|
+
{% if child.menu != false %}
|
10
|
+
{% if child.menu or child.title %}
|
11
|
+
{% if child.parent %}
|
12
|
+
{% if child.parent == node.path %}
|
13
|
+
<a class="mdl-navigation__link child {% if child.url == page.url %}is-active{% endif %}" href="{{ child.url | absolute_url }}">{% if child.menu %}{{ child.menu }}{% else %}{{ child.title }}{% endif %}</a>
|
14
|
+
{% endif %}
|
13
15
|
{% endif %}
|
14
16
|
{% endif %}
|
15
17
|
{% endif %}
|
16
|
-
{%
|
17
|
-
{%
|
18
|
+
{% endfor %}
|
19
|
+
{% endif %}
|
18
20
|
{% endunless %}
|
19
21
|
{% endif %}
|
20
22
|
{% endif %}
|
data/_layouts/default.html
CHANGED
@@ -13,7 +13,7 @@
|
|
13
13
|
</span>
|
14
14
|
{% if site.search != false %}
|
15
15
|
<div class="mdl-layout-spacer"></div>
|
16
|
-
<a href="{{ site.baseurl }}
|
16
|
+
<a href="{{ site.baseurl }}{% link assets/search.html %}" class="mdl-button mdl-js-button mdl-button--icon">
|
17
17
|
<i class="material-icons">search</i>
|
18
18
|
</a>
|
19
19
|
{% endif %}
|
data/assets/search.json
CHANGED
@@ -3,7 +3,7 @@ layout: null
|
|
3
3
|
---
|
4
4
|
{% if site.search != false %}
|
5
5
|
[
|
6
|
-
{% for node in site.pages %}{% if node.title and node.content %}
|
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
9
|
"url" : "{{ site.baseurl }}{{ node.url }}",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll-materialdocs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James King
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|