just-the-docs 0.4.0.rc3 → 0.4.0.rc5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +243 -25
  3. data/README.md +39 -13
  4. data/_includes/components/aux_nav.html +15 -0
  5. data/_includes/components/breadcrumbs.html +15 -0
  6. data/_includes/components/children_nav.html +9 -0
  7. data/_includes/components/footer.html +34 -0
  8. data/_includes/components/header.html +11 -0
  9. data/_includes/components/mermaid.html +5 -0
  10. data/_includes/components/search_footer.html +7 -0
  11. data/_includes/components/search_header.html +9 -0
  12. data/_includes/components/sidebar.html +69 -0
  13. data/_includes/css/just-the-docs.scss.liquid +2 -1
  14. data/_includes/head.html +19 -14
  15. data/_includes/icons/code_copy.html +15 -0
  16. data/_includes/icons/document.html +6 -0
  17. data/_includes/icons/expand.html +6 -0
  18. data/_includes/icons/icons.html +13 -0
  19. data/_includes/icons/link.html +6 -0
  20. data/_includes/icons/menu.html +6 -0
  21. data/_includes/icons/search.html +6 -0
  22. data/_includes/lunr/custom-data.json +0 -0
  23. data/_includes/lunr/custom-index.js +0 -0
  24. data/_includes/nav.html +50 -32
  25. data/_includes/vendor/anchor_headings.html +46 -18
  26. data/_layouts/default.html +8 -196
  27. data/_layouts/minimal.html +60 -0
  28. data/_sass/buttons.scss +1 -4
  29. data/_sass/code.scss +101 -26
  30. data/_sass/color_schemes/dark.scss +8 -4
  31. data/_sass/custom/custom.scss +1 -4
  32. data/_sass/custom/setup.scss +1 -0
  33. data/_sass/labels.scss +1 -4
  34. data/_sass/layout.scss +1 -2
  35. data/_sass/navigation.scss +4 -14
  36. data/_sass/search.scss +9 -20
  37. data/_sass/tables.scss +1 -4
  38. data/_sass/typography.scss +0 -1
  39. data/assets/js/just-the-docs.js +45 -1
  40. data/assets/js/vendor/lunr.min.js +58 -3
  41. data/assets/js/zzzz-search-data.json +2 -0
  42. data/lib/tasks/search.rake +2 -0
  43. metadata +28 -12
  44. data/_includes/favicon.html +0 -1
  45. data/assets/images/just-the-docs.png +0 -0
  46. data/assets/images/large-image.jpg +0 -0
  47. data/assets/images/small-image.jpg +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ea3b0ea21a727723756d2d947483604eba31765e1cf40aecec9370cc87a3f90
4
- data.tar.gz: 1aa63df6cd1a17be4f37d2c3f7a6058f57c7c462ac857dc087c7aa41db406a1f
3
+ metadata.gz: 27c3121b1ff1760f720e64458a1943246f988a45381717153e659e7d54c700e9
4
+ data.tar.gz: 8d39c390841bd78261b1f7f9dd72576b708f3475676229b5627f83973c018f60
5
5
  SHA512:
6
- metadata.gz: defb8f100d04b9d497e20fd6c8fd5e29ef092a95362f85d453eafdffc17177d3e7b602c785da6e11106bbe5a4abee8ef242d6ff63251cdd7502c02a106c5c178
7
- data.tar.gz: 0ad188da9252379f41175089cbd53da0b10075c5e5057cbc2ebc26dfa8a7072e4d7f467b963eca03696b4f86ff40f3cb180149c63101fa4e0515611d50605d13
6
+ metadata.gz: 592cb6dd8830ef25db17c2f33ff2c3b0b48c3af397de959e58c64c84119d57da350ca05af2cdce8ca38ca684e60454e3a87a5b8eba934c2ba5cee0cd7da692ec
7
+ data.tar.gz: d8ebad34781d09fa15af1c5291b40a6f2c6077525ea7428af13c0230805bb98ea783335fa8e0d017b27dc97d3c2c9852435b333d472027383d9026b4326e6487
data/CHANGELOG.md CHANGED
@@ -5,7 +5,7 @@ layout: default
5
5
 
6
6
  # CHANGELOG
7
7
 
