jekyll-readthedocs 0.2.4 → 0.3.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a02b6820185c1f434aa40d443fe9b952777b0d7d
4
- data.tar.gz: 3c8aa7815dadf6a7d6f3337ca31831841e07f8c0
2
+ SHA256:
3
+ metadata.gz: 46814d39fe09c6368a84585be0dabeb613971d30b7f46d918a9a3e5d675e3ed5
4
+ data.tar.gz: 57e12fbcd7c8bc1b002e158a0953ceeccbe228ecf5876deae24b06c0076d4474
5
5
  SHA512:
6
- metadata.gz: e171a1346237106b27dfaf0cb58555dda8c1aeea17d0076fd4b86f6a5bfae4c9ddabf85161fa1b76f27805398fbd5939f11b5c385987713004fb57069de28ea4
7
- data.tar.gz: 79cdf3bd16f36ab7c2a6ea3a930ca4aa10979fffc38e2d1775ca3681314b41801d9a8dab61cca18c7ebc9262f55d859f2aa7f06c6e8da4c7a231bce439b1c2bd
6
+ metadata.gz: f51e45c68b08e8396fe002a0a27206e9161c674a218575e39e3f096203d6e8e36efada08092f20a2046666dc2429f4a7f057faa46bbd59f9bdcf01a1f37d5908
7
+ data.tar.gz: df867501c0534d160d52070e41f0ab6470fca807385c371abd4273ece533a7379897f2debeaa40ded1257dde8aff455cc2db22aa5b3b8dd9ff6cd90b5ce48512
data/README.md CHANGED
@@ -199,7 +199,7 @@ mastodon:
199
199
 
200
200
  ### Enabling Google Analytics
201
201
 
202
- To enable Google Anaytics, add the following lines to your Jekyll site:
202
+ To enable Google Analytics, add the following lines to your Jekyll site:
203
203
 
