just-the-docs 0.4.0 → 0.4.1

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
2
  SHA256:
3
- metadata.gz: f6dee6001e16aa8ad53cb0e3c9129ad2297d9a3af6a602958a17de1063c17f1c
4
- data.tar.gz: b528c7f6c8940474e80607b9645077d8877d701f3d359bcbed3befd3814b17fe
3
+ metadata.gz: 440d312f6c68a86a993a1fddc2b61d1641e5fe36effd6f955d83b336028c8451
4
+ data.tar.gz: e3ad4e055424dbeee4bb32155d6bb6d6d651a81085d5af0260dd413baaaaebf3
5
5
  SHA512:
6
- metadata.gz: 9eec6b599ca82cfb750d99f703789059275730b4fd9b9775a02a5be4ba049165127ffc70832b316accdf85af8e76dfe4165257c9b26988ed0408a44720199a66
7
- data.tar.gz: ee4145089f1d1798eecf42e74ea391be7295d1b0c27e91de0a1fb61fe89bd7bdfcddc2903b60b2b3553b866dbbb0e346319bbf6e34aaeb6bdd92d6295c7303a9
6
+ metadata.gz: cc347172d6be7593580c7976001ab4246c1b5b7220257b941693317b55b751c84b4df560a0c51643b02446723f34e06c94e86d33bca9b826f2f05862ff8f6a00
7
+ data.tar.gz: 7121dda31f7ca398995f52b9e8808b5949c32788bcb5fbc71863d34cc1027b2b36bfc7cd0aae94d41c22e1c9bdfa0da1334cb66bbc7ebf487cb8c0775759f407
data/CHANGELOG.md CHANGED
@@ -16,11 +16,66 @@ The project underwent a major maintenance shift in March 2022.
16
16
  This website is built from the `HEAD` of the `main` branch of the theme repository.
17
17
 
18
18
  {: .warning }
19
- This website includes docs for some new features that are not available in `v0.4.0`!
19
+ This website includes docs for some new features that are not available in `v0.4.1`!
20
20
 
21
- Changes to `main` that are *not* in the latest release:
21
+ Code changes to `main` that are *not* in the latest release:
22
22
 
23
- - n/a
23
+ - N/A
24
+
25
+ Docs changes in `main` that are *not* in the latest release:
26
+
27
+ - N/A
28
+
29
+ ## Release v0.4.1
30
+
31
+ Hello! We hope you've been enjoying the new `v0.4.0`; we appreciate all the feedback we've gotten already! As promised, future releases will be small with simple steps to upgrade. This is one of them! `v0.4.1` is a [semver patch](https://semver.org/): it only includes bugfixes, and is fully backwards-compatible.
32
+
33
+ As always, we'd love your feedback. [Open an issue](https://github.com/just-the-docs/just-the-docs/issues) or [start a discussion](https://github.com/just-the-docs/just-the-docs/discussions) for bug reports, feature requests, and any other feedback. Thanks for continuing to use Just the Docs!
34
+
35
+ ### Using Release `v0.4.1`
36
+
37
+ Users who have not pinned the theme version will be **automatically upgraded to `v0.4.1` the next time they build their site**.
38
+
39
+ To use this release explicitly as a remote theme:
40
+
41
+ ```yml
42
+ remote_theme: just-the-docs/just-the-docs@v0.4.1
43
+ ```
44
+
45
+ To use this RC explicitly as a gem-based theme, pin the version in your `Gemfile` and re-run `bundle install` or `bundle update just-the-docs`:
46
+
47
+ ```ruby
48
+ gem "just-the-docs", "0.4.1"
49
+ ```
50
+
51
+ To use and pin a previous version of the theme, replace the `0.4.1` with the desired release tag.
52
+
53
+ ### Bugfixes
54
+
55
+ - Fixed: allow later versions of `bundler` by [@mattxwang] in [#1165]
56
+ - Fixed: AsciiDoc code block styling by [@flyx] in [#1168]
57
+ - Fixed: main content negative margin for viewports in `[$md, $nav-width + $content-width]` by [@Dima-369] in [#1177]
58
+ - Removed: unused `OneDarkJekyll` files by [@mattxwang] in [#1167]
59
+
60
+ ### Documentation
61
+
62
+ - Fixed: re-add `jekyll-github-metadata` to docs site by [@mattxwang] in [#1108]
63
+
64
+ ### New Contributors
65
+
66
+ - [@flyx] made their first contribution in [#1168]
67
+ - [@Dima-369] made their first contribution in [#1177]
68
+
69
+ [#1108]: https://github.com/just-the-docs/just-the-docs/pull/1108
70
+ [#1165]: https://github.com/just-the-docs/just-the-docs/pull/1165
71
+ [#1167]: https://github.com/just-the-docs/just-the-docs/pull/1167
72
+ [#1168]: https://github.com/just-the-docs/just-the-docs/pull/1168
73
+ [#1177]: https://github.com/just-the-docs/just-the-docs/pull/1177
74
+
75
+ [@flyx]: https://github.com/flyx
76
+ [@Dima-369]: https://github.com/Dima-369
77
+
78
+ **Full Changelog**: [https://github.com/just-the-docs/just-the-docs/compare/v0.4.0...v0.4.1](https://github.com/just-the-docs/just-the-docs/compare/v0.4.0...v0.4.1)
24
79
 
25
80
  ## Release v0.4.0
26
81
 
data/_sass/code.scss CHANGED
@@ -50,6 +50,11 @@ a:visited code {
50
50
  // Kramdown line_numbers = true: fences have a wider gutter than with Liquid?
51
51
 
52
52
  // ```[LANG]...```
53
+ // or in AsciiDoc:
54
+ //
55
+ // ----
56
+ // ...
57
+ // ----
53
58
 
54
59
  // the code may appear with 3 different types:
55
60
  // container \ case: default case, code with line number, code with html rendering
@@ -59,6 +64,7 @@ a:visited code {
59
64
  // last level: code, pre, code (optionality)
60
65
  // highlighter level: span, span, span
61
66
  // the spacing are only in the second level for case 1, 3 and in the third level for case 2
67
+ // in AsciiDoc, there is a parent container that contains optionally a title and the content.
62
68
 
63
69
  // select top level container
64
70
  div.highlighter-rouge,
@@ -111,17 +117,17 @@ figure.highlight {
111
117
  }
112
118
 
113
119
  // setting the spacing and scrollbar on the second level for the first case
114
- // remove all space on the second and thirt level
115
- div.highlighter-rouge,
116
- div.listingblock {
117
- div.highlight {
120
+ // remove all space on the second and third level
121
+ // this is a mixin to accommodate for the slightly different structures generated via Markdown vs AsciiDoc
122
+ @mixin scroll-and-spacing($code-div, $pre-select) {
123
+ #{$code-div} {
118
124
  overflow-x: auto;
119
125
  padding: $sp-3;
120
126
  margin: 0;
121
127
  border: 0;
122
128
  }
123
129
 
124
- pre.highlight,
130
+ #{$pre-select},
125
131
  code {
126
132
  padding: 0;
127
133
  margin: 0;
@@ -129,6 +135,19 @@ div.listingblock {
129
135
  }
130
136
  }
131
137
 
138
+ // for Markdown
139
+ div.highlighter-rouge {
140
+ @include scroll-and-spacing("div.highlight", "pre.highlight");
141
+ }
142
+
143
+ // for AsciiDoc. we also need to fix the margins for its parent container.
144
+ div.listingblock {
145
+ @include scroll-and-spacing("div.content", "div.content > pre");
146
+
147
+ margin-top: 0;
148
+ margin-bottom: $sp-3;
149
+ }
150
+
132
151
  // {% highlight LANG %}...{% endhighlight %},
133
152
  // {% highlight LANG linenos %}...{% endhighlight %}:
134
153
 
data/_sass/layout.scss CHANGED
@@ -29,9 +29,13 @@
29
29
  }
30
30
 
31
31
  @include mq(lg) {
32
- margin-left: calc(
33
- (100% - #{$nav-width + $content-width}) / 2 + #{$nav-width}
32
+ // stylelint-disable function-name-case
33
+ // disable for Max(), we want to use the CSS max() function
34
+ margin-left: Max(
35
+ #{$nav-width},
36
+ calc((100% - #{$nav-width + $content-width}) / 2 + #{$nav-width})
34
37
  );
38
+ // stylelint-enable function-name-case
35
39
  }
36
40
  }
37
41
 
@@ -488,7 +488,7 @@ jtd.onReady(function(){
488
488
 
489
489
  jtd.onReady(function(){
490
490
 
491
- var codeBlocks = document.querySelectorAll('div.highlighter-rouge, div.listingblock, figure.highlight');
491
+ var codeBlocks = document.querySelectorAll('div.highlighter-rouge, div.listingblock > div.content, figure.highlight');
492
492
 
493
493
  // note: the SVG svg-copied and svg-copy is only loaded as a Jekyll include if site.enable_copy_code_button is true; see _includes/icons/icons.html
494
494
  var svgCopied = '<svg viewBox="0 0 24 24" class="copy-icon"><use xlink:href="#svg-copied"></use></svg>';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
@@ -9,20 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-02-06 00:00:00.000000000 Z
12
+ date: 2023-02-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
20
  version: 2.3.5
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - "~>"
25
+ - - ">="
26
26
  - !ruby/object:Gem::Version
27
27
  version: 2.3.5
28
28
  - !ruby/object:Gem::Dependency
@@ -154,14 +154,10 @@ files:
154
154
  - _sass/utilities/_typography.scss
155
155
  - _sass/utilities/utilities.scss
156
156
  - _sass/vendor/OneDarkJekyll/LICENSE
157
- - _sass/vendor/OneDarkJekyll/README.md
158
- - _sass/vendor/OneDarkJekyll/colors.less
159
157
  - _sass/vendor/OneDarkJekyll/syntax-firewatch-green.scss
160
158
  - _sass/vendor/OneDarkJekyll/syntax-firewatch.scss
161
159
  - _sass/vendor/OneDarkJekyll/syntax-one-dark-vivid.scss
162
160
  - _sass/vendor/OneDarkJekyll/syntax-one-dark.scss
163
- - _sass/vendor/OneDarkJekyll/syntax-variables.less
164
- - _sass/vendor/OneDarkJekyll/syntax.less
165
161
  - _sass/vendor/normalize.scss/README.md
166
162
  - _sass/vendor/normalize.scss/normalize.scss
167
163
  - assets/css/just-the-docs-dark.scss
@@ -1,25 +0,0 @@
1
- # OneDarkJekyll
2
-
3
- *Use Atom's One Dark syntax colors in your Jekyll powered blog!*
4
-
5
- It's LESS file which can be compiled to a - Pygments, Rouge compatible - stylesheet from Atom editor's One Dark syntax theme (and any theme based on it, for example One Dark Vivid, Firewatch, etc.).
6
-
7
- Download the stylesheet files or compile a new one from any Atom syntax theme which based on One Dark (the variable names in `colors.less` must match with One Dark's)
8
-
9
- ## Create a new syntax stylesheet
10
-
11
- 1. `npm install -g less less-plugin-clean-css`
12
- 2. Clone this repository
13
- 3. Download the `colors.css` file from the syntax theme's repository (for example https://github.com/atom/one-dark-syntax/blob/master/styles/colors.less in case of One-Dark)
14
- 4. Put the previously downloaded file next to `syntax.less`
15
- 5. Run `lessc syntax.less syntax.css --clean-css`
16
- 6. Use the `syntax.css`
17
-
18
- It's not final and in case you find any error/improvement feel free to create a PR. :)
19
-
20
- ----
21
-
22
- # UPDATES FOR USE IN JUST-THE-DOCS:
23
-
24
- 1. Layout added in `*.css`
25
- 2. Renamed `*.css` to `*.scss`
@@ -1,30 +0,0 @@
1
- // Config -----------------------------------
2
- @syntax-hue: 220;
3
- @syntax-saturation: 13%;
4
- @syntax-brightness: 18%;
5
-
6
-
7
- // Monochrome -----------------------------------
8
- @mono-1: hsl(@syntax-hue, 14%, 71%); // default text
9
- @mono-2: hsl(@syntax-hue, 9%, 55%);
10
- @mono-3: hsl(@syntax-hue, 10%, 40%);
11
-
12
- // Colors -----------------------------------
13
- @hue-1: hsl(187, 47%, 55%); // <-cyan
14
- @hue-2: hsl(207, 82%, 66%); // <-blue
15
- @hue-3: hsl(286, 60%, 67%); // <-purple
16
- @hue-4: hsl( 95, 38%, 62%); // <-green
17
-
18
- @hue-5: hsl(355, 65%, 65%); // <-red 1
19
- @hue-5-2: hsl( 5, 48%, 51%); // <-red 2
20
-
21
- @hue-6: hsl( 29, 54%, 61%); // <-orange 1
22
- @hue-6-2: hsl( 39, 67%, 69%); // <-orange 2
23
-
24
-
25
- // Base colors -----------------------------------
26
- @syntax-fg: @mono-1;
27
- @syntax-bg: hsl(@syntax-hue, @syntax-saturation, @syntax-brightness);
28
- @syntax-gutter: darken(@syntax-fg, 26%);
29
- @syntax-guide: fade(@syntax-fg, 15%);
30
- @syntax-accent: hsl(@syntax-hue, 100%, 66% );
@@ -1,56 +0,0 @@
1
- @import "colors.less";
2
-
3
- // Official Syntax Variables -----------------------------------
4
-
5
- // General colors
6
- @syntax-text-color: @syntax-fg;
7
- @syntax-cursor-color: @syntax-accent;
8
- @syntax-selection-color: lighten(@syntax-background-color, 10%);
9
- @syntax-selection-flash-color: @syntax-accent;
10
- @syntax-background-color: @syntax-bg;
11
-
12
- // Guide colors
13
- @syntax-wrap-guide-color: @syntax-guide;
14
- @syntax-indent-guide-color: @syntax-guide;
15
- @syntax-invisible-character-color: @syntax-guide;
16
-
17
- // For find and replace markers
18
- @syntax-result-marker-color: fade(@syntax-accent, 24%);
19
- @syntax-result-marker-color-selected: @syntax-accent;
20
-
21
- // Gutter colors
22
- @syntax-gutter-text-color: @syntax-gutter;
23
- @syntax-gutter-text-color-selected: @syntax-fg;
24
- @syntax-gutter-background-color: @syntax-bg; // unused
25
- @syntax-gutter-background-color-selected: lighten(@syntax-bg, 2%);
26
-
27
- // Git colors - For git diff info. i.e. in the gutter
28
- @syntax-color-renamed: hsl(208, 100%, 60%);
29
- @syntax-color-added: hsl(150, 60%, 54%);
30
- @syntax-color-modified: hsl(40, 60%, 70%);
31
- @syntax-color-removed: hsl(0, 70%, 60%);
32
-
33
- // For language entity colors
34
- @syntax-color-variable: @hue-5;
35
- @syntax-color-constant: @hue-6;
36
- @syntax-color-property: @syntax-fg;
37
- @syntax-color-value: @syntax-fg;
38
- @syntax-color-function: @hue-2;
39
- @syntax-color-method: @hue-2;
40
- @syntax-color-class: @hue-6-2;
41
- @syntax-color-keyword: @hue-3;
42
- @syntax-color-tag: @hue-5;
43
- @syntax-color-attribute: @hue-6;
44
- @syntax-color-import: @hue-3;
45
- @syntax-color-snippet: @hue-4;
46
-
47
-
48
- // Custom Syntax Variables -----------------------------------
49
- // Don't use in packages
50
-
51
- @syntax-cursor-line: hsla(@syntax-hue, 100%, 80%, .04); // needs to be semi-transparent to show search results
52
-
53
- @syntax-deprecated-fg: darken(@syntax-color-modified, 50%);
54
- @syntax-deprecated-bg: @syntax-color-modified;
55
- @syntax-illegal-fg: white;
56
- @syntax-illegal-bg: @syntax-color-removed;
@@ -1,93 +0,0 @@
1
- /*
2
- LESS for Pygments
3
- */
4
-
5
- @import "syntax-variables.less";
6
-
7
- pre.highlight,
8
- .highlight {
9
- background: @syntax-bg;
10
- color: @mono-1;
11
- }
12
- .highlight {
13
- pre { background: @syntax-bg; }
14
- .hll { background: @syntax-bg; }
15
- .c { color: @mono-3; font-style: italic; } /* Comment */
16
- .err { color: @syntax-illegal-fg; background-color: @syntax-illegal-bg; } /* Error */
17
- .k { color: @hue-3; } /* Keyword */
18
- .l { color: @hue-4; } /* Literal */
19
- .n { color: @mono-1; } /* Name */
20
- .o { color: @mono-1; } /* Operator */
21
- .p { color: @mono-1; } /* Punctuation */
22
- .cm { color: @mono-3; font-style: italic; } /* Comment.Multiline */
23
- .cp { color: @mono-3; font-style: italic; } /* Comment.Preproc */
24
- .c1 { color: @mono-3; font-style: italic; } /* Comment.Single */
25
- .cs { color: @mono-3; font-style: italic; } /* Comment.Special */
26
- .ge { font-style: italic } /* Generic.Emph */
27
- .gs { font-weight: bold } /* Generic.Strong */
28
- .kc { color: @hue-3; } /* Keyword.Constant */
29
- .kd { color: @hue-3; } /* Keyword.Declaration */
30
- .kn { color: @hue-3; } /* Keyword.Namespace */
31
- .kp { color: @hue-3; } /* Keyword.Pseudo */
32
- .kr { color: @hue-3; } /* Keyword.Reserved */
33
- .kt { color: @hue-3; } /* Keyword.Type */
34
- .ld { color: @hue-4; } /* Literal.Date */
35
- .m { color: @hue-6; } /* Literal.Number */
36
- .s { color: @hue-4; } /* Literal.String */
37
- .na { color: @hue-6; } /* Name.Attribute */
38
- .nb { color: @hue-6-2; } /* Name.Builtin */
39
- .nc { color: @hue-6-2; } /* Name.Class */
40
- .no { color: @hue-6-2; } /* Name.Constant */
41
- .nd { color: @hue-6-2; } /* Name.Decorator */
42
- .ni { color: @hue-6-2; } /* Name.Entity */
43
- .ne { color: @hue-6-2; } /* Name.Exception */
44
- .nf { color: @mono-1; } /* Name.Function */
45
- .nl { color: @hue-6-2; } /* Name.Label */
46
- .nn { color: @mono-1; } /* Name.Namespace */
47
- .nx { color: @mono-1; } /* Name.Other */
48
- .py { color: @hue-6-2; } /* Name.Property */
49
- .nt { color: @hue-5; } /* Name.Tag */
50
- .nv { color: @hue-6-2; } /* Name.Variable */
51
- .ow { font-weight: bold; } /* Operator.Word */
52
- .w { color: #f8f8f2 } /* Text.Whitespace */
53
- .mf { color: @hue-6; } /* Literal.Number.Float */
54
- .mh { color: @hue-6; } /* Literal.Number.Hex */
55
- .mi { color: @hue-6; } /* Literal.Number.Integer */
56
- .mo { color: @hue-6; } /* Literal.Number.Oct */
57
- .sb { color: @hue-4; } /* Literal.String.Backtick */
58
- .sc { color: @hue-4; } /* Literal.String.Char */
59
- .sd { color: @hue-4; } /* Literal.String.Doc */
60
- .s2 { color: @hue-4; } /* Literal.String.Double */
61
- .se { color: @hue-4; } /* Literal.String.Escape */
62
- .sh { color: @hue-4; } /* Literal.String.Heredoc */
63
- .si { color: @hue-4; } /* Literal.String.Interpol */
64
- .sx { color: @hue-4; } /* Literal.String.Other */
65
- .sr { color: @hue-1; } /* Literal.String.Regex */
66
- .s1 { color: @hue-4; } /* Literal.String.Single */
67
- .ss { color: @hue-1; } /* Literal.String.Symbol */
68
- .bp { color: @hue-6-2; } /* Name.Builtin.Pseudo */
69
- .vc { color: @hue-6-2; } /* Name.Variable.Class */
70
- .vg { color: @hue-6-2; } /* Name.Variable.Global */
71
- .vi { color: @hue-5; } /* Name.Variable.Instance */
72
- .il { color: @hue-6; } /* Literal.Number.Integer.Long */
73
-
74
- .gh { } /* Generic Heading & Diff Header */
75
- .gu { color: #75715e; } /* Generic.Subheading & Diff Unified/Comment? */
76
- .gd { color: @syntax-color-removed; } /* Generic.Deleted & Diff Deleted */
77
- .gi { color: @syntax-color-added; } /* Generic.Inserted & Diff Inserted */
78
-
79
- ::selection { background-color: @syntax-selection-color; }
80
-
81
- .language-json {
82
- .w + .s2 { color: @hue-5; }
83
- .kc { color: @hue-1; }
84
- }
85
-
86
- .language-python {
87
- // python related modifications
88
- }
89
-
90
- .language-csharp {
91
- // csharp related modifications
92
- }
93
- }