8
- All notable changes to this project are documented in this file.
8
+ All notable user-facing changes to this project are documented in this file.
9
9
 
10
10
  {: .highlight }
11
11
  The project underwent a major maintenance shift in March 2022.
@@ -16,11 +16,229 @@ 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.rc2` and `v0.3.3`!
19
+ This website includes docs for some new features that are not available in `v0.4.0.rc5` and `v0.3.3`!
20
20
 
21
21
  Changes to `main` that are *not* in the latest pre-release:
22
22
 
23
- - N/A
23
+ - n/a
24
+
25
+ ## Pre-release v0.4.0.rc5
26
+
27
+ 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.
28
+
29
+ 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`.
30
+
31
+ ### Trying out pre-release `v0.4.0.rc5`
32
+
33
+ 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.
34
+
35
+ To use this RC explicitly as a remote theme:
36
+
37
+ ```yml
38
+ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc5
39
+ ```
40
+
41
+ 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`:
42
+
43
+ ```Ruby
44
+ gem "just-the-docs", "0.4.0.rc5"
45
+ ```
46
+
47
+ By default, **users will not be upgraded to `0.4.0.rc5`**. To enforce that explicitly, either:
48
+
49
+ 1. pin your gem version in your `Gemfile`, like so
50
+ ```Ruby
51
+ gem "just-the-docs", "0.3.3"
52
+ ```
53
+ 2. freeze the `remote_theme`, like so
54
+ ```yml
55
+ remote_theme: just-the-docs/just-the-docs@v0.3.3
56
+ ```
57
+
58
+ ### New Features
59
+
60
+ - Added: includes for custom `lunr` Liquid and JS code by [@diablodale] in [#1068]
61
+ - Added: new `_sass/custom/setup.scss` for variable definition by [@mattxwang] in [#1135]
62
+ - Added: configuration key to load a local version of mermaid by [@fabrik42] in [#1153]
63
+
64
+ ### Bugfixes and Maintenance
65
+
66
+ - Fixed: incorrect `padding` property value pair in `search.scss` by [@kevinlin1] in [#1123]
67
+ - Fixed: minor spacing and comment nits by [@EricFromCanada] in [#1128]
68
+ - Fixed: exclude images from being bundled with gem by [@m-r-mccormick] in [#1142]
69
+ - Fixed: dark theme code block background, line number colors by [@m-r-mccormick] in [#1124]
70
+ - Fixed: copy code button interaction with kramdown line numbers by [@mattxwang] in [#1143]
71
+
72
+ ### Docs
73
+
74
+ - Docs: add a migration guide by [@pdmosses] in [#1059]
75
+ - Docs: update `README` demo video by [@codewithfan] in [#1097]
76
+ - Docs: update "View Typography Utilities" link by [@agabrys] in [#1130]
77
+ - Docs: fix broken relative page links by [@mattxwang] in [#1106]
78
+ - Docs: clarify steps to add custom `lunr` index code by [@diablodale] in [#1139]
79
+ - Docs: label new features introduced in `v0.4` by [@mattxwang] in [#1138]
80
+
81
+ ### New Contributors
82
+
83
+ - [@kevinlin1] made their first contribution in [#1123]
84
+ - [@codewithfan] made their first contribution in [#1097]
85
+ - [@agabrys] made their first contribution in [#1130]
86
+ - [@diablodale] made their first contribution in [#1068]
87
+ - [@m-r-mccormick] made their first contribution in [#1142]
88
+ - [@fabrik42] made their first contribution in [#1153]
89
+
90
+ [#1059]: https://github.com/just-the-docs/just-the-docs/pull/1059
91
+ [#1068]: https://github.com/just-the-docs/just-the-docs/pull/1068
92
+ [#1097]: https://github.com/just-the-docs/just-the-docs/pull/1097
93
+ [#1106]: https://github.com/just-the-docs/just-the-docs/pull/1106
94
+ [#1123]: https://github.com/just-the-docs/just-the-docs/pull/1123
95
+ [#1124]: https://github.com/just-the-docs/just-the-docs/pull/1124
96
+ [#1128]: https://github.com/just-the-docs/just-the-docs/pull/1128
97
+ [#1130]: https://github.com/just-the-docs/just-the-docs/pull/1130
98
+ [#1135]: https://github.com/just-the-docs/just-the-docs/pull/1135
99
+ [#1138]: https://github.com/just-the-docs/just-the-docs/pull/1138
100
+ [#1139]: https://github.com/just-the-docs/just-the-docs/pull/1139
101
+ [#1142]: https://github.com/just-the-docs/just-the-docs/pull/1142
102
+ [#1143]: https://github.com/just-the-docs/just-the-docs/pull/1143
103
+ [#1153]: https://github.com/just-the-docs/just-the-docs/pull/1153
104
+
105
+ [@agabrys]: https://github.com/agabrys
106
+ [@codewithfan]: https://github.com/codewithfan
107
+ [@diablodale]: https://github.com/diablodale
108
+ [@fabrik42]: https://github.com/fabrik42
109
+ [@kevinlin1]: https://github.com/kevinlin1
110
+ [@EricFromCanada]: https://github.com/EricFromCanada
111
+ [@m-r-mccormick]: https://github.com/m-r-mccormick
112
+
113
+ ## Pre-release v0.4.0.rc4
114
+
115
+ 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**.
116
+
117
+ Notable new additions include:
118
+
119
+ - modular site components, which split up the site into smaller reusable components; advanced theme users can then remix layouts quickly without duplication
120
+ - a "copy code" button to code blocks
121
+ - fixing bugs in generated TOCs and navigation from previous prereleases
122
+ - various cleanups of CSS and HTML markup
123
+
124
+ The roadmap to `v0.4.0` is small. We are only looking to:
125
+
126
+ - finish a migration guide, so users can easily upgrade from `v0.3.3` to `v0.4.0`
127
+ - fix one last bug relating to callouts and custom colors
128
+ - fix any new bugs introduced by this pre-release
129
+
130
+ Have any questions, thoughts, or concerns? We'd love to hear from you! Please [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!
131
+
132
+ ### Trying out pre-release `v0.4.0.rc4`
133
+
134
+ Simlar to the prior release, `v0.4.0.rc4` is a **release candidate** for the theme (i.e., a pre-release) with release `v0.4.0` coming soon. We want your help in testing the changes! As of now, the gem on RubyGems and the repository are updated to `v0.4.0.rc4`.
135
+
136
+ To use this RC explicitly as a remote theme:
137
+
138
+ ```yml
139
+ remote_theme: just-the-docs/just-the-docs@v0.4.0.rc4
140
+ ```
141
+
142
+ 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`:
143
+
144
+ ```Ruby
145
+ gem "just-the-docs", "0.4.0.rc4"
146
+ ```
147
+
148
+ By default, **users will not be upgraded to `0.4.0.rc4`**. To enforce that explicitly, either:
149
+
150
+ 1. pin your gem version in your `Gemfile`, like so
151
+ ```Ruby
152
+ gem "just-the-docs", "0.3.3"
153
+ ```
154
+ 2. freeze the `remote_theme`, like so
155
+ ```yml
156
+ remote_theme: just-the-docs/just-the-docs@v0.3.3
157
+ ```
158
+
159
+ ### New Features
160
+
161
+ - Added: support multiple Google Analytics tracking IDs, document UA -> GA4 switch by [@MichelleBlanchette] in [#1029]
162
+ - Added: copy code button to code snippets by [@simonebortolin] in [#945]
163
+ - Added: restore simple configuration of `favicon.ico` via `site.static_files` by [@pdmosses] in [#1095]
164
+ - Added: modularize site components by [@mattxwang] in [#1058]
165
+
166
+ ### Bugfixes and Maintenance
167
+
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
+ - Vendor: update `jekyll-anchor-headings`, `lunr.js` by [@mattxwang] in [#1071]
185
+
186
+ ### Docs
187
+
188
+ - Docs: fix typo in changelog links [@koppor] in [#1000]
189
+ - Docs: update homepage (focus: new features, conciseness, deduplication) by [@pdmosses] in [#1018]
190
+ - Docs: update README (focus: new features, conciseness, deduplication) by [@pdmosses] in [#1019]
191
+ - Docs: fix two bugs in "Customization" (custom favicon, new annotation) by [@mattxwang] in [#1090]
192
+ - Docs: Add warning about mandatory `_`-prefix for collections by [@max06] in [#1091]
193
+ - Docs: remove Google Analytics on main site by [@mattxwang] in [#1113]
194
+
195
+ ### New Contributors
196
+
197
+ - [@koppor] made their first contribution in [#1000]
198
+ - [@deseo] made their first contribution in [#1010]
199
+ - [@Tom-Brouwer] made their first contribution in [#1040]
200
+ - [@simonebortolin] made their first contribution in [#945]
201
+ - [@SConaway] made their first contribution in [#1104]
202
+ - [@captn3m0] made their first contribution in [#1110]
203
+
204
+ **Full Changelog**: https://github.com/just-the-docs/just-the-docs/compare/v0.4.0.rc3...v0.4.0.rc4
205
+
206
+ [#945]: https://github.com/just-the-docs/just-the-docs/pull/945
207
+ [#999]: https://github.com/just-the-docs/just-the-docs/pull/999
208
+ [#1000]: https://github.com/just-the-docs/just-the-docs/pull/1000
209
+ [#1001]: https://github.com/just-the-docs/just-the-docs/pull/1001
210
+ [#1010]: https://github.com/just-the-docs/just-the-docs/pull/1010
211
+ [#1015]: https://github.com/just-the-docs/just-the-docs/pull/1015
212
+ [#1018]: https://github.com/just-the-docs/just-the-docs/pull/1018
213
+ [#1019]: https://github.com/just-the-docs/just-the-docs/pull/1019
214
+ [#1021]: https://github.com/just-the-docs/just-the-docs/pull/1021
215
+ [#1027]: https://github.com/just-the-docs/just-the-docs/pull/1027
216
+ [#1029]: https://github.com/just-the-docs/just-the-docs/pull/1029
217
+ [#1040]: https://github.com/just-the-docs/just-the-docs/pull/1040
218
+ [#1058]: https://github.com/just-the-docs/just-the-docs/pull/1058
219
+ [#1061]: https://github.com/just-the-docs/just-the-docs/pull/1061
220
+ [#1065]: https://github.com/just-the-docs/just-the-docs/pull/1065
221
+ [#1071]: https://github.com/just-the-docs/just-the-docs/pull/1071
222
+ [#1074]: https://github.com/just-the-docs/just-the-docs/pull/1074
223
+ [#1076]: https://github.com/just-the-docs/just-the-docs/pull/1076
224
+ [#1077]: https://github.com/just-the-docs/just-the-docs/pull/1077
225
+ [#1090]: https://github.com/just-the-docs/just-the-docs/pull/1090
226
+ [#1091]: https://github.com/just-the-docs/just-the-docs/pull/1091
227
+ [#1092]: https://github.com/just-the-docs/just-the-docs/pull/1092
228
+ [#1095]: https://github.com/just-the-docs/just-the-docs/pull/1095
229
+ [#1096]: https://github.com/just-the-docs/just-the-docs/pull/1096
230
+ [#1102]: https://github.com/just-the-docs/just-the-docs/pull/1102
231
+ [#1104]: https://github.com/just-the-docs/just-the-docs/pull/1104
232
+ [#1110]: https://github.com/just-the-docs/just-the-docs/pull/1110
233
+ [#1113]: https://github.com/just-the-docs/just-the-docs/pull/1113
234
+
235
+ [@captn3m0]: https://github.com/captn3m0
236
+ [@deseo]: https://github.com/deseo
237
+ [@koppor]: https://github.com/koppor
238
+ [@MichelleBlanchette]: https://github.com/MichelleBlanchette
239
+ [@simonebortolin]: https://github.com/simonebortolin
240
+ [@SConaway]: https://github.com/SConaway
241
+ [@Tom-Brouwer]: https://github.com/Tom-Brouwer
24
242
 
25
243
  ## Pre-release v0.4.0.rc3
26
244
 
@@ -433,31 +651,31 @@ as well as DX improvements like better regression tests, CI, and tooling. If you
433
651
  * [@ivanskodje] made their first contribution in [#891]
434
652
  * [@Eisverygoodletter] made their first contribution in [#893]
435
653
 
436
- [@AdityaTiwari2102]: https://githhub.com/AdityaTiwari2102
437
- [@svrooij]: https://githhub.com/svrooij
438
- [@alexsegura]: https://githhub.com/alexsegura
439
- [@burner1024]: https://githhub.com/burner1024
440
- [@JeffGuKang]: https://githhub.com/JeffGuKang
441
- [@dougaitken]: https://githhub.com/dougaitken
442
- [@max06]: https://githhub.com/max06
443
- [@sehilyi]: https://githhub.com/sehilyi
444
- [@nathanjessen]: https://githhub.com/nathanjessen
445
- [@waldyrious]: https://githhub.com/waldyrious
446
- [@MichelleBlanchette]: https://githhub.com/MichelleBlanchette
447
- [@henryiii]: https://githhub.com/henryiii
448
- [@jmertic]: https://githhub.com/jmertic
449
- [@jacobhq]: https://githhub.com/jacobhq
450
- [@UnclassedPenguin]: https://githhub.com/UnclassedPenguin
451
- [@alyssais]: https://githhub.com/alyssais
452
- [@nascosto]: https://githhub.com/nascosto
453
- [@SPGoding]: https://githhub.com/SPGoding
454
- [@iridazzle]: https://githhub.com/iridazzle
455
- [@ivanskodje]: https://githhub.com/ivanskodje
456
- [@Eisverygoodletter]: https://githhub.com/Eisverygoodletter
654
+ [@AdityaTiwari2102]: https://github.com/AdityaTiwari2102
655
+ [@svrooij]: https://github.com/svrooij
656
+ [@alexsegura]: https://github.com/alexsegura
657
+ [@burner1024]: https://github.com/burner1024
658
+ [@JeffGuKang]: https://github.com/JeffGuKang
659
+ [@dougaitken]: https://github.com/dougaitken
660
+ [@max06]: https://github.com/max06
661
+ [@sehilyi]: https://github.com/sehilyi
662
+ [@nathanjessen]: https://github.com/nathanjessen
663
+ [@waldyrious]: https://github.com/waldyrious
664
+ [@MichelleBlanchette]: https://github.com/MichelleBlanchette
665
+ [@henryiii]: https://github.com/henryiii
666
+ [@jmertic]: https://github.com/jmertic
667
+ [@jacobhq]: https://github.com/jacobhq
668
+ [@UnclassedPenguin]: https://github.com/UnclassedPenguin
669
+ [@alyssais]: https://github.com/alyssais
670
+ [@nascosto]: https://github.com/nascosto
671
+ [@SPGoding]: https://github.com/SPGoding
672
+ [@iridazzle]: https://github.com/iridazzle
673
+ [@ivanskodje]: https://github.com/ivanskodje
674
+ [@Eisverygoodletter]: https://github.com/Eisverygoodletter
457
675
 
458
676
  **Full Changelog**: https://github.com/just-the-docs/just-the-docs/compare/v0.3.3...v0.4.0.rc1
459
677
 
460
- [@pmarsceill]: https://githhub.com/pmarsceill
678
+ [@pmarsceill]: https://github.com/pmarsceill
461
679
 
462
680
  ## v0.3.3
463
681
 
data/README.md CHANGED
@@ -9,22 +9,34 @@
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
 
16
- ### via GitHub Pages remote theme
18
+ ### Use the template
17
19
 
18
- The quickiest way to use Just The Docs is to use GitHub pages [remote theme](https://blog.github.com/2017-11-29-use-any-theme-with-github-pages/) feature in your `_config.yml` file:
20
+ The [Just the Docs Template] provides the simplest, quickest, and easiest way to create a new website that uses the Just the Docs theme. To get started with creating a site, just click "[use the template]"!
19
21
 
20
- ```yaml
21
- remote_theme: just-the-docs/just-the-docs
22
- ```
23
- ### via RubyGems:
22
+ Note: To use the theme, you do ***not*** need to clone or fork the [Just the Docs repo]! You should do that only if you intend to browse the theme docs locally, contribute to the development of the theme, or develop a new theme based on Just the Docs.
23
+
24
+ You can easily set the site created by the template to be published on [GitHub Pages] – the [template README] file explains how to do that, along with other details.
25
+
26
+ If [Jekyll] is installed on your computer, you can also build and preview the created site *locally*. This lets you test changes before committing them, and avoids waiting for GitHub Pages.[^2] And you will be able to deploy your local build to a different platform than GitHub Pages.
27
+
28
+ More specifically, the created site:
24
29
 
25
- Alternatively you can install it as a Ruby Gem.
30
+ - uses a gem-based approach, i.e. uses a `Gemfile` and loads the `just-the-docs` gem
31
+ - uses the [GitHub Pages / Actions workflow] to build and publish the site on GitHub Pages
26
32
 
27
- Add this line to your Jekyll site's Gemfile:
33
+ Other than that, you're free to customize sites that you create with the template, however you like. You can easily change the versions of `just-the-docs` and Jekyll it uses, as well as adding further plugins.
34
+
35
+ ### Use RubyGems
36
+
37
+ Alternatively, you can install the theme as a Ruby Gem, without creating a new site.
38
+
39
+ Add this line to your Jekyll site's `Gemfile`:
28
40
 
29
41
  ```ruby
30
42
  gem "just-the-docs"
@@ -50,16 +62,19 @@ Alternatively, you can run it inside Docker while developing your site
50
62
 
51
63
  ## Usage
52
64
 
53
- [View the documentation](https://just-the-docs.github.io/just-the-docs/) for usage information.
65
+ [View the documentation][Just the Docs] for usage information.
54
66
 
55
67
  ## Contributing
56
68
 
57
- Bug reports and pull requests are welcome on GitHub at https://github.com/just-the-docs/just-the-docs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
69
+ Bug reports, proposals of new features, and pull requests are welcome on GitHub at https://github.com/just-the-docs/just-the-docs. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
58
70
 
59
71
  ### Submitting code changes:
60
72
 
73
+ - Submit an [Issue](https://github.com/just-the-docs/just-the-docs/issues) that motivates the changes, using the appropriate template
74
+ - Discuss the proposed changes with other users and the maintainers
61
75
  - Open a [Pull Request](https://github.com/just-the-docs/just-the-docs/pulls)
62
76
  - Ensure all CI tests pass
77
+ - Provide instructions to check the effect of the changes
63
78
  - Await code review
64
79
 
65
80
  ### Design and development principles of this theme:
@@ -71,14 +86,25 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/just-t
71
86
 
72
87
  ## Development
73
88
 
74
- To set up your environment to develop this theme, run `bundle install`.
89
+ To set up your environment to develop this theme: fork this repo, the run `bundle install` from the root directory.
75
90
 
76
91
  A modern [devcontainer configuration](https://code.visualstudio.com/docs/remote/containers) for VSCode is included.
77
92
 
78
93
  Your theme is set up just like a normal Jekyll site! To test your theme, run `bundle exec jekyll serve` and open your browser at `http://localhost:4000`. This starts a Jekyll server using your theme. Add pages, documents, data, etc. like normal to test your theme's contents. As you make modifications to your theme and to your content, your site will regenerate and you should see the changes in the browser after a refresh, just like normal.
79
94
 
80
- When the theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be released.
95
+ When this theme is released, only the files in `_layouts`, `_includes`, and `_sass` tracked with Git will be included in the gem.
81
96
 
82
97
  ## License
83
98
 
84
99
  The theme is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
100
+
101
+ [^2]: [It can take up to 10 minutes for changes to your site to publish after you push the changes to GitHub](https://docs.github.com/en/pages/setting-up-a-github-pages-site-with-jekyll/creating-a-github-pages-site-with-jekyll#creating-your-site).
102
+
103
+ [Jekyll]: https://jekyllrb.com
104
+ [Just the Docs Template]: https://just-the-docs.github.io/just-the-docs-template/
105
+ [Just the Docs]: https://just-the-docs.github.io/just-the-docs/
106
+ [Just the Docs repo]: https://github.com/just-the-docs/just-the-docs
107
+ [GitHub Pages]: https://pages.github.com/
108
+ [Template README]: https://github.com/just-the-docs/just-the-docs-template/blob/main/README.md
109
+ [GitHub Pages / Actions workflow]: https://github.blog/changelog/2022-07-27-github-pages-custom-github-actions-workflows-beta/
110
+ [use the template]: https://github.com/just-the-docs/just-the-docs-template/generate
@@ -0,0 +1,15 @@
1
+ <nav aria-label="Auxiliary" class="aux-nav">
2
+ <ul class="aux-nav-list">
3
+ {% for link in site.aux_links %}
4
+ <li class="aux-nav-list-item">
5
+ <a href="{{ link.last }}" class="site-button"
6
+ {% if site.aux_links_new_tab %}
7
+ target="_blank" rel="noopener noreferrer"
8
+ {% endif %}
9
+ >
10
+ {{ link.first }}
11
+ </a>
12
+ </li>
13
+ {% endfor %}
14
+ </ul>
15
+ </nav>
@@ -0,0 +1,15 @@
1
+ {% unless page.url == "/" %}
2
+ {% if page.parent %}
3
+ <nav aria-label="Breadcrumb" class="breadcrumb-nav">
4
+ <ol class="breadcrumb-nav-list">
5
+ {% if page.grand_parent %}
6
+ <li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.grand_parent }}</a></li>
7
+ <li class="breadcrumb-nav-list-item"><a href="{{ second_level_url }}">{{ page.parent }}</a></li>
8
+ {% else %}
9
+ <li class="breadcrumb-nav-list-item"><a href="{{ first_level_url }}">{{ page.parent }}</a></li>
10
+ {% endif %}
11
+ <li class="breadcrumb-nav-list-item"><span>{{ page.title }}</span></li>
12
+ </ol>
13
+ </nav>
14
+ {% endif %}
15
+ {% endunless %}
@@ -0,0 +1,9 @@
1
+ <hr>
2
+ {% include toc_heading_custom.html %}
3
+ <ul>
4
+ {% for child in include.toc_list %}
5
+ <li>
6
+ <a href="{{ child.url | relative_url }}">{{ child.title }}</a>{% if child.summary %} - {{ child.summary }}{% endif %}
7
+ </li>
8
+ {% endfor %}
9
+ </ul>
@@ -0,0 +1,34 @@
1
+ {% capture footer_custom %}
2
+ {%- include footer_custom.html -%}
3
+ {% endcapture %}
4
+ {% if footer_custom != "" or site.last_edit_timestamp or site.gh_edit_link %}
5
+ <hr>
6
+ <footer>
7
+ {% if site.back_to_top %}
8
+ <p><a href="#top" id="back-to-top">{{ site.back_to_top_text }}</a></p>
9
+ {% endif %}
10
+
11
+ {{ footer_custom }}
12
+
13
+ {% if site.last_edit_timestamp or site.gh_edit_link %}
14
+ <div class="d-flex mt-2">
15
+ {% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
16
+ <p class="text-small text-grey-dk-000 mb-0 mr-2">
17
+ Page last modified: <span class="d-inline-block">{{ page.last_modified_date | date: site.last_edit_time_format }}</span>.
18
+ </p>
19
+ {% endif %}
20
+ {% if
21
+ site.gh_edit_link and
22
+ site.gh_edit_link_text and
23
+ site.gh_edit_repository and
24
+ site.gh_edit_branch and
25
+ site.gh_edit_view_mode
26
+ %}
27
+ <p class="text-small text-grey-dk-000 mb-0">
28
+ <a href="{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}{% if site.gh_edit_source %}/{{ site.gh_edit_source }}{% endif %}{% if page.collection and site.collections_dir %}/{{ site.collections_dir }}{% endif %}/{{ page.path }}" id="edit-this-page">{{ site.gh_edit_link_text }}</a>
29
+ </p>
30
+ {% endif %}
31
+ </div>
32
+ {% endif %}
33
+ </footer>
34
+ {% endif %}
@@ -0,0 +1,11 @@
1
+ <div id="main-header" class="main-header">
2
+ {% if site.search_enabled != false %}
3
+ {% include components/search_header.html %}
4
+ {% else %}
5
+ <div></div>
6
+ {% endif %}
7
+ {% include header_custom.html %}
8
+ {% if site.aux_links %}
9
+ {% include components/aux_nav.html %}
10
+ {% endif %}
11
+ </div>
@@ -0,0 +1,5 @@
1
+ <script>
2
+ var config = {% include mermaid_config.js %};
3
+ mermaid.initialize(config);
4
+ window.mermaid.init(undefined, document.querySelectorAll('.language-mermaid'));
5
+ </script>
@@ -0,0 +1,7 @@
1
+ {% if site.search.button %}
2
+ <a href="#" id="search-button" class="search-button">
3
+ <svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-search"></use></svg>
4
+ </a>
5
+ {% endif %}
6
+
7
+ <div class="search-overlay"></div>
@@ -0,0 +1,9 @@
1
+ {% capture search_placeholder %}{% include search_placeholder_custom.html %}{% endcapture %}
2
+
3
+ <div class="search">
4
+ <div class="search-input-wrap">
5
+ <input type="text" id="search-input" class="search-input" tabindex="0" placeholder="{{ search_placeholder | strip_html | strip }}" aria-label="{{ search_placeholder | strip_html| strip }}" autocomplete="off">
6
+ <label for="search-input" class="search-label"><svg viewBox="0 0 24 24" class="search-icon"><use xlink:href="#svg-search"></use></svg></label>
7
+ </div>
8
+ <div id="search-results" class="search-results"></div>
9
+ </div>
@@ -0,0 +1,69 @@
1
+ <div class="side-bar">
2
+ <div class="site-header">
3
+ <a href="{{ '/' | relative_url }}" class="site-title lh-tight">{% include title.html %}</a>
4
+ <a href="#" id="menu-button" class="site-button">
5
+ <svg viewBox="0 0 24 24" class="icon"><use xlink:href="#svg-menu"></use></svg>
6
+ </a>
7
+ </div>
8
+ <nav aria-label="Main" id="site-nav" class="site-nav">
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 %}
14
+ {% if pages_top_size > 0 %}
15
+ {% include nav.html pages=site.html_pages key=nil %}
16
+ {% endif %}
17
+ {%- if site.nav_external_links -%}
18
+ <ul class="nav-list">
19
+ {%- for node in site.nav_external_links -%}
20
+ <li class="nav-list-item external">
21
+ <a href="{{ node.url | absolute_url }}" class="nav-list-link external">
22
+ {{ node.title }}
23
+ {% unless node.hide_icon %}<svg viewBox="0 0 24 24" aria-labelledby="svg-external-link-title"><use xlink:href="#svg-external-link"></use></svg>{% endunless %}
24
+ </a>
25
+ </li>
26
+ {%- endfor -%}
27
+ </ul>
28
+ {%- endif -%}
29
+ {% if site.just_the_docs.collections %}
30
+ {% assign collections_size = site.just_the_docs.collections | size %}
31
+ {% for collection_entry in site.just_the_docs.collections %}
32
+ {% assign collection_key = collection_entry[0] %}
33
+ {% assign collection_value = collection_entry[1] %}
34
+ {% assign collection = site[collection_key] %}
35
+ {% if collection_value.nav_exclude != true %}
36
+ {% if collections_size > 1 or pages_top_size > 0 %}
37
+ {% if collection_value.nav_fold == true %}
38
+ <ul class="nav-list nav-category-list">
39
+ <li class="nav-list-item{% if page.collection == collection_key %} active{% endif %}">
40
+ {%- if collection.size > 0 -%}
41
+ <a href="#" class="nav-list-expander"><svg viewBox="0 0 24 24"><use xlink:href="#svg-arrow-right"></use></svg></a>
42
+ {%- endif -%}
43
+ <div class="nav-category">{{ collection_value.name }}</div>
44
+ {% include nav.html pages=collection key=collection_key %}
45
+ </li>
46
+ </ul>
47
+ {% else %}
48
+ <div class="nav-category">{{ collection_value.name }}</div>
49
+ {% include nav.html pages=collection key=collection_key %}
50
+ {% endif %}
51
+ {% else %}
52
+ {% include nav.html pages=collection key=collection_key %}
53
+ {% endif %}
54
+ {% endif %}
55
+ {% endfor %}
56
+ {% endif %}
57
+ </nav>
58
+
59
+ {% capture nav_footer_custom %}
60
+ {%- include nav_footer_custom.html -%}
61
+ {% endcapture %}
62
+ {% if nav_footer_custom != "" %}
63
+ {{ nav_footer_custom }}
64
+ {% else %}
65
+ <footer class="site-footer">
66
+ This site uses <a href="https://github.com/just-the-docs/just-the-docs">Just the Docs</a>, a documentation theme for Jekyll.
67
+ </footer>
68
+ {% endif %}
69
+ </div>
@@ -2,8 +2,9 @@
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";
8
- {% include css/custom.scss.liquid %}
9
9
  {% include css/callouts.scss.liquid color_scheme = include.color_scheme %}
10
+ {% include css/custom.scss.liquid %}