just-the-docs 0.4.0.rc4 → 0.4.0

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
  SHA256:
3
- metadata.gz: c8877f9fb409c496769e604fa5c53121d72234e51e7d76aed6d243588ffb8544
4
- data.tar.gz: 205a1e33b36fd961b3a8c429ba4f660a367c0272a00143888a5244e6f896e875
3
+ metadata.gz: f6dee6001e16aa8ad53cb0e3c9129ad2297d9a3af6a602958a17de1063c17f1c
4
+ data.tar.gz: b528c7f6c8940474e80607b9645077d8877d701f3d359bcbed3befd3814b17fe
5
5
  SHA512:
6
- metadata.gz: 0422f4278093a39c11a7aeb437e9ccee7b7a738f706a764a61e102e456165cb78b6d0992c27ce27a74e83d99d39507fdb06cb6ee94835f9fe66b8678fa504b1a
7
- data.tar.gz: 47a66cab38cc77f7ed3cd839bc5eb93401a715639ee7c57b48418c9221c22851095812abd83ba2daaaba0097a5e8cfc97bb227cb39c3aa85618080d602757c0a
6
+ metadata.gz: 9eec6b599ca82cfb750d99f703789059275730b4fd9b9775a02a5be4ba049165127ffc70832b316accdf85af8e76dfe4165257c9b26988ed0408a44720199a66
7
+ data.tar.gz: ee4145089f1d1798eecf42e74ea391be7295d1b0c27e91de0a1fb61fe89bd7bdfcddc2903b60b2b3553b866dbbb0e346319bbf6e34aaeb6bdd92d6295c7303a9
data/CHANGELOG.md CHANGED
@@ -16,12 +16,351 @@ 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.rc4` and `v0.3.3`!
19
+ This website includes docs for some new features that are not available in `v0.4.0`!
20
20
 
21
- Changes to `main` that are *not* in the latest pre-release:
21
+ Changes to `main` that are *not* in the latest release:
22
22
 
23
23
  - n/a
24
24
 
25
+ ## Release v0.4.0
26
+
27
+ We're so excited to release Just the Docs `v0.4.0`. This release has been almost a year in the making - after our new maintenance team has taken over the project, we've added two years of backlogged features and bugfixes to modernize the theme. This CHANGELOG will summarize some of the key changes, discuss migrations strategies, and outline broad future plans for this theme.
28
+
29
+ ### Brief Overview - Highlighted Changes
30
+
31
+ `v0.4.0` contains many new features and bugfixes. We enumerate all of them in further sections in this changelog; however, we'd like to call out some of the most-requested changes:
32
+
33
+ - better support for dark theme: dark highlighting, search input color
34
+ - [callouts](https://just-the-docs.github.io/just-the-docs/docs/ui-components/callouts/), a new design component to highlight content
35
+ - [configuring mermaid.js](https://just-the-docs.github.io/just-the-docs/docs/ui-components/code/#mermaid-diagram-code-blocks), a markdown-native diagram visualization library
36
+ - [copy code button](https://just-the-docs.github.io/just-the-docs/docs/ui-components/code/#copy-button) for code snippets
37
+ - [external navigation links](https://just-the-docs.github.io/just-the-docs/docs/navigation-structure/#external-navigation-links)
38
+ - major improvements to nav generation efficiency and robustness
39
+ - minor improvements to built-in accessibility (SVG icons, nav titles, skip to main content)
40
+ - [modularized site components](https://just-the-docs.github.io/just-the-docs/docs/customization/#custom-layouts-and-includes) (advanced feature)
41
+ - [new custom includes](https://just-the-docs.github.io/just-the-docs/docs/customization/#override-includes): table of contents heading, navigation panel footer, search placeholder, lunr search indices
42
+ - bugfixes involving WEBrick and Ruby 3, Liquid processing in CSS comments, nested task lists, relative URLs, scroll navigation, corrupted search data from rake, breadcrumbs, and more!
43
+ - more documentation for [custom includes](https://just-the-docs.github.io/just-the-docs/docs/customization/#override-includes), this changelog, and the [migration guide](https://just-the-docs.github.io/just-the-docs/MIGRATION/)
44
+
45
+ *After usage instructions and the roadmap, we enumerate all changes from `v0.3.3`.*
46
+
47
+ ### Using Release `v0.4.0`
48
+
49
+ Unlike pre-releases, `v0.4.0` is a new semver minor release for the theme. That means that users who have not pinned the theme version will be **automatically upgraded to `v0.4.0` the next time they build their site**.
50
+
51
+ To use this release explicitly as a remote theme:
52
+
53
+ ```yml
54
+ remote_theme: just-the-docs/just-the-docs@v0.4.0
55
+ ```
56
+
57
+ 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`:
58
+
59
+ ```ruby
60
+ gem "just-the-docs", "0.4.0"
61
+ ```
62
+
63
+ If you would prefer to not upgrade, you can enforce that explicitly:
64
+
65
+ 1. pin your gem version in your `Gemfile`, like so
66
+ ```ruby
67
+ gem "just-the-docs", "0.3.3"
68
+ ```
69
+ 2. freeze the `remote_theme`, like so
70
+ ```yml
71
+ remote_theme: just-the-docs/just-the-docs@v0.3.3
72
+ ```
73
+
74
+ ### Migration Guide and Strategies
75
+
76
+ We've developed a new [migration guide](https://just-the-docs.github.io/just-the-docs/MIGRATION/) for users to migrate from version `v0.3.3` to `v0.4.0`. It outlines major changes in project maintenance (e.g. new repository link, team) as well as breaking changes that may break your site (and potential solutions). We suggest that all users refer to the guide before manually upgrading their site.
77
+
78
+ **For the vast majority of users, we do not anticipate that this will be a breaking change.** The major touch points are surrounding new includes, navigation (ordering, pages, and collections), the favicon, and a shift to relative URLs. However, users who heavily customize the theme (primarily by overriding includes) will likely have to make minor changes.
79
+
80
+ Given the length of features added in this release, users may want to incrementally upgrade through the pre-releases. To follow this approach, read this changelog from `v0.4.0.rc1` to `v0.4.0.rc5`; this breaks down the release into small chunks, each of which should be easier to upgrade. `v0.4.0.rc5` is identical to this release.
81
+
82
+ For support with migrating to `v0.4.0`, [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) and let us know!
83
+
84
+ ### Roadmap (What's Next?)
85
+
86
+ Moving forward, we plan to release more frequently with smaller, bite-sized changes. This should make it easier for users to upgrade in the future!
87
+
88
+ Broadly, many features are still on the radar. We anticipate the rest of `v0.4.x` to be bugfixes surrounding this new release.
89
+
90
+ For version `v0.5`, our roadmap includes:
91
+
92
+ - a theme toggle (light/dark mode), with automatic theme switching based on browser preferences
93
+ - better GDPR compliance for analytics
94
+ - multi-level/recursive navigation (unlimited hierarchy of child pages)
95
+
96
+ In future versions, we also plan on:
97
+
98
+ - adding better dark theme defaults
99
+ - adding better internationalization support
100
+ - exploring offline PDF generation
101
+ - improving accessibility within the theme
102
+ - improving search functionality
103
+ - refactoring and improving the robustness of our codebase
104
+
105
+ Have ideas for what's next, or want to get involved? [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) and let us know! We're looking for more contributors and maintainers to help us develop the theme.
106
+
107
+ ### New Features
108
+
109
+ - Added: Combination by [@pdmosses] in [#578]
110
+ - Added: dark highlighting in [#463]
111
+ - Added: pages and collections in [#448]
112
+ - Added: callouts in [#466]
113
+ - Fixed: breadcrumb behaviour … by [@AdityaTiwari2102] in [#477]
114
+ - Fixed: prevent rake command corrupting search data in [#495] (also listed below)
115
+ - Fixed: nested lists in [#496]
116
+ - Fixed: set color for search input in [#498] (also listed below)
117
+ - Fixed: sites with no child pages (no PR)
118
+ - Fixed: TOC/breadcrumbs for multiple collections in [#494]
119
+ - Added: collection configuration option `nav_fold` (no PR)
120
+ - Fixed: indentation and color for folded collection navigation (no PR)
121
+ - Fixed: scroll navigation to show the link to the current page in [#639]
122
+ - Fixed: Replace all uses of `absolute_url` by `relative_url`, by [@svrooij] in [#544]
123
+ - Added: custom favicon `_includes` by [@burner1024] in [#364]
124
+ - Added: set color for search input by [@pdmosses] in [#498]
125
+ - Added: search placeholder configuration by [@mattxwang] in [#613]
126
+ - Added: 'child_nav_order' front matter to be able to sort navigation pages in reverse by [@jmertic] in [#726]
127
+ - Added: `nav_footer_custom` include by [@nathanjessen] in [#474]
128
+ - Added: style fixes for jekyll-asciidoc by [@alyssais] in [#829]
129
+ - Added: mermaid.js support by [@nascosto] in [#857]
130
+ - Added: support for external navigation links by [@SPGoding] in [#876]
131
+ - Added: refactor `mermaid` config to use `mermaid_config.js` include, only require `mermaid.version` in `_config.yml` by [@mattxwang] in [#909]
132
+ - Added: accessible titles to nested page nav toggle by [@JPrevost] in [#950]
133
+ - Added: better title styling for AsciiDoc examples by [@alyssais] in [#944]
134
+ - Added: docs for custom search placeholder by [@mattxwang] in [#939]
135
+ - Added: provide ability to skip to main content by [@JPrevost] in [#949]
136
+ - Added: styling for `<blockquote>` by [@mattxwang] in [#965]
137
+ - Added: custom include for TOC heading by [@pdmosses] in [#980]
138
+ - Added: experimental nav optimization for simple cases by [@pdmosses] in [#992]
139
+ - Added: support multiple Google Analytics tracking IDs, document UA -> GA4 switch by [@MichelleBlanchette] in [#1029]
140
+ - Added: copy code button to code snippets by [@simonebortolin] in [#945]
141
+ - Added: restore simple configuration of `favicon.ico` via `site.static_files` by [@pdmosses] in [#1095]
142
+ - Added: modularize site components by [@mattxwang] in [#1058]
143
+ - Added: includes for custom `lunr` Liquid and JS code by [@diablodale] in [#1068]
144
+ - Added: new `_sass/custom/setup.scss` for variable definition by [@mattxwang] in [#1135]
145
+ - Added: configuration key to load a local version of mermaid by [@fabrik42] in [#1153]
146
+
147
+ ### Bugfixes
148
+
149
+ - Fixed: prepend `site.collections_dir` if exists by [@alexsegura] in [#519]
150
+ - Fixed: nested task lists (#517) by [@pdmosses] in [#855]
151
+ - Fixed: suppress Liquid processing in CSS comments by [@pdmosses] in [#686]
152
+ - Fixed: prevent rake command from corrupting search data by [@pdmosses] in [#495]
153
+ - Fixed: anchor heading links should be visible on focus by [@jacobhq] in [#846]
154
+ - Fixed: add `overflow-x: auto` to `figure.highlight` by [@iridazzle] in [#727]
155
+ - Fixed: add `overflow-wrap: word-break` to `body` by [@iridazzle] in [#889]
156
+ - Fixed: vertical alignment for consecutive labels by [@Eisverygoodletter] in [#893]
157
+ - Fixed: allow links to wrap by [@pdmosses] in [#905]
158
+ - Fixed: nav scroll feature and absolute/relative URLs by [@pdmosses] in [#898]
159
+ - Fixed: exclude `vendor/` in Jekyll config by [@manuelhenke] in [#941]
160
+ - Fixed: improve build time of navigation panel by [@pdmosses] in [#956]
161
+ - Fixed: spacing issue when search is disabled by [@henryiii] in [#960]
162
+ - Fixed: active grandchild link class by [@pdmosses] in [#962]
163
+ - Fixed: HTML validation issues (W3C validator) by [@mattxwang] in [#964]
164
+ - Fixed: link styling now uses `text-decoration` values by [@mattxwang] in [#967]
165
+ - Fixed: cleaning up Jekyll excludes by [@pdmosses] in [#985]
166
+ - Fixed: docs, narrow styling for code highlighting with line numbers by [@pdmosses] in [#974]
167
+ - Fixed: default syntax highlighting in custom color schemes [@pdmosses] in [#986]
168
+ - Fixed: incorrect disambiguation in generated TOCs by [@pdmosses] in [#999]
169
+ - Fixed: duplicated external links in collections by [@pdmosses] in [#1001]
170
+ - Fixed: import order of `custom.scss`; puts at end by [@deseo] in [#1010]
171
+ - Fixed: top-level active link styling by [@pdmosses] in [#1015]
172
+ - Fixed: external links for sites with no pages by [@pdmosses] in [#1021]
173
+ - Fixed: duplicate `title` if `jekyll-seo-tag` not in users's plugins by [@Tom-Brouwer] in [#1040]
174
+ - Fixed: removes (duplicate) `favicon.html`, shifts content to `head_custom.html` by [@mattxwang] in [#1027]
175
+ - Fixed: add `reversed`, deprecate `desc` for nav `child_nav_order` by [@jmertic] in [#1061]
176
+ - Fixed: `child.child_nav_order` to `node.child_nav_order` by [@mattxwang] in [#1065]
177
+ - Fixed: remove all uses of `/` as SASS division by [@mattxwang] in [#1074]
178
+ - note: this was originally merged as [#1074] with a bug; it was reverted in [#1076], and then reimplemented in [#1077]
179
+ - Fixed: skip nav collection generation when site has no pages by [@pdmosses] in [#1092]
180
+ - Fixed: standardize SCSS with `declaration-block-no-redundant-longhand-properties` by [@simonebortolin] in [#1102]
181
+ - Fixed: incorrect `padding` property value pair in `labels.scss` by [@SConaway] in [#1104]
182
+ - Fixed: various bugs with copy code button by [@simonebortolin] in [#1096]
183
+ - Fixed: replace inline styling for `<svg>` icons by [@captn3m0] in [#1110]
184
+ - Fixed: incorrect `padding` property value pair in `search.scss` by [@kevinlin1] in [#1123]
185
+ - Fixed: minor spacing and comment nits by [@EricFromCanada] in [#1128]
186
+ - Fixed: exclude images from being bundled with gem by [@m-r-mccormick] in [#1142]
187
+ - Fixed: dark theme code block background, line number colors by [@m-r-mccormick] in [#1124]
188
+ - Fixed: copy code button interaction with kramdown line numbers by [@mattxwang] in [#1143]
189
+
190
+ ### Maintenance
191
+
192
+ - Added: VScode devcontainer by [@max06] in [#783]
193
+ - Added: `webrick` to `Gemfile` by [@mattxwang] in [#799]
194
+ - Added: 'This site is powered by Netlify.' to the footer by [@mattxwang] in [#797]
195
+ - Updated: new repo path by [@pmarsceill] in [#775]
196
+ - Updated: rename `master` -> `main` by [@pmarsceill] in [#776]
197
+ - Updated: README by [@pmarsceill] in [#777]
198
+ - Updated: Code of Conduct to Contributor Covenant v2.1 by [@mattxwang] in [#790]
199
+ - Updated: CI files, Ruby & Node Versions by [@mattxwang] in [#820]
200
+ - Updated: Stylelint to v14, extend SCSS plugins, remove primer-* configs, resolve issues by [@mattxwang] in [#821]
201
+ - Deleted: unused script directory by [@mattxwang] in [#937]
202
+ - Vendor: update `jekyll-anchor-headings`, `lunr.js` by [@mattxwang] in [#1071]
203
+
204
+ ### Documentation
205
+
206
+ - Added: docs on how to break an `ol` by [@pdmosses] in [#856]
207
+ - Added: docs for custom includes by [@nathanjessen] in [#806]
208
+ - Added: document caveat about variable dependencies by [@waldyrious] in [#555]
209
+ - Added: docs on how to use `custom_head` to add a custom favicon by [@UnclassedPenguin] in [#814]
210
+ - Added: docs load mermaid.js by default by [@mattxwang] in [#935]
211
+ - Added: warning about mandatory `_`-prefix for collections by [@max06] in [#1091]
212
+ - Added: migration guide by [@pdmosses] in [#1059]
213
+ - Added: label new features introduced in `v0.4` by [@mattxwang] in [#1138]
214
+ - Fixed: `ol` on `index.md` by [@pmarsceill] in [#778]
215
+ - Fixed: image link in Markdown kitchen sink by [@JeffGuKang] in [#221]
216
+ - Fixed: images in Markdown kitchen sink by [@dougaitken] in [#782]
217
+ - Fixed: clearer label of link to Jekyll quickstart by [@waldyrious] in [#549]
218
+ - Fixed: remove extra spaces in component docs by [@MichelleBlanchette] in [#554]
219
+ - Fixed: double "your" typo in `index.md` by [@sehilyi] in [#499]
220
+ - Fixed: "you" -> "your" typo in `index.md` by [@nathanjessen] in [#473]
221
+ - Fixed: spacing in toc example by [@henryiii] in [#835]
222
+ - Fixed: typo in `README` on `_config.yml` by [@ivanskodje] in [#891]
223
+ - Fixed: missing code fence in navigation structure docs by [@mattxwang] in [#906]
224
+ - Fixed: table of contents on search docs by [@robinpokorny] in [#940]
225
+ - Fixed: broken docs link (custom footer) by [@olgarithms] in [#951]
226
+ - Fixed: clarify version docs by [@pdmosses] in [#955]
227
+ - Fixed: typo in changelog links [@koppor] in [#1000]
228
+ - Fixed: two bugs in "Customization" (custom favicon, new annotation) by [@mattxwang] in [#1090]
229
+ - Fixed: "View Typography Utilities" link by [@agabrys] in [#1130]
230
+ - Fixed: broken relative page links by [@mattxwang] in [#1106]
231
+ - Fixed: clarify steps to add custom `lunr` index code by [@diablodale] in [#1139]
232
+ - Updated: homepage (focus: new features, conciseness, deduplication) by [@pdmosses] in [#1018]
233
+ - Updated: README (focus: new features, conciseness, deduplication) by [@pdmosses] in [#1019]
234
+ - Updated: `README` demo video by [@codewithfan] in [#1097]
235
+
236
+ ### New Contributors
237
+
238
+ - [@AdityaTiwari2102] made their first contribution in [#477]
239
+ - [@svrooij] made their first contribution in [#544]
240
+ - [@alexsegura] made their first contribution in [#519]
241
+ - [@burner1024] made their first contribution in [#364]
242
+ - [@JeffGuKang] made their first contribution in [#221]
243
+ - [@dougaitken] made their first contribution in [#782]
244
+ - [@max06] made their first contribution in [#783]
245
+ - [@sehilyi] made their first contribution in [#499]
246
+ - [@nathanjessen] made their first contribution in [#473]
247
+ - [@waldyrious] made their first contribution in [#549]
248
+ - [@MichelleBlanchette] made their first contribution in [#554]
249
+ - [@henryiii] made their first contribution in [#835]
250
+ - [@jmertic] made their first contribution in [#726]
251
+ - [@jacobhq] made their first contribution in [#846]
252
+ - [@UnclassedPenguin] made their first contribution in [#814]
253
+ - [@alyssais] made their first contribution in [#829]
254
+ - [@nascosto] made their first contribution in [#857]
255
+ - [@SPGoding] made their first contribution in [#876]
256
+ - [@iridazzle] made their first contribution in [#727]
257
+ - [@ivanskodje] made their first contribution in [#891]
258
+ - [@Eisverygoodletter] made their first contribution in [#893]
259
+ - [@robinpokorny] made their first contribution in [#940]
260
+ - [@olgarithms] made their first contribution in [#951]
261
+ - [@manuelhenke] made their first contribution in [#941]
262
+ - [@JPrevost] made their first contribution in [#950]
263
+ - [@koppor] made their first contribution in [#1000]
264
+ - [@deseo] made their first contribution in [#1010]
265
+ - [@Tom-Brouwer] made their first contribution in [#1040]
266
+ - [@simonebortolin] made their first contribution in [#945]
267
+ - [@SConaway] made their first contribution in [#1104]
268
+ - [@captn3m0] made their first contribution in [#1110]
269
+ - [@kevinlin1] made their first contribution in [#1123]
270
+ - [@codewithfan] made their first contribution in [#1097]
271
+ - [@agabrys] made their first contribution in [#1130]
272
+ - [@diablodale] made their first contribution in [#1068]
273
+ - [@m-r-mccormick] made their first contribution in [#1142]
274
+ - [@fabrik42] made their first contribution in [#1153]
275
+
276
+ ## Pre-release v0.4.0.rc5
277
+
278
+ Hi everyone, we're so excited to finally release `v0.4.0`! For posterity's sake, we're going to release `v0.4.0.rc5` and then immediately re-release it as `v0.4.0`; this should make it more clear what changes were introduced in the lead up to the minor release.
279
+
280
+ This RC does not introduce any major user-facing features. It adds more customizability for custom SCSS variables (fixing a bug with callout introduction order), `lunr` indexing, and loading `mermaid` locally. In addition, it fixes bugs introduced in `.rc4`: incorrect CSS, inconsistencies with code block backgrounds in dark theme, and the copy code button. It also adds a migration guide for users coming from `v0.3.3`.
281
+
282
+ ### Trying out pre-release `v0.4.0.rc5`
283
+
284
+ Simlar to the prior release, `v0.4.0.rc5` is a **release candidate** for the theme (i.e., a pre-release) with release `v0.4.0` following immediately after. While we don't anticipate many users using this RC, it is still possible to opt-in.
285
+
286
+ To use this RC explicitly as a remote theme:
287
+
288
+ ```yml
289
+ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc5
290
+ ```
291
+
292
+ 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`:
293
+
294
+ ```ruby
295
+ gem "just-the-docs", "0.4.0.rc5"
296
+ ```
297
+
298
+ By default, **users will not be upgraded to `0.4.0.rc5`**. To enforce that explicitly, either:
299
+
300
+ 1. pin your gem version in your `Gemfile`, like so
301
+ ```ruby
302
+ gem "just-the-docs", "0.3.3"
303
+ ```
304
+ 2. freeze the `remote_theme`, like so
305
+ ```yml
306
+ remote_theme: just-the-docs/just-the-docs@v0.3.3
307
+ ```
308
+
309
+ ### New Features
310
+
311
+ - Added: includes for custom `lunr` Liquid and JS code by [@diablodale] in [#1068]
312
+ - Added: new `_sass/custom/setup.scss` for variable definition by [@mattxwang] in [#1135]
313
+ - Added: configuration key to load a local version of mermaid by [@fabrik42] in [#1153]
314
+
315
+ ### Bugfixes and Maintenance
316
+
317
+ - Fixed: incorrect `padding` property value pair in `search.scss` by [@kevinlin1] in [#1123]
318
+ - Fixed: minor spacing and comment nits by [@EricFromCanada] in [#1128]
319
+ - Fixed: exclude images from being bundled with gem by [@m-r-mccormick] in [#1142]
320
+ - Fixed: dark theme code block background, line number colors by [@m-r-mccormick] in [#1124]
321
+ - Fixed: copy code button interaction with kramdown line numbers by [@mattxwang] in [#1143]
322
+
323
+ ### Docs
324
+
325
+ - Docs: add a migration guide by [@pdmosses] in [#1059]
326
+ - Docs: update `README` demo video by [@codewithfan] in [#1097]
327
+ - Docs: update "View Typography Utilities" link by [@agabrys] in [#1130]
328
+ - Docs: fix broken relative page links by [@mattxwang] in [#1106]
329
+ - Docs: clarify steps to add custom `lunr` index code by [@diablodale] in [#1139]
330
+ - Docs: label new features introduced in `v0.4` by [@mattxwang] in [#1138]
331
+
332
+ ### New Contributors
333
+
334
+ - [@kevinlin1] made their first contribution in [#1123]
335
+ - [@codewithfan] made their first contribution in [#1097]
336
+ - [@agabrys] made their first contribution in [#1130]
337
+ - [@diablodale] made their first contribution in [#1068]
338
+ - [@m-r-mccormick] made their first contribution in [#1142]
339
+ - [@fabrik42] made their first contribution in [#1153]
340
+
341
+ [#1059]: https://github.com/just-the-docs/just-the-docs/pull/1059
342
+ [#1068]: https://github.com/just-the-docs/just-the-docs/pull/1068
343
+ [#1097]: https://github.com/just-the-docs/just-the-docs/pull/1097
344
+ [#1106]: https://github.com/just-the-docs/just-the-docs/pull/1106
345
+ [#1123]: https://github.com/just-the-docs/just-the-docs/pull/1123
346
+ [#1124]: https://github.com/just-the-docs/just-the-docs/pull/1124
347
+ [#1128]: https://github.com/just-the-docs/just-the-docs/pull/1128
348
+ [#1130]: https://github.com/just-the-docs/just-the-docs/pull/1130
349
+ [#1135]: https://github.com/just-the-docs/just-the-docs/pull/1135
350
+ [#1138]: https://github.com/just-the-docs/just-the-docs/pull/1138
351
+ [#1139]: https://github.com/just-the-docs/just-the-docs/pull/1139
352
+ [#1142]: https://github.com/just-the-docs/just-the-docs/pull/1142
353
+ [#1143]: https://github.com/just-the-docs/just-the-docs/pull/1143
354
+ [#1153]: https://github.com/just-the-docs/just-the-docs/pull/1153
355
+
356
+ [@agabrys]: https://github.com/agabrys
357
+ [@codewithfan]: https://github.com/codewithfan
358
+ [@diablodale]: https://github.com/diablodale
359
+ [@fabrik42]: https://github.com/fabrik42
360
+ [@kevinlin1]: https://github.com/kevinlin1
361
+ [@EricFromCanada]: https://github.com/EricFromCanada
362
+ [@m-r-mccormick]: https://github.com/m-r-mccormick
363
+
25
364
  ## Pre-release v0.4.0.rc4
26
365
 
27
366
  Happy new year! We're celebrating with another pre-release, with features that should help theme users better adapt to changes moving forward. **We aim to re-release this as `v0.4.0`, with only few changes**.
@@ -53,14 +392,14 @@ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc4
53
392
 
54
393
  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`:
55
394
 
56
- ```Ruby
395
+ ```ruby
57
396
  gem "just-the-docs", "0.4.0.rc4"
58
397
  ```
59
398
 
60
399
  By default, **users will not be upgraded to `0.4.0.rc4`**. To enforce that explicitly, either:
61
400
 
62
401
  1. pin your gem version in your `Gemfile`, like so
63
- ```Ruby
402
+ ```ruby
64
403
  gem "just-the-docs", "0.3.3"
65
404
  ```
66
405
  2. freeze the `remote_theme`, like so
@@ -174,14 +513,14 @@ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc3
174
513
 
175
514
  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`:
176
515
 
177
- ```Ruby
516
+ ```ruby
178
517
  gem "just-the-docs", "0.4.0.rc3"
179
518
  ```
180
519
 
181
520
  By default, **users will not be upgraded to `0.4.0.rc3`**. To enforce that explicitly, either:
182
521
 
183
522
  1. pin your gem version in your `Gemfile`, like so
184
- ```Ruby
523
+ ```ruby
185
524
  gem "just-the-docs", "0.3.3"
186
525
  ```
187
526
  2. freeze the `remote_theme`, like so
@@ -250,14 +589,14 @@ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc2
250
589
 
251
590
  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`:
252
591
 
253
- ```Ruby
592
+ ```ruby
254
593
  gem "just-the-docs", "0.4.0.rc2"
255
594
  ```
256
595
 
257
596
  By default, **users will not be upgraded to `0.4.0.rc2`**. To enforce that explicitly, either:
258
597
 
259
598
  1. pin your gem version in your `Gemfile`, like so
260
- ```Ruby
599
+ ```ruby
261
600
  gem "just-the-docs", "0.3.3"
262
601
  ```
263
602
  2. freeze the `remote_theme`, like so
@@ -338,7 +677,7 @@ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc1
338
677
 
339
678
  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`:
340
679
 
341
- ```Ruby
680
+ ```ruby
342
681
  gem "just-the-docs", "0.4.0.rc1"
343
682
  ```
344
683
 
@@ -349,7 +688,7 @@ If you're not ready to make the switch, that's alright! If your version of just-
349
688
  If you have not pinned your theme version, you should either:
350
689
 
351
690
  1. pin your gem version in your `Gemfile`, like so
352
- ```Ruby
691
+ ```ruby
353
692
  gem "just-the-docs", "0.3.3"
354
693
  ```
355
694
  2. freeze the `remote_theme`, like so
data/README.md CHANGED
@@ -9,7 +9,9 @@
9
9
  <br><br><br>
10
10
  </p>
11
11
 
12
- ![jtd](https://user-images.githubusercontent.com/896475/47384541-89053c80-d6d5-11e8-98dc-dba16e192de9.gif)
12
+ <p align="center">A video walkthrough of various Just the Docs features</p>
13
+
14
+ https://user-images.githubusercontent.com/85418632/211225192-7e5d1116-2f4f-4305-bb9b-437fe47df071.mp4
13
15
 
14
16
  ## Installation
15
17
 
@@ -7,10 +7,10 @@
7
7
  </div>
8
8
  <nav aria-label="Main" id="site-nav" class="site-nav">
9
9
  {% assign pages_top_size = site.html_pages
10
- | where_exp:"item", "item.title != nil"
11
- | where_exp:"item", "item.parent == nil"
12
- | where_exp:"item", "item.nav_exclude != true"
13
- | size %}
10
+ | where_exp:"item", "item.title != nil"
11
+ | where_exp:"item", "item.parent == nil"
12
+ | where_exp:"item", "item.nav_exclude != true"
13
+ | size %}
14
14
  {% if pages_top_size > 0 %}
15
15
  {% include nav.html pages=site.html_pages key=nil %}
16
16
  {% endif %}
@@ -2,6 +2,7 @@
2
2
  $logo: "{{ site.logo | relative_url }}";
3
3
  {% endif %}
4
4
  @import "./support/support";
5
+ @import "./custom/setup";
5
6
  @import "./color_schemes/light";
6
7
  @import "./color_schemes/{{ include.color_scheme }}";
7
8
  @import "./modules";
data/_includes/head.html CHANGED
@@ -23,13 +23,17 @@
23
23
  {% endif %}
24
24
 
25
25
  {% if site.mermaid %}
26
- <script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
26
+ {% if site.mermaid.path %}
27
+ <script src="{{ site.mermaid.path | relative_url }}"></script>
28
+ {% else %}
29
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@{{ site.mermaid.version }}/dist/mermaid.min.js"></script>
30
+ {% endif %}
27
31
  {% endif %}
28
32
 
29
33
  <script src="{{ '/assets/js/just-the-docs.js' | relative_url }}"></script>
30
34
 
31
35
  <meta name="viewport" content="width=device-width, initial-scale=1">
32
-
36
+
33
37
  {% for file in site.static_files %}
34
38
  {% if file.path == site.favicon_ico or file.path == '/favicon.ico' %}
35
39
  {% assign favicon = true %}
@@ -1,4 +1,4 @@
1
- <!-- Feather. MIT License: https://github.com/twbs/icons/blob/main/LICENSE.md -->
1
+ <!-- Bootstrap Icons. MIT License: https://github.com/twbs/icons/blob/main/LICENSE.md -->
2
2
  <symbol id="svg-copy" viewBox="0 0 16 16">
3
3
  <title>Copy</title>
4
4
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-clipboard" viewBox="0 0 16 16">
File without changes
File without changes
data/_includes/nav.html CHANGED
@@ -58,7 +58,7 @@
58
58
  {%- endunless -%}
59
59
 
60
60
  {%- assign nav_order_pages = title_pages
61
- | where_exp: "item", "item.nav_order != nil" -%}
61
+ | where_exp: "item", "item.nav_order != nil" -%}
62
62
  {%- assign title_order_pages = title_pages
63
63
  | where_exp: "item", "item.nav_order == nil" -%}
64
64
 
@@ -174,7 +174,7 @@
174
174
  {%- if node.child_nav_order == 'desc' or node.child_nav_order == 'reversed' -%}
175
175
  {%- assign children_list = children_list | reverse -%}
176
176
  {%- endif -%}
177
- <ul class="nav-list ">
177
+ <ul class="nav-list">
178
178
  {%- for child in children_list -%}
179
179
  {%- unless child.nav_exclude -%}
180
180
  <li class="nav-list-item {% if page.url == child.url or page.parent == child.title %} active{% endif %}">
@@ -16,10 +16,10 @@ layout: table_wrappers
16
16
  {% endcomment %}
17
17
  {% capture nav %}
18
18
  {% assign pages_top_size = site.html_pages
19
- | where_exp:"item", "item.title != nil"
20
- | where_exp:"item", "item.parent == nil"
21
- | where_exp:"item", "item.nav_exclude != true"
22
- | size %}
19
+ | where_exp:"item", "item.title != nil"
20
+ | where_exp:"item", "item.parent == nil"
21
+ | where_exp:"item", "item.nav_exclude != true"
22
+ | size %}
23
23
  {% if pages_top_size > 0 %}
24
24
  {% include nav.html pages=site.html_pages key=nil %}
25
25
  {% endif %}
data/_sass/code.scss CHANGED
@@ -207,4 +207,21 @@ code.language-mermaid {
207
207
  border: 0;
208
208
  }
209
209
 
210
+ // Override OneDarkJekyll Colors for Code Blocks
211
+ .highlight,
212
+ pre.highlight {
213
+ background: $code-background-color; // Code Background
214
+ // For Backwards Compatibility Before $code-linenumber-color was added
215
+ @if variable-exists(code-linenumber-color) {
216
+ color: $code-linenumber-color; // Code Line Numbers
217
+ } @else {
218
+ color: $body-text-color; // Code Line Numbers
219
+ }
220
+ }
221
+
222
+ // Override OneDarkJekyll Colors for Code Blocks
223
+ .highlight pre {
224
+ background: $code-background-color; // Code Background
225
+ }
226
+
210
227
  // {% endraw %}
@@ -15,14 +15,18 @@ $feedback-color: darken($sidebar-color, 3%);
15
15
  // The following highlight theme is more legible than that used for the light color scheme
16
16
 
17
17
  // @import "./vendor/OneDarkJekyll/syntax-one-dark";
18
- // $code-background-color: #282c34;
18
+ // $code-background-color: #282c34; // OneDarkJekyll default for syntax-one-dark
19
+ // $code-linenumber-color: #abb2bf; // OneDarkJekyll .nf for syntax-one-dark
19
20
 
20
21
  @import "./vendor/OneDarkJekyll/syntax-one-dark-vivid";
21
22
 
22
- $code-background-color: #31343f;
23
+ $code-background-color: #31343f; // OneDarkJekyll default for syntax-one-dark-vivid
24
+ $code-linenumber-color: #dee2f7; // OneDarkJekyll .nf for syntax-one-dark-vivid
23
25
 
24
26
  // @import "./vendor/OneDarkJekyll/syntax-firewatch";
25
- // $code-background-color: #282c34;
27
+ // $code-background-color: #282c34; // OneDarkJekyll default for syntax-firewatch
28
+ // $code-linenumber-color: #abb2bf; // OneDarkJekyll .nf for syntax-firewatch
26
29
 
27
30
  // @import "./vendor/OneDarkJekyll/syntax-firewatch-green";
28
- // $code-background-color: #282c34;
31
+ // $code-background-color: #282c34; // OneDarkJekyll default for syntax-firewatch-green
32
+ // $code-linenumber-color: #abb2bf; // OneDarkJekyll .nf for syntax-firewatch-green
@@ -1,4 +1 @@
1
- $pink-000: #f77ef1;
2
- $pink-100: #f967f1;
3
- $pink-200: #e94ee1;
4
- $pink-300: #dd2cd4;
1
+ // custom SCSS (or CSS) goes here
@@ -0,0 +1 @@
1
+ // custom setup code goes here
data/_sass/search.scss CHANGED
@@ -123,7 +123,7 @@
123
123
 
124
124
  .search-result {
125
125
  display: block;
126
- padding-top: $sp-1 $sp-3;
126
+ padding: $sp-1 $sp-3;
127
127
 
128
128
  &:hover,
129
129
  &.active {
@@ -1,5 +1,4 @@
1
1
  // Typography
2
-
3
2
  // stylelint-disable selector-no-type, selector-max-type, selector-max-specificity, selector-max-id
4
3
 
5
4
  h1,
@@ -87,6 +87,7 @@ function initSearch() {
87
87
  this.metadataWhitelist = ['position']
88
88
 
89
89
  for (var i in docs) {
90
+ {% include lunr/custom-index.js %}
90
91
  this.add({
91
92
  id: i,
92
93
  title: docs[i].title,
@@ -503,7 +504,7 @@ jtd.onReady(function(){
503
504
 
504
505
  copyButton.addEventListener('click', function () {
505
506
  if(timeout === null) {
506
- var code = codeBlock.querySelector('pre:not(.lineno)').innerText;
507
+ var code = (codeBlock.querySelector('pre:not(.lineno, .highlight)') || codeBlock.querySelector('code')).innerText;
507
508
  window.navigator.clipboard.writeText(code);
508
509
 
509
510
  copyButton.innerHTML = svgCopied;
@@ -51,6 +51,7 @@ permalink: /assets/js/search-data.json
51
51
  "title": {{ title | jsonify }},
52
52
  "content": {{ content | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
53
53
  "url": "{{ url | relative_url }}",
54
+ {% include lunr/custom-data.json page=page %}
54
55
  "relUrl": "{{ url }}"
55
56
  }
56
57
  {%- assign i = i | plus: 1 -%}
@@ -62,6 +63,7 @@ permalink: /assets/js/search-data.json
62
63
  "title": {{ page.title | jsonify }},
63
64
  "content": {{ parts[0] | replace: '</h', ' . </h' | replace: '<hr', ' . <hr' | replace: '</p', ' . </p' | replace: '<ul', ' . <ul' | replace: '</ul', ' . </ul' | replace: '<ol', ' . <ol' | replace: '</ol', ' . </ol' | replace: '</tr', ' . </tr' | replace: '<li', ' | <li' | replace: '</li', ' | </li' | replace: '</td', ' | </td' | replace: '<td', ' | <td' | replace: '</th', ' | </th' | replace: '<th', ' | <th' | strip_html | remove: 'Table of contents' | normalize_whitespace | replace: '. . .', '.' | replace: '. .', '.' | replace: '| |', '|' | append: ' ' | jsonify }},
64
65
  "url": "{{ page.url | relative_url }}",
66
+ {% include lunr/custom-data.json page=page %}
65
67
  "relUrl": "{{ page.url }}"
66
68
  }
67
69
  {%- assign i = i | plus: 1 -%}
@@ -61,6 +61,7 @@ permalink: /assets/js/search-data.json
61
61
  "title": {{ title | jsonify }},
62
62
  "content": {{ content | replace: \'</h\', \' . </h\' | replace: \'<hr\', \' . <hr\' | replace: \'</p\', \' . </p\' | replace: \'<ul\', \' . <ul\' | replace: \'</ul\', \' . </ul\' | replace: \'<ol\', \' . <ol\' | replace: \'</ol\', \' . </ol\' | replace: \'</tr\', \' . </tr\' | replace: \'<li\', \' | <li\' | replace: \'</li\', \' | </li\' | replace: \'</td\', \' | </td\' | replace: \'<td\', \' | <td\' | replace: \'</th\', \' | </th\' | replace: \'<th\', \' | <th\' | strip_html | remove: \'Table of contents\' | normalize_whitespace | replace: \'. . .\', \'.\' | replace: \'. .\', \'.\' | replace: \'| |\', \'|\' | append: \' \' | jsonify }},
63
63
  "url": "{{ url | relative_url }}",
64
+ {% include lunr/custom-data.json page=page %}
64
65
  "relUrl": "{{ url }}"
65
66
  }
66
67
  {%- assign i = i | plus: 1 -%}
@@ -72,6 +73,7 @@ permalink: /assets/js/search-data.json
72
73
  "title": {{ page.title | jsonify }},
73
74
  "content": {{ parts[0] | replace: \'</h\', \' . </h\' | replace: \'<hr\', \' . <hr\' | replace: \'</p\', \' . </p\' | replace: \'<ul\', \' . <ul\' | replace: \'</ul\', \' . </ul\' | replace: \'<ol\', \' . <ol\' | replace: \'</ol\', \' . </ol\' | replace: \'</tr\', \' . </tr\' | replace: \'<li\', \' | <li\' | replace: \'</li\', \' | </li\' | replace: \'</td\', \' | </td\' | replace: \'<td\', \' | <td\' | replace: \'</th\', \' | </th\' | replace: \'<th\', \' | <th\' | strip_html | remove: \'Table of contents\' | normalize_whitespace | replace: \'. . .\', \'.\' | replace: \'. .\', \'.\' | replace: \'| |\', \'|\' | append: \' \' | jsonify }},
74
75
  "url": "{{ page.url | relative_url }}",
76
+ {% include lunr/custom-data.json page=page %}
75
77
  "relUrl": "{{ page.url }}"
76
78
  }
77
79
  {%- assign i = i | plus: 1 -%}
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: just-the-docs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0.rc4
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Marsceill
8
8
  - Matthew Wang
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-01-08 00:00:00.000000000 Z
12
+ date: 2023-02-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -67,7 +67,7 @@ dependencies:
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: 12.3.1
70
- description:
70
+ description:
71
71
  email:
72
72
  - patrick.marsceill@gmail.com
73
73
  - matt@matthewwang.me
@@ -106,6 +106,8 @@ files:
106
106
  - _includes/icons/menu.html
107
107
  - _includes/icons/search.html
108
108
  - _includes/js/custom.js
109
+ - _includes/lunr/custom-data.json
110
+ - _includes/lunr/custom-index.js
109
111
  - _includes/mermaid_config.js
110
112
  - _includes/nav.html
111
113
  - _includes/nav_footer_custom.html
@@ -128,6 +130,7 @@ files:
128
130
  - _sass/color_schemes/light.scss
129
131
  - _sass/content.scss
130
132
  - _sass/custom/custom.scss
133
+ - _sass/custom/setup.scss
131
134
  - _sass/labels.scss
132
135
  - _sass/layout.scss
133
136
  - _sass/modules.scss
@@ -164,10 +167,7 @@ files:
164
167
  - assets/css/just-the-docs-dark.scss
165
168
  - assets/css/just-the-docs-default.scss
166
169
  - assets/css/just-the-docs-light.scss
167
- - assets/images/just-the-docs.png
168
- - assets/images/large-image.jpg
169
170
  - assets/images/search.svg
170
- - assets/images/small-image.jpg
171
171
  - assets/js/just-the-docs.js
172
172
  - assets/js/vendor/lunr.min.js
173
173
  - assets/js/zzzz-search-data.json
@@ -182,7 +182,7 @@ metadata:
182
182
  changelog_uri: https://github.com/just-the-docs/just-the-docs/blob/main/CHANGELOG.md
183
183
  documentation_uri: https://just-the-docs.github.io/just-the-docs/
184
184
  source_code_uri: https://github.com/just-the-docs/just-the-docs
185
- post_install_message:
185
+ post_install_message:
186
186
  rdoc_options: []
187
187
  require_paths:
188
188
  - lib
@@ -193,13 +193,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements:
196
- - - ">"
196
+ - - ">="
197
197
  - !ruby/object:Gem::Version
198
- version: 1.3.1
198
+ version: '0'
199
199
  requirements: []
200
- rubygems_version: 3.3.26
201
- signing_key:
200
+ rubygems_version: 3.3.7
201
+ signing_key:
202
202
  specification_version: 4
203
- summary: A modern, highly customizable, and responsive Jekyll theme for documention
203
+ summary: A modern, highly customizable, and responsive Jekyll theme for documentation
204
204
  with built-in search.
205
205
  test_files: []
Binary file
Binary file
Binary file