jekyll-rtd-theme 0.1.2 → 0.1.4

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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +13 -12
  3. data/_includes/reset/snippets.liquid +11 -3
  4. data/_includes/reset/variables.liquid +9 -3
  5. data/_includes/reset/version.spec +1 -0
  6. data/_includes/versions.liquid +3 -3
  7. data/_layouts/default.liquid +5 -9
  8. data/_layouts/plugins/compress.liquid +1 -1
  9. data/_sass/rougify/base16.dark.scss +78 -0
  10. data/_sass/rougify/base16.light.scss +77 -0
  11. data/_sass/rougify/base16.monokai.dark.scss +78 -0
  12. data/_sass/rougify/base16.monokai.light.scss +77 -0
  13. data/_sass/rougify/base16.monokai.scss +78 -0
  14. data/_sass/rougify/base16.scss +77 -0
  15. data/_sass/rougify/base16.solarized.dark.scss +78 -0
  16. data/_sass/rougify/base16.solarized.light.scss +77 -0
  17. data/_sass/rougify/base16.solarized.scss +77 -0
  18. data/_sass/rougify/bw.scss +63 -0
  19. data/_sass/rougify/colorful.scss +170 -0
  20. data/_sass/rougify/github.scss +209 -0
  21. data/_sass/rougify/gruvbox.dark.scss +84 -0
  22. data/_sass/rougify/gruvbox.light.scss +84 -0
  23. data/_sass/rougify/gruvbox.scss +84 -0
  24. data/_sass/rougify/igorpro.scss +32 -0
  25. data/_sass/rougify/magritte.scss +167 -0
  26. data/_sass/rougify/molokai.scss +208 -0
  27. data/_sass/rougify/monokai.scss +210 -0
  28. data/_sass/rougify/monokai.sublime.scss +198 -0
  29. data/_sass/rougify/pastie.scss +146 -0
  30. data/_sass/rougify/thankful_eyes.scss +172 -0
  31. data/_sass/rougify/tulip.scss +163 -0
  32. data/assets/css/fonts/Roboto-Slab-Bold.woff +0 -0
  33. data/assets/css/fonts/Roboto-Slab-Bold.woff2 +0 -0
  34. data/assets/css/fonts/Roboto-Slab-Regular.woff +0 -0
  35. data/assets/css/fonts/Roboto-Slab-Regular.woff2 +0 -0
  36. data/assets/css/fonts/fontawesome-webfont.eot +0 -0
  37. data/assets/css/fonts/fontawesome-webfont.svg +2671 -0
  38. data/assets/css/fonts/fontawesome-webfont.ttf +0 -0
  39. data/assets/css/fonts/fontawesome-webfont.woff +0 -0
  40. data/assets/css/fonts/fontawesome-webfont.woff2 +0 -0
  41. data/assets/css/fonts/lato-bold-italic.woff +0 -0
  42. data/assets/css/fonts/lato-bold-italic.woff2 +0 -0
  43. data/assets/css/fonts/lato-bold.woff +0 -0
  44. data/assets/css/fonts/lato-bold.woff2 +0 -0
  45. data/assets/css/fonts/lato-normal-italic.woff +0 -0
  46. data/assets/css/fonts/lato-normal-italic.woff2 +0 -0
  47. data/assets/css/fonts/lato-normal.woff +0 -0
  48. data/assets/css/fonts/lato-normal.woff2 +0 -0
  49. data/assets/css/theme.css +4 -0
  50. data/assets/js/jquery.min.js +2 -0
  51. data/assets/js/theme.js +1 -0
  52. metadata +45 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d728e9dd369e1b9eb77dafc805c93c0be0df3f261ff0e2da35e392ba392e0c22
4
- data.tar.gz: 488693e13df30b47b639bef32bf20c72407a0524c2ad5c285b983b0de20fc908
3
+ metadata.gz: fa084e105e7f1f43d2b77108d40d1473e042f6ee494ab82bfa8db1e44d539cb1
4
+ data.tar.gz: 7c0d27c7853e7db2a4549ff1c025a6ced6ef6bf94e57091b6cf4fb7cfa330aba
5
5
  SHA512:
