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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03507e3e42e4ba9a054c95203c84dde22a929972
4
- data.tar.gz: 5ad99b2f60c4c320693e9dfa82e980b150c42c61
3
+ metadata.gz: 0f234e1f0641c6e958b8e88578047521a6cd8039
4
+ data.tar.gz: 8b06cc184dca42bab8e9c0a89de1764b807cd3d6
5
5
  SHA512:
6
- metadata.gz: 22e7c8349fc704394148133fc737877e30ca49ffc544494fb07ff255714be1746dbcb8c3f4f67f2b501c2ad07dae4fa1a5aea4e9ad6fb4bd727d872f5a465fda
7
- data.tar.gz: fe301714e16f364887c943a11d1c32cb14a6448cdf1dab3fbef133df7b8f26c22f1c21d39ee2b8e2d0aec92674299596755f05680fc470f4db5485221d7a5f79
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
- {% for child in sorted_pages %}
8
- {% if child.menu != false %}
9
- {% if child.menu or child.title %}
10
- {% if child.parent %}
11
- {% if child.parent == node.path %}
12
- <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>
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
- {% endif %}
17
- {% endfor %}
18
+ {% endfor %}
19
+ {% endif %}
18
20
  {% endunless %}
19
21
  {% endif %}
20
22
  {% endif %}
@@ -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 }}/assets/search" class="mdl-button mdl-js-button mdl-button--icon">
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.0
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-03-16 00:00:00.000000000 Z
11
+ date: 2018-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll