jekyll-rtd-theme 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -0
  3. data/_includes/class/_breadcrumbs.liquid +1 -1
  4. data/_includes/class/_footer.liquid +11 -9
  5. data/_includes/node/links.liquid +2 -2
  6. data/_includes/node/script.extension.liquid +1 -1
  7. data/_includes/node/script.liquid +2 -2
  8. data/_includes/reset/content.liquid +1 -0
  9. data/_includes/reset/variables.liquid +3 -2
  10. data/_includes/reset/version.liquid +1 -1
  11. data/_layouts/default.liquid +1 -1
  12. data/_layouts/plugins/compress.liquid +1 -1
  13. data/_layouts/plugins/{extension.liquid → shortcodes.liquid} +1 -1
  14. data/_sass/_direction.scss +92 -0
  15. data/_sass/_layout.scss +4 -3
  16. data/_sass/_variables.scss +1 -0
  17. data/_sass/class/markdown-body.scss +5 -3
  18. data/_sass/lib/@primer/css/base/README.md +24 -0
  19. data/_sass/{@primer → lib/@primer}/css/base/base.scss +0 -0
  20. data/_sass/{@primer → lib/@primer}/css/base/index.scss +0 -0
  21. data/_sass/{@primer → lib/@primer}/css/base/kbd.scss +0 -0
  22. data/_sass/{@primer → lib/@primer}/css/base/normalize.scss +1 -0
  23. data/_sass/{@primer → lib/@primer}/css/base/typography-base.scss +0 -0
  24. data/_sass/lib/@primer/css/breadcrumb/README.md +24 -0
  25. data/_sass/{@primer → lib/@primer}/css/breadcrumb/breadcrumb.scss +0 -0
  26. data/_sass/{@primer → lib/@primer}/css/breadcrumb/index.scss +0 -0
  27. data/_sass/lib/@primer/css/buttons/README.md +24 -0
  28. data/_sass/{@primer → lib/@primer}/css/buttons/button-group.scss +0 -0
  29. data/_sass/{@primer → lib/@primer}/css/buttons/button.scss +0 -0
  30. data/_sass/{@primer → lib/@primer}/css/buttons/index.scss +0 -0
  31. data/_sass/{@primer → lib/@primer}/css/buttons/misc.scss +0 -0
  32. data/_sass/lib/@primer/css/forms/README.md +24 -0
  33. data/_sass/{@primer → lib/@primer}/css/forms/form-control.scss +0 -0
  34. data/_sass/{@primer → lib/@primer}/css/forms/form-group.scss +0 -0
  35. data/_sass/{@primer → lib/@primer}/css/forms/form-select.scss +0 -0
  36. data/_sass/{@primer → lib/@primer}/css/forms/form-validation.scss +0 -0
  37. data/_sass/{@primer → lib/@primer}/css/forms/index.scss +0 -0
  38. data/_sass/{@primer → lib/@primer}/css/forms/input-group.scss +0 -0
  39. data/_sass/{@primer → lib/@primer}/css/forms/radio-group.scss +0 -0
  40. data/_sass/lib/@primer/css/loaders/README.md +24 -0
  41. data/_sass/{@primer → lib/@primer}/css/loaders/index.scss +0 -0
  42. data/_sass/{@primer → lib/@primer}/css/loaders/loaders.scss +0 -0
  43. data/_sass/lib/@primer/css/markdown/README.md +24 -0
  44. data/_sass/{@primer → lib/@primer}/css/markdown/blob-csv.scss +0 -0
  45. data/_sass/{@primer → lib/@primer}/css/markdown/code.scss +0 -0
  46. data/_sass/{@primer → lib/@primer}/css/markdown/headings.scss +0 -0
  47. data/_sass/{@primer → lib/@primer}/css/markdown/images.scss +0 -0
  48. data/_sass/{@primer → lib/@primer}/css/markdown/index.scss +0 -0
  49. data/_sass/{@primer → lib/@primer}/css/markdown/lists.scss +0 -0
  50. data/_sass/{@primer → lib/@primer}/css/markdown/markdown-body.scss +0 -0
  51. data/_sass/{@primer → lib/@primer}/css/markdown/tables.scss +0 -0
  52. data/_sass/lib/@primer/css/support/README.md +24 -0
  53. data/_sass/{@primer → lib/@primer}/css/support/index.scss +0 -0
  54. data/_sass/{@primer → lib/@primer}/css/support/mixins/buttons.scss +0 -0
  55. data/_sass/{@primer → lib/@primer}/css/support/mixins/layout.scss +0 -0
  56. data/_sass/{@primer → lib/@primer}/css/support/mixins/misc.scss +0 -0
  57. data/_sass/{@primer → lib/@primer}/css/support/mixins/typography.scss +0 -0
  58. data/_sass/{@primer → lib/@primer}/css/support/variables/color-system.scss +0 -0
  59. data/_sass/{@primer → lib/@primer}/css/support/variables/colors.scss +0 -0
  60. data/_sass/{@primer → lib/@primer}/css/support/variables/layout.scss +0 -0
  61. data/_sass/{@primer → lib/@primer}/css/support/variables/misc.scss +0 -0
  62. data/_sass/{@primer → lib/@primer}/css/support/variables/typography.scss +0 -0
  63. data/_sass/lib/@primer/css/utilities/README.md +24 -0
  64. data/_sass/{@primer → lib/@primer}/css/utilities/animations.scss +0 -0
  65. data/_sass/{@primer → lib/@primer}/css/utilities/borders.scss +0 -0
  66. data/_sass/{@primer → lib/@primer}/css/utilities/box-shadow.scss +0 -0
  67. data/_sass/{@primer → lib/@primer}/css/utilities/colors.scss +0 -0
  68. data/_sass/{@primer → lib/@primer}/css/utilities/details.scss +0 -0
  69. data/_sass/{@primer → lib/@primer}/css/utilities/flexbox.scss +0 -0
  70. data/_sass/{@primer → lib/@primer}/css/utilities/index.scss +0 -0
  71. data/_sass/{@primer → lib/@primer}/css/utilities/layout.scss +0 -0
  72. data/_sass/{@primer → lib/@primer}/css/utilities/margin.scss +0 -0
  73. data/_sass/{@primer → lib/@primer}/css/utilities/padding.scss +0 -0
  74. data/_sass/{@primer → lib/@primer}/css/utilities/typography.scss +0 -0
  75. data/_sass/{@primer → lib/@primer}/css/utilities/visibility-display.scss +0 -0
  76. data/_sass/{font-awesome → lib/font-awesome}/_icons.scss +0 -0
  77. data/_sass/{font-awesome → lib/font-awesome}/_variables.scss +0 -0
  78. data/_sass/{material-design-lite → lib/material-design-lite}/_color-definitions.scss +0 -0
  79. data/_sass/{material-design-lite → lib/material-design-lite}/_functions.scss +0 -0
  80. data/_sass/{material-design-lite → lib/material-design-lite}/_mixins.scss +0 -0
  81. data/_sass/{material-design-lite → lib/material-design-lite}/_variables.scss +0 -0
  82. data/_sass/{rouge → lib/rouge}/github.scss +0 -0
  83. data/_sass/theme.scss +16 -13
  84. data/assets/css/theme.min.css +1 -1
  85. data/assets/images/apple-touch-icon-300x300.jpg +0 -0
  86. metadata +70 -61
  87. data/assets/images/apple-touch-icon-300x300.png +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27952ad7046e08fda88fe995c96373c80d617b307149f8df95f25d0cede8cb16
4
- data.tar.gz: 2edb77830307abdd39a0ea26feeaa82051042f3ff053d2fd21e28ba43e2d8a12
3
+ metadata.gz: c1d81c4e4bca30f30060d2ff431ec4bd788637fe6e4194838a06e8fb1554859a
4
+ data.tar.gz: e83a3adaaabd7968459adffe41e74c4264d9695e61134855456384fb7807f231
5
5
  SHA512:
6
- metadata.gz: 4a1fa3733360b4df42bc458dbdc59716bb84d4b3fc02f57beb534d5117467a99ba8180294bd489c6497f4aca7b030316af291210c4d81ca71231b0ad90489689
7
- data.tar.gz: e4e09798ff5a31039a20027b947f6f59b556fb91712510061bcd501a7b94a6fc24b926f9ad22ad24cbf5d340ee77834227494ae72f08728550b7a4840887b0be
6
+ metadata.gz: 2a83835f2e9a9a729cbb0afc39495208a66903597156586356471419dbfe537b969f381ca6a980ac8ca752ccdf4ac2aaf516bcb15667b5c84643522ead8483e7
7
+ data.tar.gz: 35cbfe025b744d57243941837d2732667fad23e79da865cc5003fb4c0472a35d7aaac0a5974a7697b78ac761ca550b47de3fc0036dc148bc9a0507cd31081657
data/README.md CHANGED
@@ -38,6 +38,8 @@ readme_index:
38
38
  with_frontmatter: true
39
39
 
40
40
  ## optional settings ##
41
+ direction: # default: auto, syntax: [ltr|rtl]
42
+
41
43
  meta:
42
44
  key1: value1
43
45
  key2: value2
@@ -65,6 +67,8 @@ translate:
65
67
  warning:
66
68
  # 404
67
69
  not_found:
70
+ # copyright
71
+ revision:
68
72
  # search
69
73
  searching:
70
74
  search:
@@ -1,7 +1,7 @@
1
1
  <div class="navigation-top d-flex flex-justify-between">
2
2
  <ul class="breadcrumb" role="navigation" aria-label="breadcrumbs navigation">
3
3
  <li class="breadcrumb-item">
4
- <a class="no-underline" href="{{ site.baseurl }}/">
4
+ <a class="no-underline" href="{{ site.baseurl }}/" title="{{ docs.source.path }}">
5
5
  <i class="fa fa-home"></i>
6
6
  </a>
7
7
  </li>
@@ -24,18 +24,20 @@
24
24
 
25
25
  <div class="copyright text-center text-gray" role="contentinfo">
26
26
  <i class="fa fa-copyright"></i>
27
- {%- assign created_time = rest_created_at | date: "%Y" -%}
28
- {%- assign updated_time = rest_updated_at | date: "%Y" -%}
29
- {%- if created_time == updated_time -%}
30
- {{ created_time }},
31
- {%- else -%}
32
- {{ created_time }}-{{ updated_time }},
33
- {%- endif %}
27
+ <span class="time">
28
+ {%- assign created_time = rest_created_at | date: "%Y" -%}
29
+ {%- assign updated_time = rest_updated_at | date: "%Y" -%}
30
+ {%- if created_time == updated_time -%}
31
+ {{- created_time -}},
32
+ {%- else -%}
33
+ {{- created_time }}-{{ updated_time -}},
34
+ {%- endif -%}
35
+ </span>
34
36
  <a class="text-gray" href="{{ docs.owner_url }}" target="_blank">
35
- {{ author }}
37
+ {{- author -}}
36
38
  </a>
37
39
  {{ __.revision | default: "Revision" }}
38
40
  <a class="text-gray" href="{{ docs.repository_url }}/commit/{{ docs.build_revision }}" title="{{ docs.build_revision }}" target="_blank">
39
- {{ docs.build_revision | slice: 0, 7 }}
41
+ {{- docs.build_revision | slice: 0, 7 -}}
40
42
  </a>
41
43
  </div>
@@ -14,7 +14,7 @@
14
14
  {%- endif -%}
15
15
 
16
16
  {% comment %} theme {% endcomment %}
17
- <link rel="stylesheet" href="{{ cdn }}/assets/css/theme{% if site.debug.dist != false %}.min{% endif %}.css">
17
+ <link rel="stylesheet" href="{{ base }}/assets/css/theme{% if site.debug.dist != false %}.min{% endif %}.css">
18
18
 
19
19
  {%- if custom_scss.size > 0 -%}
20
20
  <style>{{ custom_scss | scssify | strip_newlines }}</style>
@@ -30,4 +30,4 @@
30
30
  <link rel="mask-icon" href="{{ site.baseurl }}/assets/images/favicon.svg" color="#2980b9">
31
31
 
32
32
  {% comment %} apple-touch-icon {% endcomment %}
33
- <link rel="apple-touch-icon" href="{{ site.baseurl }}/assets/images/apple-touch-icon-300x300.png">
33
+ <link rel="apple-touch-icon" href="{{ site.baseurl }}/assets/images/apple-touch-icon-300x300.jpg">
@@ -3,7 +3,7 @@
3
3
  {%- if site.mermaid.custom -%}
4
4
  <script src="{{ site.mermaid.custom }}"></script>
5
5
  {%- else -%}
6
- <script src="{{ cdn }}/assets/js/mermaid.min.js"></script>
6
+ <script src="{{ base }}/assets/js/mermaid.min.js"></script>
7
7
  {%- endif %}
8
8
  <script>
9
9
  mermaid.initialize({% if site.mermaid.initialize %}{{ site.mermaid.initialize | jsonify }}{% else %}{}{% endif %});
@@ -10,10 +10,10 @@
10
10
  }
11
11
  };
12
12
  </script>
13
- <script src="{{ cdn }}/assets/js/jquery.min.js"></script>
13
+ <script src="{{ base }}/assets/js/jquery.min.js"></script>
14
14
 