204
204
  ```yaml
205
205
  google_analytics: UA-NNNNNNNN-N
@@ -1,4 +1,4 @@
1
- {% if page.comments != false and jekyll.environment == "production" %}
1
+ {%- if page.comments != false and jekyll.environment == "production" -%}
2
2
 
3
3
  <div id="disqus_thread"></div>
4
4
  <script>
@@ -17,4 +17,4 @@
17
17
  })();
18
18
  </script>
19
19
  <noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
20
- {% endif %}
20
+ {%- endif -%}
@@ -9,24 +9,24 @@
9
9
  <div class="footer-col footer-col-1">
10
10
  <ul class="contact-list">
11
11
  <li class="p-name">
12
- {% if site.author %}
12
+ {%- if site.author -%}
13
13
  {{ site.author | escape }}
14
- {% else %}
14
+ {%- else -%}
15
15
  {{ site.title | escape }}
16
- {% endif %}
16
+ {%- endif -%}
17
17
  </li>
18
- {% if site.email %}
18
+ {%- if site.email -%}
19
19
  <li><a class="u-email" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
20
- {% endif %}
20
+ {%- endif -%}
21
21
  </ul>
22
22
  </div>
23
23
 
24
24
  <div class="footer-col footer-col-2">
25
- {% include social.html %}
25
+ {%- include social.html -%}
26
26
  </div>
27
27
 
28
28
  <div class="footer-col footer-col-3">
29
- <p>{{ site.description | escape }}</p>
29
+ <p>{{- site.description | escape -}}</p>
30
30
  </div>
31
31
  </div>
32
32
 
@@ -2,10 +2,10 @@
2
2
  <meta charset="utf-8">
3
3
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
4
4
  <meta name="viewport" content="width=device-width, initial-scale=1">
5
- {% seo %}
5
+ {%- seo -%}
6
6
  <link rel="stylesheet" href="{{ "/assets/main.css" | relative_url }}">
7
- {% feed_meta %}
8
- {% if jekyll.environment == 'production' and site.google_analytics %}
9
- {% include google-analytics.html %}
10
- {% endif %}
7
+ {%- feed_meta -%}
8
+ {%- if jekyll.environment == 'production' and site.google_analytics -%}
9
+ {%- include google-analytics.html -%}
10
+ {%- endif -%}
11
11
  </head>
@@ -1,46 +1,49 @@
1
1
  <div class="site-sidebar">
2
- <a class="sidebar-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
2
+ <div class="no-scroll-bar">
3
3
 
4
- <form method="get" action="{{ site.baseurl }}/search.html">
5
- <input type="text" name="q" placeholder="Search blog">
6
- </form>
4
+ <a class="sidebar-title" href="{{ "/" | relative_url }}">{{ site.title | escape }}</a>
7
5
 
8
- {% assign default_paths = site.pages | map: "path" %}
9
- {% assign page_paths = site.header_pages | default: default_paths %}
10
- <!-- {% if page_paths %} -->
11
- <nav class="site-nav">
12
- <input type="checkbox" id="nav-trigger" class="nav-trigger" />
13
- <label for="nav-trigger">
14
- <span class="menu-icon">
15
- <svg viewBox="0 0 18 15" width="18px" height="15px">
16
- <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
17
- <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
18
- <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
19
- </svg>
20
- </span>
21
- </label>
6
+ <form method="get" action="{{ site.baseurl }}/search.html">
7
+ <input type="text" name="q" placeholder="Search blog">
8
+ </form>
22
9
 
23
- <ul class="trigger">
24
- {% for path in page_paths %}
25
- {% assign my_page = site.pages | where: "path", path | first %}
26
- {% if my_page.title %}
27
- <li class="{% if page.title == my_page.title %}active{% endif %}"><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
28
- {% endif %}
29
- {% endfor %}
30
- </ul>
31
- <!-- {% endif %} -->
10
+ {% assign default_paths = site.pages | map: "path" %}
11
+ {% assign page_paths = site.header_pages | default: default_paths %}
12
+ <!-- {% if page_paths %} -->
13
+ <nav class="site-nav">
14
+ <input type="checkbox" id="nav-trigger" class="nav-trigger" />
15
+ <label for="nav-trigger">
16
+ <span class="menu-icon">
17
+ <svg viewBox="0 0 18 15" width="18px" height="15px">
18
+ <path fill="#424242" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z"/>
19
+ <path fill="#424242" d="M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z"/>
20
+ <path fill="#424242" d="M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"/>
21
+ </svg>
22
+ </span>
23
+ </label>
32
24
 
33
- {% if site.posts.size > 0 %}
34
- <ul class="trigger">
35
- {% for post in site.posts %}
36
- <li class="{% if page.title == post.title %}active{% endif %}">
37
- {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
38
- <span>{{ post.date | date: date_format }}</span><br>
39
- <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
40
- </li>
25
+ <ul id="page-list" class="trigger">
26
+ {% for path in page_paths %}
27
+ {% assign my_page = site.pages | where: "path", path | first %}
28
+ {% if my_page.title %}
29
+ <li class="{% if page.title == my_page.title %}active{% endif %}"><a href="{{ my_page.url | relative_url }}">{{ my_page.title | escape }}</a></li>
30
+ {% endif %}
41
31
  {% endfor %}
42
32
  </ul>
43
- {% endif %}
44
- </nav>
33
+ <!-- {% endif %} -->
45
34
 
35
+ {% if site.posts.size > 0 %}
36
+ <ul id="post-list" class="trigger">
37
+ {% for post in site.posts %}
38
+ <li class="{% if page.title == post.title %}active{% endif %}">
39
+ {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
40
+ <span>{{ post.date | date: date_format }}</span><br>
41
+ <a href="{{ post.url | relative_url }}">{{ post.title | escape }}</a>
42
+ </li>
43
+ {% endfor %}
44
+ </ul>
45
+ {% endif %}
46
+ </nav>
47
+
48
+ </div>
46
49
  </div>
@@ -1,14 +1,14 @@
1
1
  <ul class="social-media-list">
2
- {% if site.dribbble_username%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#dribbble"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{% endif %}
3
- {% if site.facebook_username%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#facebook"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{% endif %}
4
- {% if site.flickr_username%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#flickr"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{% endif %}
5
- {% if site.github_username%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#github"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{% endif %}
6
- {% if site.instagram_username%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#instagram"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{% endif %}
7
- {% if site.linkedin_username%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#linkedin"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{% endif %}
8
- {% if site.pinterest_username%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#pinterest"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{% endif %}
9
- {% for mst in site.mastodon %}{% if mst.username and mst.instance %}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#mastodon"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{% endif %}{% endfor %}
10
- {% if site.twitter_username%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{% endif %}
11
- {% if site.youtube_username%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#youtube"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{% endif %}
12
- {% if site.googleplus_username%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#googleplus"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{% endif %}
13
- {% if site.rss %}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#rss"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{% endif %}
2
+ {%- if site.dribbble_username -%}<li><a href="https://dribbble.com/{{ site.dribbble_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#dribbble' | relative_url }}"></use></svg> <span class="username">{{ site.dribbble_username| escape }}</span></a></li>{%- endif -%}
3
+ {%- if site.facebook_username -%}<li><a href="https://www.facebook.com/{{ site.facebook_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#facebook' | relative_url }}"></use></svg> <span class="username">{{ site.facebook_username| escape }}</span></a></li>{%- endif -%}
4
+ {%- if site.flickr_username -%}<li><a href="https://www.flickr.com/photos/{{ site.flickr_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#flickr' | relative_url }}"></use></svg> <span class="username">{{ site.flickr_username| escape }}</span></a></li>{%- endif -%}
5
+ {%- if site.github_username -%}<li><a href="https://github.com/{{ site.github_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#github' | relative_url }}"></use></svg> <span class="username">{{ site.github_username| escape }}</span></a></li>{%- endif -%}
6
+ {%- if site.instagram_username -%}<li><a href="https://instagram.com/{{ site.instagram_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#instagram' | relative_url }}"></use></svg> <span class="username">{{ site.instagram_username| escape }}</span></a></li>{%- endif -%}
7
+ {%- if site.linkedin_username -%}<li><a href="https://www.linkedin.com/in/{{ site.linkedin_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#linkedin' | relative_url }}"></use></svg> <span class="username">{{ site.linkedin_username| escape }}</span></a></li>{%- endif -%}
8
+ {%- if site.pinterest_username -%}<li><a href="https://www.pinterest.com/{{ site.pinterest_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#pinterest' | relative_url }}"></use></svg> <span class="username">{{ site.pinterest_username| escape }}</span></a></li>{%- endif -%}
9
+ {%- for mst in site.mastodon -%}{%- if mst.username and mst.instance -%}<li><a href="https://{{ mst.instance| cgi_escape | escape}}/@{{mst.username}}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#mastodon' | relative_url }}"></use></svg> <span class="username">{{ mst.username|escape }}</span></a></li>{%- endif -%}{%- endfor -%}
10
+ {%- if site.twitter_username -%}<li><a href="https://www.twitter.com/{{ site.twitter_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#twitter' | relative_url }}"></use></svg> <span class="username">{{ site.twitter_username| escape }}</span></a></li>{%- endif -%}
11
+ {%- if site.youtube_username -%}<li><a href="https://youtube.com/{{ site.youtube_username| cgi_escape | escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#youtube' | relative_url }}"></use></svg> <span class="username">{{ site.youtube_username| escape }}</span></a></li>{%- endif -%}
12
+ {%- if site.googleplus_username -%}<li><a href="https://plus.google.com/{{ site.googleplus_username| escape }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#googleplus' | relative_url }}"></use></svg> <span class="username">{{ site.googleplus_username| escape }}</span></a></li>{%- endif -%}
13
+ {%- if site.rss -%}<li><a href="{{ 'feed.xml' | relative_url }}"><svg class="svg-icon"><use xlink:href="{{ '/assets/minima-social-icons.svg#rss' | relative_url }}"></use></svg> <span>{{ site.rss | escape }}</span></a></li>{%- endif -%}
14
14
  </ul>
@@ -1,15 +1,15 @@
1
1
  <!DOCTYPE html>
2
2
  <html lang="{{ page.lang | default: site.lang | default: "en" }}">
3
3
 
4
- {% include head.html %}
4
+ {%- include head.html -%}
5
5
 
6
6
  <body>
7
7
 
8
- {% include sidebar.html %}
8
+ {%- include sidebar.html -%}
9
9
 
10
10
  <div class="main-wrapper">
11
11
 
12
- {% include header.html %}
12
+ {%- include header.html -%}
13
13
 
14
14
  <main class="page-content" aria-label="Content">
15
15
  <div class="wrapper">
@@ -17,10 +17,63 @@
17
17
  </div>
18
18
  </main>
19
19
 
20
- {% include footer.html %}
21
-
20
+ {%- include footer.html -%}
21
+
22
22
  </div>
23
23
 
24
+ <script>
25
+ (function() {
26
+
27
+ var postList = document.getElementById('post-list');
28
+ var activePost = postList.getElementsByClassName('active')[0];
29
+
30
+ var post = document.getElementsByClassName('post-content')[0];
31
+
32
+ var headings = [];
33
+
34
+ var tag_names = {
35
+ h1:1,
36
+ h2:1,
37
+ h3:1,
38
+ h4:1,
39
+ h5:1,
40
+ h6:1
41
+ };
42
+
43
+ function walk(root) {
44
+ if (root.nodeType === 1 && root.nodeName !== 'script') {
45
+ if (tag_names.hasOwnProperty(root.nodeName.toLowerCase())) {
46
+ headings.push(root);
47
+ } else {
48
+ for (var i = 0; i < root.childNodes.length; i++) {
49
+ walk(root.childNodes[i]);
50
+ }
51
+ }
52
+ }
53
+ }
54
+
55
+ walk(post);
56
+
57
+ if (headings.length > 0) {
58
+ var ul = document.createElement("ul");
59
+ ul.classList.add("sidebar-headings")
60
+ activePost.appendChild(ul);
61
+
62
+ for (var i=0, max=headings.length; i < max; i++) {
63
+ var li = document.createElement("li");
64
+ li.classList.add("sidebar-" + headings[i].tagName.toLowerCase());
65
+ var a = document.createElement("a");
66
+ var aText = document.createTextNode(headings[i].innerText);
67
+ a.appendChild(aText);
68
+ a.href = "#" + headings[i].id;
69
+ li.appendChild(a);
70
+ ul.appendChild(li);
71
+ }
72
+ }
73
+
74
+ })();
75
+ </script>
76
+
24
77
  </body>
25
78
 
26
79
  </html>
@@ -3,32 +3,32 @@ layout: default
3
3
  ---
4
4
 
5
5
  <div class="home">
6
- {% if page.title %}
6
+ {%- if page.title -%}
7
7
  <h1 class="page-heading">{{ page.title }}</h1>
8
- {% endif %}
8
+ {%- endif -%}
9
9
 
10
10
  {{ content }}
11
11
 
12
12
  {% if site.posts.size > 0 %}
13
13
  <h2 class="post-list-heading">{{ page.list_title | default: "" }}</h2>
14
14
  <ul class="post-list">
15
- {% for post in site.posts %}
15
+ {%- for post in site.posts -%}
16
16
  <li>
17
- {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
17
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
18
18
  <span class="post-meta">{{ post.date | date: date_format }}</span>
19
19
  <h3>
20
20
  <a class="post-link" href="{{ post.url | relative_url }}">
21
21
  {{ post.title | escape }}
22
22
  </a>
23
23
  </h3>
24
- {% if site.show_excerpts %}
24
+ {%- if site.show_excerpts -%}
25
25
  {{ post.excerpt }}
26
- {% endif %}
26
+ {%- endif -%}
27
27
  </li>
28
- {% endfor %}
28
+ {%- endfor -%}
29
29
  </ul>
30
30
 
31
31
  <p class="rss-subscribe">subscribe <a href="{{ "/feed.xml" | relative_url }}">via RSS</a></p>
32
- {% endif %}
32
+ {%- endif -%}
33
33
 
34
34
  </div>
@@ -8,7 +8,7 @@ layout: default
8
8
  <span itemprop="author" itemscope itemtype="http://schema.org/Person"><span class="p-author h-card" itemprop="name">
9
9
  {% if page.author %}{{ page.author }}{% else %}{{ site.author }}{% endif %}</span></span>
10
10
  <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
11
- {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
11
+ {%- assign date_format = site.minima.date_format | default: "%b %-d, %Y" -%}
12
12
  {{ page.date | date: date_format }}
13
13
  </time>
14
14
  </p>
@@ -19,9 +19,9 @@ layout: default
19
19
  {{ content }}
20
20
  </div>
21
21
 
22
- {% if site.disqus.shortname %}
23
- {% include disqus_comments.html %}
24
- {% endif %}
22
+ {%- if site.disqus.shortname -%}
23
+ {%- include disqus_comments.html -%}
24
+ {%- endif -%}
25
25
 
26
26
  <a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
27
27
  </article>
@@ -24,6 +24,10 @@
24
24
  &:visited {
25
25
  color: $grey-color-dark;
26
26
  }
27
+
28
+ @include media-query($on-palm) {
29
+ @include relative-font-size(2.5);
30
+ }
27
31
  }
28
32
 
29
33
  .site-nav {
@@ -289,6 +293,8 @@
289
293
  width: 300px;
290
294
  position: fixed;
291
295
  background-color: #171A2F;
296
+ overflow-x: hidden;
297
+ overflow-y: hidden;
292
298
 
293
299
  @include media-query($on-palm) {
294
300
  height: 50px;
@@ -297,6 +303,14 @@
297
303
  top: 0;
298
304
  }
299
305
 
306
+ .no-scroll-bar {
307
+ width: 320px;
308
+ padding-right: 20px;
309
+ overflow-x: hidden;
310
+ overflow-y: scroll;
311
+ height: 100%;
312
+ }
313
+
300
314
  .sidebar-title {
301
315
  display: block;
302
316
  font-size: 100%;
@@ -315,38 +329,38 @@
315
329
  margin-left: 12px;
316
330
  }
317
331
 
318
- ul {
332
+ #post-list {
319
333
  margin-top: 20px;
320
334
  list-style: none;
321
335
  margin-left: 0;
322
336
  }
323
337
 
324
- ul li {
338
+ #post-list > li {
325
339
  line-height: 16px;
326
340
  padding: 5px 15px;
327
341
  }
328
342
 
329
- ul li:hover {
343
+ #post-list > li:hover {
330
344
  background-color: #454545;
331
345
  }
332
346
 
333
- ul li span {
347
+ #post-list > li > span {
334
348
  font-size: 70%;
335
349
  font-style: italic;
336
350
  color: #b3b3b3;
337
351
  text-decoration: none;
338
352
  }
339
353
 
340
- ul li a {
354
+ #post-list > li > a {
341
355
  display: block;
342
356
  position: relative;
343
357
  font-size: 90%;
344
358
  color: #b3b3b3;
345
- text-decoration: none;
346
359
  cursor: pointer;
360
+ text-decoration: none;
347
361
  }
348
362
 
349
- ul li.active {
363
+ #post-list > li.active {
350
364
  background-color: $background-color;
351
365
  font-weight: bold;
352
366
 
@@ -359,4 +373,52 @@
359
373
  // cursor: default;
360
374
  // }
361
375
  }
376
+
377
+ .sidebar-headings {
378
+ padding-top: 10px;
379
+ padding-bottom: 10px;
380
+ list-style: none;
381
+ margin-left: 0;
382
+
383
+ li {
384
+ font-weight: normal;
385
+ padding-top: 6px;
386
+ padding-bottom: 6px;
387
+ }
388
+
389
+ a {
390
+ cursor: pointer;
391
+ }
392
+
393
+ .sidebar-h1 {
394
+ font-size: 95%;
395
+ }
396
+
397
+ .sidebar-h2 {
398
+ font-size: 90%;
399
+ padding-left: 16px;
400
+ }
401
+
402
+ .sidebar-h3 {
403
+ font-size: 85%;
404
+ padding-left: 32px;
405
+ }
406
+
407
+ .sidebar-h4 {
408
+ font-size: 80%;
409
+ padding-left: 48px;
410
+ }
411
+
412
+ .sidebar-h5 {
413
+ font-size: 75%;
414
+ padding-left: 64px;
415
+ }
416
+
417
+ .sidebar-h6 {
418
+ font-size: 70%;
419
+ padding-left: 80px;
420
+ }
421
+ }
422
+
423
+
362
424
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-readthedocs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Timothée Mazzucotelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-14 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.9'
33
+ version: '0.11'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0.9'
40
+ version: '0.11'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: jekyll-seo-tag
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.1'
47
+ version: '2.5'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '2.1'
54
+ version: '2.5'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -68,7 +68,7 @@ dependencies:
68
68
  version: '1.15'
69
69
  description:
70
70
  email:
71
- - timothee.mazzucotelli@gmail.com
71
+ - timothee.mazzucotelli@pm.me
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
@@ -95,7 +95,7 @@ files:
95
95
  - assets/main.scss
96
96
  - assets/minima-social-icons.svg
97
97
  - assets/search.json
98
- homepage: https://github.com/Pawamoy/jekyll-readthedocs
98
+ homepage: https://github.com/pawamoy/jekyll-readthedocs
99
99
  licenses:
100
100
  - MIT
101
101
  metadata:
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  version: '0'
117
117
  requirements: []
118
118
  rubyforge_project:
119
- rubygems_version: 2.6.8
119
+ rubygems_version: 2.7.6
120
120
  signing_key:
121
121
  specification_version: 4
122
122
  summary: A ReadTheDocs theme based on minima.