6
- metadata.gz: f947fe21c94458a4ffaa47159f90e606e14596b95edb3063f98fa0a00f51416d03b372f53b1a4dba1e8708129913d8792c8b3429477a263105a418cd49768cfa
7
- data.tar.gz: f094f2fff9cb6d9adc0184997d7bd07273e623dbf2a0ca80848faf7b9f13a997cc8f78a2e04ee8c095ac12bfa00723c01bdfc34033b9ca4b60fc2d33755cc358
6
+ metadata.gz: e00ecb7d30ded86e7fe26ca2d9c1c787e4f083dae1d64d4ea80cb4e4b564ac1e8f1e94bf6872e2db837867f9168a3427508cb929089624aaef10983e0048c17b
7
+ data.tar.gz: 0f329d07378034bf7787d77a7d3c334634a06e8d4c1e085a818fca81e8db9713bea1cb53b127bb28011d65e247e6b9fb030e540e0744f7ca7b66c5c030c0bc04
data/README.md CHANGED
@@ -1,37 +1,38 @@
1
1
  # jekyll-rtd-theme
2
- ![gh-pages](https://github.com/rundocs/jekyll-rtd-theme/workflows/gh-pages/badge.svg)
3
- [![Gem Version](https://img.shields.io/gem/v/jekyll-rtd-theme)][gem]
4
- [![Gem Downloads](https://img.shields.io/gem/dt/jekyll-rtd-theme)][gem]
5
- [![Users](https://img.shields.io/endpoint?url=https://rundocs-analytics.glitch.me/shields)](https://github.com/rundocs/analytics)
6
- [![Jsdelivr hits](https://data.jsdelivr.com/v1/package/gh/rundocs/static/badge)](https://cdn.jsdelivr.net/gh/rundocs/static/)
7
- [![CodeFactor](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme)
2
+ [![](https://github.com/rundocs/jekyll-rtd-theme/workflows/gh-pages/badge.svg)](https://github.com/rundocs/jekyll-rtd-theme)
3
+ [![](https://img.shields.io/gem/v/jekyll-rtd-theme)][gem]
4
+ [![](https://img.shields.io/gem/dt/jekyll-rtd-theme)][gem]
5
+ [![](https://data.jsdelivr.com/v1/package/gh/rundocs/jekyll-rtd-theme/badge)](https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme/)
6
+ [![](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme/badge)](https://www.codefactor.io/repository/github/rundocs/jekyll-rtd-theme)
8
7
 
9
8
  Just another Jekyll theme for GitHub Pages based on ReadtheDocs's sphinx_rtd_theme styles
10
9
 
11
10
  ## Installation
12
- There are two ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible)
11
+ There are three ways to install: as a gem-based theme, as a remote theme (GitHub Pages compatible), use template
13
12
 
14
13
  #### Gem-based method
15
- 1. Add the following to your github repository's `Gemfile`
14
+ 1. Add the following to your site's `Gemfile`
16
15
  ```ruby
17
16
  source "https://rubygems.org"
18
-
19
17
  gem "jekyll-rtd-theme"
20
-
21
18
  gem "github-pages", group: :jekyll_plugins
22
19
  ```
23
- 2. Add the following to your github repository's `_config.yml`
20
+ 2. Add the following to your site's `_config.yml`
24
21
  ```yml
25
22
  theme: jekyll-rtd-theme
23
+ title: Your awesome title
24
+ description: Write an awesome description for your new site here
26
25
  ```
27
26
 
28
27
  #### Remote theme method
29
- 1. Add the following to your site's `_config.yml`
28
+ 1. Add the following to your github repository's `_config.yml`
30
29
  ```yml
31
30
  remote_theme: rundocs/jekyll-rtd-theme
32
31
  ```
33
32
  2. Remove any other `theme` or `remote_theme` entry
34
33
 
34
+ #### Use template
35
+ The new repository will generate with the same files and folders from [rundocs/starter](https://github.com/rundocs/starter/generate)
35
36
 
36
37
  ## Roadmap
37
38
  See the [open issues][issues] for a list of proposed features (and known issues).
@@ -1,3 +1,11 @@
1
- {%- assign site_style = '@import "style.scss";' -%}
2
- {%- assign site_fluid = '@import "fluid.scss";' -%}
3
- {%- capture site_script %}{% include assets/js/script.js %}{% endcapture -%}
1
+ {%- capture site_style -%}
2
+ @import "style.scss";
3
+ @import "rougify/{{ site.rougify | default: 'github' }}.scss";
4
+ {%- if site.fluid -%}
5
+ @import "fluid.scss";
6
+ {%- endif -%}
7
+ {%- endcapture -%}
8
+
9
+ {%- capture site_script %}
10
+ {% include assets/js/script.js %}
11
+ {%- endcapture -%}
@@ -1,9 +1,13 @@
1
1
  {%- assign description = content | strip_html | split: " " | join: " " | escape | truncate: 150 -%}
2
2
  {%- assign schema_url = page.url | absolute_url | xml_escape -%}
3
3
  {%- assign schema_lastmod = site.time | date_to_xmlschema -%}
4
- {%- assign npm = "https://cdn.jsdelivr.net/npm" -%}
5
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/static" -%}
6
- {%- assign rouge_style = site.rouge_style | default: "github" -%}
4
+ {%- capture version %}{% include reset/version.spec %}{% endcapture -%}
5
+
6
+ {%- if site.debug -%}
7
+ {%- assign cdn = site.baseurl -%}
8
+ {%- else -%}
9
+ {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version | strip -%}
10
+ {%- endif -%}
7
11
 
8
12
  {%- unless jekyll.environment == "production" -%}
9
13
  {%- assign author = site.author | default: "[author]" -%}
@@ -20,3 +24,5 @@
20
24
  {%- assign issues_url = site.github.issues_url -%}
21
25
  {%- capture github_edit_link %}{% github_edit_link %}{% endcapture -%}
22
26
  {%- endunless -%}
27
+
28
+ {%- assign addons = site.addons | default: "github, gems, analytics" -%}
@@ -0,0 +1 @@
1
+ 0.1.4
@@ -5,9 +5,9 @@
5
5
  <span class="fa fa-caret-down"></span>
6
6
  </span>
7
7
  <div class="rst-other-versions">
8
- {%- assign addons = "github,gems,analytics" | split: "," -%}
9
- {% for name in addons -%}
10
- {% include addons/source/{{ name }}.liquid %}
8
+ {%- assign items = addons | split: ", " -%}
9
+ {% for item in items -%}
10
+ {% include addons/source/{{ item }}.liquid %}
11
11
  {% endfor -%}
12
12
  <hr>
13
13
  <small>
@@ -33,18 +33,14 @@ layout: plugins/compress
33
33
  {%- endif -%}
34
34
  <link rel="canonical" href="{{ schema_url }}">
35
35
  <!-- theme -->
36
- <link rel="stylesheet" href="{{ cdn }}/css/theme.css">
37
- <link rel="stylesheet" href="{{ cdn }}/css/rouge/{{ rouge_style }}.css">
38
- <style>{{ site.style | default: site_style | scssify }}</style>
39
- {%- if site.fluid -%}
40
- <style>{{ site_fluid | scssify }}</style>
41
- {%- endif %}
36
+ <link rel="stylesheet" href="{{ cdn }}/assets/css/theme.css">
37
+ <style>{{ site_style | scssify }}</style>
42
38
  <!-- icon -->
43
39
  <link rel="icon" type="image/svg+xml" href="{{ site.baseurl }}/assets/favicon.svg">
44
40
  <!-- script -->
45
- <script src="{{ npm }}/jquery/dist/jquery.min.js"></script>
46
- <script src="{{ cdn }}/js/theme.js"></script>
47
- <script>{{ site.script | default : site_script }}</script>
41
+ <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
42
+ <script src="{{ cdn }}/assets/js/theme.js"></script>
43
+ <script>{{ site_script }}</script>
48
44
  </head>
49
45
 
50
46
  <body class="wy-body-for-nav">
@@ -1,4 +1,4 @@
1
- {%- if site.compress == false -%}
1
+ {%- if site.debug -%}
2
2
  {{ content }}
3
3
  {%- else -%}
4
4
  {%- assign items = content | split: "<pre" -%}
@@ -0,0 +1,78 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #d0d0d0;
5
+ background-color: #151515;
6
+ }
7
+ .highlight .err {
8
+ color: #151515;
9
+ background-color: #ac4142;
10
+ }
11
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
12
+ color: #505050;
13
+ }
14
+ .highlight .cp {
15
+ color: #f4bf75;
16
+ }
17
+ .highlight .nt {
18
+ color: #f4bf75;
19
+ }
20
+ .highlight .o, .highlight .ow {
21
+ color: #d0d0d0;
22
+ }
23
+ .highlight .p, .highlight .pi {
24
+ color: #d0d0d0;
25
+ }
26
+ .highlight .gi {
27
+ color: #90a959;
28
+ }
29
+ .highlight .gd {
30
+ color: #ac4142;
31
+ }
32
+ .highlight .gh {
33
+ color: #6a9fb5;
34
+ background-color: #151515;
35
+ font-weight: bold;
36
+ }
37
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
38
+ color: #aa759f;
39
+ }
40
+ .highlight .kc {
41
+ color: #d28445;
42
+ }
43
+ .highlight .kt {
44
+ color: #d28445;
45
+ }
46
+ .highlight .kd {
47
+ color: #d28445;
48
+ }
49
+ .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
+ color: #90a959;
51
+ }
52
+ .highlight .sr {
53
+ color: #75b5aa;
54
+ }
55
+ .highlight .si {
56
+ color: #8f5536;
57
+ }
58
+ .highlight .se {
59
+ color: #8f5536;
60
+ }
61
+ .highlight .nn {
62
+ color: #f4bf75;
63
+ }
64
+ .highlight .nc {
65
+ color: #f4bf75;
66
+ }
67
+ .highlight .no {
68
+ color: #f4bf75;
69
+ }
70
+ .highlight .na {
71
+ color: #6a9fb5;
72
+ }
73
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
74
+ color: #90a959;
75
+ }
76
+ .highlight .ss {
77
+ color: #90a959;
78
+ }
@@ -0,0 +1,77 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #303030;
5
+ }
6
+ .highlight .err {
7
+ color: #151515;
8
+ background-color: #ac4142;
9
+ }
10
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
11
+ color: #505050;
12
+ }
13
+ .highlight .cp {
14
+ color: #f4bf75;
15
+ }
16
+ .highlight .nt {
17
+ color: #f4bf75;
18
+ }
19
+ .highlight .o, .highlight .ow {
20
+ color: #d0d0d0;
21
+ }
22
+ .highlight .p, .highlight .pi {
23
+ color: #d0d0d0;
24
+ }
25
+ .highlight .gi {
26
+ color: #90a959;
27
+ }
28
+ .highlight .gd {
29
+ color: #ac4142;
30
+ }
31
+ .highlight .gh {
32
+ color: #6a9fb5;
33
+ background-color: #151515;
34
+ font-weight: bold;
35
+ }
36
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
37
+ color: #aa759f;
38
+ }
39
+ .highlight .kc {
40
+ color: #d28445;
41
+ }
42
+ .highlight .kt {
43
+ color: #d28445;
44
+ }
45
+ .highlight .kd {
46
+ color: #d28445;
47
+ }
48
+ .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
49
+ color: #90a959;
50
+ }
51
+ .highlight .sr {
52
+ color: #75b5aa;
53
+ }
54
+ .highlight .si {
55
+ color: #8f5536;
56
+ }
57
+ .highlight .se {
58
+ color: #8f5536;
59
+ }
60
+ .highlight .nn {
61
+ color: #f4bf75;
62
+ }
63
+ .highlight .nc {
64
+ color: #f4bf75;
65
+ }
66
+ .highlight .no {
67
+ color: #f4bf75;
68
+ }
69
+ .highlight .na {
70
+ color: #6a9fb5;
71
+ }
72
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
73
+ color: #90a959;
74
+ }
75
+ .highlight .ss {
76
+ color: #90a959;
77
+ }
@@ -0,0 +1,78 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #f8f8f2;
5
+ background-color: #272822;
6
+ }
7
+ .highlight .err {
8
+ color: #272822;
9
+ background-color: #f92672;
10
+ }
11
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
12
+ color: #75715e;
13
+ }
14
+ .highlight .cp {
15
+ color: #f4bf75;
16
+ }
17
+ .highlight .nt {
18
+ color: #f4bf75;
19
+ }
20
+ .highlight .o, .highlight .ow {
21
+ color: #f8f8f2;
22
+ }
23
+ .highlight .p, .highlight .pi {
24
+ color: #f8f8f2;
25
+ }
26
+ .highlight .gi {
27
+ color: #a6e22e;
28
+ }
29
+ .highlight .gd {
30
+ color: #f92672;
31
+ }
32
+ .highlight .gh {
33
+ color: #66d9ef;
34
+ background-color: #272822;
35
+ font-weight: bold;
36
+ }
37
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
38
+ color: #ae81ff;
39
+ }
40
+ .highlight .kc {
41
+ color: #fd971f;
42
+ }
43
+ .highlight .kt {
44
+ color: #fd971f;
45
+ }
46
+ .highlight .kd {
47
+ color: #fd971f;
48
+ }
49
+ .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
50
+ color: #a6e22e;
51
+ }
52
+ .highlight .sr {
53
+ color: #a1efe4;
54
+ }
55
+ .highlight .si {
56
+ color: #cc6633;
57
+ }
58
+ .highlight .se {
59
+ color: #cc6633;
60
+ }
61
+ .highlight .nn {
62
+ color: #f4bf75;
63
+ }
64
+ .highlight .nc {
65
+ color: #f4bf75;
66
+ }
67
+ .highlight .no {
68
+ color: #f4bf75;
69
+ }
70
+ .highlight .na {
71
+ color: #66d9ef;
72
+ }
73
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
74
+ color: #a6e22e;
75
+ }
76
+ .highlight .ss {
77
+ color: #a6e22e;
78
+ }
@@ -0,0 +1,77 @@
1
+ .highlight table td { padding: 5px; }
2
+ .highlight table pre { margin: 0; }
3
+ .highlight, .highlight .w {
4
+ color: #49483e;
5
+ }
6
+ .highlight .err {
7
+ color: #272822;
8
+ background-color: #f92672;
9
+ }
10
+ .highlight .c, .highlight .ch, .highlight .cd, .highlight .cm, .highlight .cpf, .highlight .c1, .highlight .cs {
11
+ color: #75715e;
12
+ }
13
+ .highlight .cp {
14
+ color: #f4bf75;
15
+ }
16
+ .highlight .nt {
17
+ color: #f4bf75;
18
+ }
19
+ .highlight .o, .highlight .ow {
20
+ color: #f8f8f2;
21
+ }
22
+ .highlight .p, .highlight .pi {
23
+ color: #f8f8f2;
24
+ }
25
+ .highlight .gi {
26
+ color: #a6e22e;
27
+ }
28
+ .highlight .gd {
29
+ color: #f92672;
30
+ }
31
+ .highlight .gh {
32
+ color: #66d9ef;
33
+ background-color: #272822;
34
+ font-weight: bold;
35
+ }
36
+ .highlight .k, .highlight .kn, .highlight .kp, .highlight .kr, .highlight .kv {
37
+ color: #ae81ff;
38
+ }
39
+ .highlight .kc {
40
+ color: #fd971f;
41
+ }
42
+ .highlight .kt {
43
+ color: #fd971f;
44
+ }
45
+ .highlight .kd {
46
+ color: #fd971f;
47
+ }
48
+ .highlight .s, .highlight .sa, .highlight .sb, .highlight .sc, .highlight .dl, .highlight .sd, .highlight .s2, .highlight .sh, .highlight .sx, .highlight .s1 {
49
+ color: #a6e22e;
50
+ }
51
+ .highlight .sr {
52
+ color: #a1efe4;
53
+ }
54
+ .highlight .si {
55
+ color: #cc6633;
56
+ }
57
+ .highlight .se {
58
+ color: #cc6633;
59
+ }
60
+ .highlight .nn {
61
+ color: #f4bf75;
62
+ }
63
+ .highlight .nc {
64
+ color: #f4bf75;
65
+ }
66
+ .highlight .no {
67
+ color: #f4bf75;
68
+ }
69
+ .highlight .na {
70
+ color: #66d9ef;
71
+ }
72
+ .highlight .m, .highlight .mb, .highlight .mf, .highlight .mh, .highlight .mi, .highlight .il, .highlight .mo, .highlight .mx {
73
+ color: #a6e22e;
74
+ }
75
+ .highlight .ss {
76
+ color: #a6e22e;
77
+ }