15
15
  {%- if custom_script.size > 0 -%}
16
16
  <script>{{ custom_script }}</script>
17
17
  {%- endif -%}
18
18
 
19
- <script src="{{ cdn }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
19
+ <script src="{{ base }}/assets/js/theme{% if site.debug.dist != false %}.min{% endif %}.js"></script>
@@ -2,4 +2,5 @@
2
2
  | replace: "’", "'"
3
3
  | replace: "“", '"'
4
4
  | replace: "”", '"'
5
+ | replace: "<script", '<script async'
5
6
  | replace: "highlighter-rouge", "highlighter-rouge notranslate" -%}
@@ -6,6 +6,7 @@
6
6
  {%- assign rest_created_at = rest.created_at | default: site.time -%}
7
7
  {%- assign rest_updated_at = rest.updated_at | default: site.time -%}
8
8
 
9
+ {%- assign direction = site.direction | default: "auto" -%}
9
10
  {%- assign lang = site.lang | default: "en" -%}
10
11
  {%- assign author = docs.owner.name | default: docs.owner_name -%}
11
12
 
@@ -16,9 +17,9 @@
16
17
 
17
18
  {% comment %} debug {% endcomment %}
18
19
  {%- if site.debug -%}
19
- {%- assign cdn = site.baseurl -%}
20
+ {%- assign base = site.baseurl -%}
20
21
  {%- else -%}
21
- {%- assign cdn = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
22
+ {%- assign base = "https://cdn.jsdelivr.net/gh/rundocs/jekyll-rtd-theme@" | append: version -%}
22
23
  {%- endif -%}
23
24
 
24
25
  {% comment %} custom {% endcomment %}
@@ -1 +1 @@
1
- {%- assign version = "2.0.6" -%}
1
+ {%- assign version = "2.0.7" -%}
@@ -5,7 +5,7 @@ layout: plugins/compress
5
5
  {%- include reset/defaults.liquid -%}
6
6
 
7
7
  <!DOCTYPE html>
8
- <html lang="{{ lang }}">
8
+ <html lang="{{ lang }}" dir="{{ direction }}">
9
9
  <head>
10
10
  {%- include node/metadata.liquid -%}
11
11
 
@@ -1,5 +1,5 @@
1
1
  ---
2
- layout: plugins/extension
2
+ layout: plugins/shortcodes
3
3
  ---
4
4
 
5
5
  {%- if site.debug.compress == false -%}
@@ -2,7 +2,7 @@
2
2
 
3
3
  {%- assign shortcodes = "mermaid, warning, note, tip, danger" | split: ", " -%}
4
4
 
5
- {%- if site.debug.extension == false -%}
5
+ {%- if site.debug.shortcodes == false -%}
6
6
  {{ content }}
7
7
  {%- else -%}
8
8
  {%- if content contains "<pre" -%}
@@ -0,0 +1,92 @@
1
+ html[dir="rtl"] {
2
+ // common
3
+ ul,
4
+ ol {
5
+ padding-right: 0;
6
+ }
7
+
8
+ dd {
9
+ margin-right: 0;
10
+ }
11
+
12
+ // layout
13
+ .menu-sm {
14
+ left: unset;
15
+ right: -$theme-menu-width-sm;
16
+
17
+ &.shift {
18
+ left: unset;
19
+ right: 0;
20
+ }
21
+ }
22
+ .content-wrap {
23
+ &.shift {
24
+ left: unset;
25
+ right: $theme-menu-width-sm;
26
+ }
27
+ }
28
+
29
+ @include breakpoint(md) {
30
+ .menu-md {
31
+ left: unset;
32
+ right: 0;
33
+ }
34
+
35
+ .content-wrap {
36
+ margin-left: unset;
37
+ margin-right: $theme-menu-width;
38
+
39
+ &.shift {
40
+ left: unset;
41
+ right: 0;
42
+ }
43
+ }
44
+ }
45
+
46
+ // toctree
47
+ .toctree {
48
+ .fa {
49
+ margin-right: unset;
50
+ margin-left: 2px;
51
+ }
52
+ > ul {
53
+ // the first level links
54
+ > .toc > a {
55
+ padding-left: unset;
56
+ padding-right: $spacer-4 / 2;
57
+ }
58
+ }
59
+ }
60
+
61
+ // toc layout
62
+ .toc {
63
+ @for $level from 1 through 11 {
64
+ &.level-#{$level}.current {
65
+ > a {
66
+ padding-left: unset;
67
+ padding-right: $spacer-4 * ($level - 1 + 0.5);
68
+ }
69
+
70
+ .level-#{$level + 1} > a {
71
+ padding-left: unset;
72
+ padding-right: $spacer-4 * ($level + 0.5);
73
+ }
74
+ }
75
+ }
76
+ }
77
+ // markdown-body
78
+ .markdown-body {
79
+ .d-lang {
80
+ &:after {
81
+ right: unset;
82
+ left: 0;
83
+ }
84
+ }
85
+
86
+ // improved checkbox
87
+ .task-list-item-checkbox {
88
+ margin-right: unset;
89
+ margin-left: 3px;
90
+ }
91
+ }
92
+ }
@@ -1,8 +1,8 @@
1
1
  .menu-sm {
2
2
  position: fixed;
3
3
  bottom: 0;
4
- left: -85%;
5
- width: 85%;
4
+ left: -$theme-menu-width-sm;
5
+ width: $theme-menu-width-sm;
6
6
  max-height: 100%;
7
7
 
8
8
  &.shift {
@@ -29,7 +29,7 @@
29
29
  position: fixed;
30
30
  top: 0;
31
31
  bottom: 0;
32
- left: 85%;
32
+ left: $theme-menu-width-sm;
33
33
  min-width: 100%;
34
34
  }
35
35
  }
@@ -44,6 +44,7 @@
44
44
  @extend .menu-md;
45
45
 
46
46
  .sidebar {
47
+ // 20px for scroll
47
48
  width: $theme-menu-width + 20px;
48
49
 
49
50
  .header,
@@ -31,6 +31,7 @@ $theme-mask-white: transparentize($theme-white, 0.9);
31
31
  $theme-mask-black: transparentize($theme-black, 0.9);
32
32
 
33
33
  // theme menu
34
+ $theme-menu-width-sm: 85%;
34
35
  $theme-menu-width: 300px;
35
36
  $theme-menu-background: darken($theme-black, 10%);
36
37
  $theme-menu-active-background: darken($theme-blue, 15%);
@@ -1,5 +1,5 @@
1
1
  .markdown-body {
2
- @mixin d-lang() {
2
+ .d-lang {
3
3
  position: relative;
4
4
 
5
5
  &:after {
@@ -55,6 +55,8 @@
55
55
  float: none;
56
56
  padding-right: 0;
57
57
  margin-left: 3px;
58
+ // rtl
59
+ margin-right: 3px;
58
60
  }
59
61
 
60
62
  // improved
@@ -80,7 +82,7 @@
80
82
  }
81
83
 
82
84
  div.highlighter-rouge {
83
- @include d-lang();
85
+ @extend .d-lang;
84
86
  }
85
87
 
86
88
  // search
@@ -101,7 +103,7 @@
101
103
  font-size: $font-size-small;
102
104
  font-family: $mono-font;
103
105
  white-space: pre;
104
- @include d-lang();
106
+ @extend .d-lang;
105
107
  // mdl
106
108
  @include shadow-2dp();
107
109
  }
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "base"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `base` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/base/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/base.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) &copy; [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -1,4 +1,5 @@
1
1
  // stylelint-disable
2
+ /*! normalize.css v4.1.1 | MIT License | github.com/necolas/normalize.css */
2
3
 
3
4
  /**
4
5
  * 1. Change the default font family in all browsers (opinionated).
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "breadcrumb"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `breadcrumb` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/breadcrumb/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/breadcrumb.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) &copy; [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "buttons"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `buttons` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/buttons/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/buttons.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) &copy; [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss
@@ -0,0 +1,24 @@
1
+ ---
2
+ bundle: "forms"
3
+ generated: true
4
+ ---
5
+
6
+ # Primer CSS: `forms` bundle
7
+
8
+ ## Usage
9
+
10
+ Primer CSS source files are written in [SCSS]. To include this Primer CSS module in your own build, ensure that your `node_modules` directory is listed in your Sass include paths, then import it with:
11
+
12
+ ```scss
13
+ @import "@primer/css/forms/index.scss";
14
+ ```
15
+
16
+ ## Build
17
+
18
+ The `@primer/css` npm package includes a standalone CSS build of this module in `dist/forms.css`.
19
+
20
+ ## License
21
+
22
+ [MIT](https://github.com/primer/css/blob/master/LICENSE) &copy; [GitHub](https://github.com/)
23
+
24
+ [scss]: https://sass-lang.com/documentation/syntax#scss