Matt Wang
ce32212026
docs: add sitemap (via jekyll-sitemap
plugin) ( #1530 )
...
Splitting this out of #1513 to make my life reviewing a bit easier! Note that this does *not* affect our downstream users, just the docs site for this project itself.
---------
Co-authored-by: Michael Ball <michael@mball.co>
2024-09-04 16:08:19 -07:00
dependabot[bot]
9f48631732
Bump stylelint from 16.8.2 to 16.9.0 ( #1525 )
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 16.8.2 to 16.9.0.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.8.2...16.9.0 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-28 13:35:06 -07:00
dependabot[bot]
1ebf644f84
Bump rexml from 3.3.3 to 3.3.6 ( #1520 )
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.3.3 to 3.3.6.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.3.3...v3.3.6 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-22 15:30:15 -07:00
Peter Mosses
26be7e9b0c
Update CHANGELOG.md
...
Remove outdated URL
2024-08-20 23:15:36 +02:00
Peter Mosses
dd0b814bfd
Docs: Allow unlimited multi-level navigation ( #1440 )
...
* Remove `jekyll-default-layout` plugin
* Move docs/navigation-structure to docs/navigation
* Fix uses of line-nos in md files
* Update CHANGELOG.md
---------
Co-authored-by: Matt Wang <matt@matthewwang.me>
2024-08-20 22:50:47 +02:00
Peter Mosses
a4e4e312aa
Feature: Allow unlimited multi-level navigation ( #1431 )
...
* Allow unlimited multi-level navigation
This PR supersedes #462 .
The only user-level difference from #462 is that disambiguation of parent pages has to use either `grand_parent` or `ancestor` titles: the somewhat unnatural `section_id` and `in_section` fields are not supported.
The implementation has been significantly simplified by the changes introduced in v0.7.0 of the theme.
* Detect cyclic parenthood
A page should not have a parent or ancestor with the same title. If it does, the location of the repeated link is marked by ∞, to facilitate debugging the navigation (and an unbounded loop leading to a build exception is avoided).
* Add nav_error_report warning in main navigation
When activated by `nav_error_report: true` in `_config.yml`, displays warnings about pages with the same title as their parent page or an ancestral page.
* Cache site-nav with links to all pages
The extra cached site-nav is used for determining breadcrumbs and children navigation, which may involve pages that are excluded from the main navigation.
* Replace code for determining children by inclusion of components/nav/children.html
* Update CHANGELOG.md
---------
Co-authored-by: Matt Wang <matt@matthewwang.me>
2024-08-20 22:34:11 +02:00
dependabot[bot]
0fc476871c
Bump stylelint from 16.8.1 to 16.8.2 ( #1515 )
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 16.8.1 to 16.8.2.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/16.8.1...16.8.2 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-16 11:18:12 -07:00
Matt Wang
ac78bfea6c
Fix CHANGELOG typo
...
🤦
2024-08-12 12:27:06 -07:00
Matt Wang
facad4c85a
0.9.0
v0.9.0
2024-08-12 12:23:52 -07:00
Matt Wang
3974fb87e2
Prep: 0.9.0
2024-08-12 12:21:46 -07:00
Matt Wang
060bb31a78
Apply Stylelint to vendor/
code, fix errors ( #1508 )
...
Changes are in three categories:
- whitespace
- devendoring prefixes for properties that have entered the CSS spec - reasonable to autofix
- removing a duplicate `monospace` in `monospace, monospace` `font-family` decl in normalize.scss - not autofix
2024-08-12 12:10:00 -07:00
Matt Wang
4862864318
Bump stylelint to v16, SCSS config to v13 ( #1507 )
...
Seems like this major update isn't caught by dependabot. Should be a straightforward upgrade!
Separately, going to plan on removing files from our `ignoreFiles` -- in particular, auditing our vendor files (which have some issues).
2024-08-12 11:34:37 -07:00
Bob van de Vijver
9aa1eeac3c
Fix Sass mixed declarations ( #1495 )
...
As requested (https://github.com/just-the-docs/just-the-docs/issues/1493#issuecomment-2227203330 ), a PR to resolve the Sass deprecations. Seems to solve all deprecations I am seeing, and I am not seeing any weird changes in the resulting CSS file.
Closes #1493 .
<details>
<summary>Git diff of generated CSS file</summary>
```patch
diff --git a/just-the-docs-default.css b/just-the-docs-default.css.new
index fe42b2d..50a103b 100644
--- a/just-the-docs-default.css
+++ b/just-the-docs-default.css.new
@@ -591,9 +591,11 @@ template {
}
html {
- font-size: 0.875rem !important;
scroll-behavior: smooth;
}
+html {
+ font-size: 0.875rem !important;
+}
@media (min-width: 31.25rem) {
html {
font-size: 1rem !important;
@@ -715,25 +717,50 @@ blockquote {
min-width: 16.5rem;
}
}
-
@media (min-width: 50rem) {
- .main {
- position: relative;
- max-width: 50rem;
+ .side-bar + .main {
margin-left: 15.5rem;
}
}
@media (min-width: 66.5rem) {
- .main {
+ .side-bar + .main {
margin-left: max(16.5rem, (100% - 66.5rem) / 2 + 16.5rem);
}
}
+.side-bar + .main .main-header {
+ display: none;
+ background-color: #f5f6fa;
+}
+@media (min-width: 50rem) {
+ .side-bar + .main .main-header {
+ display: flex;
+ background-color: #fff;
+ }
+}
+.side-bar + .main .main-header.nav-open {
+ display: block;
+}
+@media (min-width: 50rem) {
+ .side-bar + .main .main-header.nav-open {
+ display: flex;
+ }
+}
+
+.main {
+ margin: auto;
+}
+@media (min-width: 50rem) {
+ .main {
+ position: relative;
+ max-width: 50rem;
+ }
+}
.main-content-wrap {
- padding-right: 1rem;
- padding-left: 1rem;
padding-top: 1rem;
padding-bottom: 1rem;
+ padding-right: 1rem;
+ padding-left: 1rem;
}
@media (min-width: 50rem) {
.main-content-wrap {
@@ -750,24 +777,13 @@ blockquote {
.main-header {
z-index: 0;
- display: none;
- background-color: #f5f6fa;
+ border-bottom: 1px solid #eeebee;
}
@media (min-width: 50rem) {
.main-header {
display: flex;
justify-content: space-between;
height: 3.75rem;
- background-color: #fff;
- border-bottom: 1px solid #eeebee;
- }
-}
-.main-header.nav-open {
- display: block;
-}
-@media (min-width: 50rem) {
- .main-header.nav-open {
- display: flex;
}
}
@@ -814,8 +830,6 @@ blockquote {
}
.site-title {
- padding-right: 1rem;
- padding-left: 1rem;
flex-grow: 1;
display: flex;
height: 100%;
@@ -823,7 +837,8 @@ blockquote {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #27262b;
- font-size: 1.125rem !important;
+ padding-right: 1rem;
+ padding-left: 1rem;
}
@media (min-width: 50rem) {
.site-title {
@@ -831,6 +846,9 @@ blockquote {
padding-left: 2rem;
}
}
+.site-title {
+ font-size: 1.125rem !important;
+}
@media (min-width: 31.25rem) {
.site-title {
font-size: 1.5rem !important;
@@ -877,15 +895,14 @@ body {
}
.site-footer {
- padding-right: 1rem;
- padding-left: 1rem;
position: absolute;
bottom: 0;
left: 0;
padding-top: 1rem;
padding-bottom: 1rem;
color: #959396 ;
- font-size: 0.6875rem !important;
+ padding-right: 1rem;
+ padding-left: 1rem;
}
@media (min-width: 50rem) {
.site-footer {
@@ -893,6 +910,9 @@ body {
padding-left: 2rem;
}
}
+.site-footer {
+ font-size: 0.6875rem !important;
+}
@media (min-width: 31.25rem) {
.site-footer {
font-size: 0.75rem !important;
@@ -948,6 +968,8 @@ body {
color: #959396 ;
content: counter(step-counter);
counter-increment: step-counter;
+}
+.main-content ol > li::before {
font-size: 0.75rem !important;
}
@media (min-width: 31.25rem) {
@@ -1150,10 +1172,12 @@ body {
list-style: none;
}
.nav-list .nav-list-item {
- font-size: 0.875rem !important;
position: relative;
margin: 0;
}
+.nav-list .nav-list-item {
+ font-size: 0.875rem !important;
+}
@media (min-width: 31.25rem) {
.nav-list .nav-list-item {
font-size: 1rem !important;
@@ -1246,6 +1270,8 @@ body {
text-align: start;
text-transform: uppercase;
border-bottom: 1px solid #eeebee;
+}
+.nav-category {
font-size: 0.6875rem !important;
}
@media (min-width: 31.25rem) {
@@ -1280,6 +1306,8 @@ body {
.aux-nav {
height: 100%;
overflow-x: auto;
+}
+.aux-nav {
font-size: 0.6875rem !important;
}
@media (min-width: 31.25rem) {
@@ -1320,6 +1348,8 @@ body {
.breadcrumb-nav-list-item {
display: table-cell;
+}
+.breadcrumb-nav-list-item {
font-size: 0.6875rem !important;
}
@media (min-width: 31.25rem) {
@@ -1341,11 +1371,14 @@ body {
content: "";
}
+h1,
+.text-alpha {
+ font-weight: 300;
+}
h1,
.text-alpha {
font-size: 2rem !important;
line-height: 1.25;
- font-weight: 300;
}
@media (min-width: 31.25rem) {
h1,
@@ -1381,11 +1414,14 @@ h3,
h4,
.text-delta {
- font-size: 0.6875rem !important;
font-weight: 400;
text-transform: uppercase;
letter-spacing: 0.1em;
}
+h4,
+.text-delta {
+ font-size: 0.6875rem !important;
+}
@media (min-width: 31.25rem) {
h4,
.text-delta {
@@ -1454,9 +1490,12 @@ h6,
text-transform: uppercase;
vertical-align: middle;
background-color: #2869e6;
- font-size: 0.6875rem !important;
border-radius: 12px;
}
+.label:not(g),
+.label-blue:not(g) {
+ font-size: 0.6875rem !important;
+}
@media (min-width: 31.25rem) {
.label:not(g),
.label-blue:not(g) {
@@ -1752,6 +1791,8 @@ h6,
padding-left: 0;
margin-bottom: 0.25rem;
list-style: none;
+}
+.search-results-list {
font-size: 0.875rem !important;
}
@media (min-width: 31.25rem) {
@@ -1804,6 +1845,8 @@ h6,
}
.search-result-doc.search-result-doc-parent {
opacity: 0.5;
+}
+.search-result-doc.search-result-doc-parent {
font-size: 0.75rem !important;
}
@media (min-width: 31.25rem) {
@@ -1844,6 +1887,8 @@ h6,
color: #959396 ;
text-overflow: ellipsis;
white-space: nowrap;
+}
+.search-result-rel-url {
font-size: 0.5625rem !important;
}
@media (min-width: 31.25rem) {
@@ -1862,6 +1907,8 @@ h6,
word-wrap: break-word;
border-left: 1px solid;
border-left-color: #eeebee;
+}
+.search-result-previews {
font-size: 0.6875rem !important;
}
@media (min-width: 31.25rem) {
@@ -1889,6 +1936,8 @@ h6,
.search-no-result {
padding: 0.5rem 0.75rem;
+}
+.search-no-result {
font-size: 0.75rem !important;
}
@media (min-width: 31.25rem) {
@@ -1998,13 +2047,16 @@ table {
th,
td {
- font-size: 0.75rem !important;
min-width: 7.5rem;
padding: 0.5rem 0.75rem;
background-color: #fff;
border-bottom: 1px solid rgba(238, 235, 238, 0.5);
border-left: 1px solid #eeebee;
}
+th,
+td {
+ font-size: 0.75rem !important;
+}
@media (min-width: 31.25rem) {
th,
td {
@@ -2135,12 +2187,15 @@ figure.highlight :not(pre) > code {
}
.highlight .table-wrapper td,
.highlight .table-wrapper pre {
- font-size: 0.6875rem !important;
min-width: 0;
padding: 0;
background-color: #f5f6fa;
border: 0;
}
+.highlight .table-wrapper td,
+.highlight .table-wrapper pre {
+ font-size: 0.6875rem !important;
+}
@media (min-width: 31.25rem) {
.highlight .table-wrapper td,
.highlight .table-wrapper pre {
```
</details>
2024-08-12 11:34:20 -07:00
dependabot[bot]
3a7066ce70
Bump rexml from 3.2.8 to 3.3.3 ( #1504 )
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.2.8 to 3.3.3.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.8...v3.3.3 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-08-07 17:05:21 -07:00
dependabot[bot]
f3b947d64d
Bump prettier from 3.3.2 to 3.3.3 ( #1494 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.3.2...3.3.3 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-15 19:43:34 -07:00
dependabot[bot]
da4be68cfc
Bump prettier from 3.2.5 to 3.3.2 ( #1482 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.2.5 to 3.3.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.2.5...3.3.2 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-06-24 11:28:16 -07:00
dependabot[bot]
6242d32e21
Bump rexml from 3.2.6 to 3.2.8 ( #1476 )
...
Bumps [rexml](https://github.com/ruby/rexml ) from 3.2.6 to 3.2.8.
- [Release notes](https://github.com/ruby/rexml/releases )
- [Changelog](https://github.com/ruby/rexml/blob/master/NEWS.md )
- [Commits](https://github.com/ruby/rexml/compare/v3.2.6...v3.2.8 )
---
updated-dependencies:
- dependency-name: rexml
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-30 15:18:22 -07:00
Matt Wang
2dd535c2da
Fix: protect search-data.json
file from front matter default for layout ( #1468 )
...
Fixes #1466 . Prior art: #1447 . Otherwise self-explanatory.
To test:
1. First, clone [template repository](https://github.com/just-the-docs/just-the-docs-template/tree/main ). Observe that search works.
2. Next, add a default layout to all files
```yml
defaults:
- scope:
path: ""
values:
layout: "default"
```
3. Observe that search no longer works.
4. Apply this patch
5. Observe that search works again!
2024-05-15 17:06:27 -07:00
dependabot[bot]
1b79df8ebb
Bump nokogiri from 1.16.4 to 1.16.5 ( #1474 )
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.16.4 to 1.16.5.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.16.4...v1.16.5 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Matt Wang <matt@matthewwang.me>
2024-05-15 16:55:43 -07:00
dependabot[bot]
644287cf6b
Bump html-proofer from 5.0.8 to 5.0.9 ( #1472 )
...
Bumps [html-proofer](https://github.com/gjtorikian/html-proofer ) from 5.0.8 to 5.0.9.
- [Release notes](https://github.com/gjtorikian/html-proofer/releases )
- [Changelog](https://github.com/gjtorikian/html-proofer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/gjtorikian/html-proofer/compare/v5.0.8...v5.0.9 )
---
updated-dependencies:
- dependency-name: html-proofer
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-15 16:46:15 -07:00
Matt Wang
dd4613e8b1
Fix broken link to apidock.com ( #1475 )
...
(and, makes the link text more accessible)
Previous link: https://apidock.com/ruby/DateTime/strftime
2024-05-15 16:45:30 -07:00
Kevin Lin
a251382b7a
Add nav_enabled
variables for more customizable and feature-complete minimal layouts ( #1441 )
...
* Add nav_enabled variables for site/layout/page-level control
* _sass: Add a space around `+` operator
* assets: Do not compile based on site.nav_enabled
* _config.yml: nav_enabled can be selectively enabled
* CHANGELOG.md: Add nav_enabled feature and docs
* docs: Prefer em dash in describing minimal layout
* docs: Add section on Selectively hiding or showing the sidebar
* _layouts: Display sidebar based on variable importance
* docs: Update documentation on the minimal layout
* docs: Document site.nav_enabled configuration variable
---------
Co-authored-by: Matt Wang <matt@matthewwang.me>
2024-04-22 15:07:29 -07:00
Matt Wang
063a130ffd
Update preferred Ruby version to 3.3, update deps ( #1460 )
...
This PR essentially updates the "default" Ruby version to 3.3. In the process, it:
- fixes a bug with the linux platform for `sass-embedded`
- regenerates the `Gemfile.lock` with Bundler 2.5.9
- adds Ruby 3.3 to the testing matrix & updates our deployment actions to use Ruby 3.3
- removes Ruby 3.0 from the testing matrix, as it is now end of life
This PR is motivated by https://github.com/just-the-docs/just-the-docs-template/pull/45 , where I discovered that depending on the bundler/RubyGems version, the platform resolution for platformed gems can fail.
2024-04-17 16:59:47 -07:00
dependabot[bot]
df78a847b2
Bump rake from 13.2.0 to 13.2.1 ( #1453 )
...
Bumps [rake](https://github.com/ruby/rake ) from 13.2.0 to 13.2.1.
- [Release notes](https://github.com/ruby/rake/releases )
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc )
- [Commits](https://github.com/ruby/rake/compare/v13.2.0...v13.2.1 )
---
updated-dependencies:
- dependency-name: rake
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-05 14:35:10 -07:00
dependabot[bot]
5110bf71d7
Bump rake from 13.1.0 to 13.2.0 ( #1449 )
...
Bumps [rake](https://github.com/ruby/rake ) from 13.1.0 to 13.2.0.
- [Release notes](https://github.com/ruby/rake/releases )
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc )
- [Commits](https://github.com/ruby/rake/compare/v13.1.0...v13.2.0 )
---
updated-dependencies:
- dependency-name: rake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-02 10:27:40 -07:00
Matt Wang
e92afffb9c
0.8.2
v0.8.2
2024-04-01 11:26:23 -07:00
Matt Wang
e434f916ce
Prep 0.8.2
2024-04-01 11:25:25 -07:00
Peter Mosses
328893dd30
Fix: Protect theme JS file from front matter default for layout ( #1447 )
...
Fix #1445
Front matter defaults with unrestricted `scope` (`path: ""`) can affect theme code files. [Jekyll](https://jekyllrb.com/docs/front-matter/#predefined-global-variables ) supports using `null` to "produce a file without using a layout file".
This PR adds `layout: null` to `just-the-docs.js`, to avoid this file being affected by the following front matter defaults:
```yaml
defaults:
-
scope:
path: ""
values:
layout: "default"
```
2024-04-01 19:59:07 +02:00
Matt Wang
7de5f7abe5
0.8.1
v0.8.1
2024-03-06 14:53:10 -08:00
Matt Wang
930a0e0c36
Prep 0.8.1
2024-03-06 14:50:44 -08:00
Jos Ahrens
880f4dc8b0
Build docs site using strict mode and strict_filters
( #1435 )
...
Ref: https://github.com/just-the-docs/just-the-docs/pull/1434#issuecomment-1981666074
2024-03-06 14:48:00 -08:00
Jos Ahrens
15a0b6e91b
Fix Liquid filter typo in breadcrumb component (strip
instead of trim
) ( #1434 )
...
We are running into an issue upgrading from 0.7 to 0.8, suggesting that `trim` is not a method.
```
1.963 Liquid Exception: Liquid error (/usr/gem/gems/just-the-docs-0.8.0/_includes/components/breadcrumbs.html line 59): undefined filter trim included in /_layouts/default.html
1.968 /usr/gem/gems/liquid-4.0.4/lib/liquid/strainer.rb:58:in `invoke': Liquid error (/usr/gem/gems/just-the-docs-0.8.0/_includes/components/breadcrumbs.html line 59): undefined filter trim included (Liquid::UndefinedFilter)
```
Looking at the liquid docs, we're probably looking for `strip` and not `trim`
https://shopify.github.io/liquid/filters/strip/
https://github.com/Shopify/liquid/blob/main/History.md#300--2014-11-12 , I don't see a trim so it may have been an extension? This does work normally on just-the-docs itself running from scratch, so it might also be a bug in our application (or combination of different versions in plugins).
2024-03-06 14:39:45 -08:00
Matthew Wang
5357ffad22
0.8.0
v0.8.0
2024-02-22 22:07:18 -08:00
Matthew Wang
6fc71c108b
Prep 0.8.0
2024-02-22 22:05:07 -08:00
Peter Mosses
820d256bcd
Quicker build ( #1397 )
...
This PR uses the cached site-nav to determine the position of each page in the navigation hierarchy. [Profiling](https://just-the-docs.github.io/just-the-docs-tests/tests/profiles/index/ ) shows that it significantly reduces the v0.7.0 build time for larger sites – especially with Jekyll 3. The improvement is due mainly to the elimination of loops and filters that depended on the entire site.
For example:
- [endoflife.date](https://just-the-docs.github.io/just-the-docs-tests/tests/profiles/endoflife.date/index/ ) drops from 32s to 11s
- [machinetranslate.org](https://just-the-docs.github.io/just-the-docs-tests/tests/profiles/machinetranslate.org/index/ ) drops from 267s to ~~73s~~ 56s
### Testing
[Just the Docs Tests](https://just-the-docs.github.io/just-the-docs-tests/ ) is currently built using this PR branch. With JS disabled, the highlighting and unfolding of the navigation panel should be as with v0.7.0.
A diff of the tests site built with this PR branch compared to v0.7.0 should report no significant changes. For more rigorous testing, diffs of variants of the tests site should also be inspected.
2024-02-22 21:56:52 -08:00
dependabot[bot]
b8f6f2b75c
Bump prettier from 3.2.2 to 3.2.5 ( #1424 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.2.2 to 3.2.5.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.2.2...3.2.5 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-21 16:00:19 -08:00
Roman KC
01719a8752
Add configurable keyboard shortcut to focus search input ( #1411 )
...
Adds a keyboard shortcut to use Ctrl/Cmd and a configurable key to focus the search input. The key is configurable with `search.focus_shortcut_key`; enables it on the core docs site with `'k'` (default on many sites).
---------
Co-authored-by: Matt Wang <mxw@cs.washington.edu>
2024-02-21 20:43:45 +00:00
dependabot[bot]
52b4b444d0
Bump nokogiri from 1.15.4 to 1.16.2 ( #1425 )
...
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri ) from 1.15.4 to 1.16.2.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases )
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md )
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.15.4...v1.16.2 )
---
updated-dependencies:
- dependency-name: nokogiri
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-07 02:21:58 -08:00
Peter Mosses
742281635f
Fix navigation when .html
omitted ( #1374 )
...
* Prefer exact match of pathname
* Update CHANGELOG.md
2024-01-25 18:02:39 +01:00
dependabot[bot]
e96bf6ae3d
Bump prettier from 3.1.1 to 3.2.2 ( #1415 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.1.1 to 3.2.2.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.1.1...3.2.2 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-15 14:05:09 -08:00
Matt Wang
da38718d7a
Fix incorrect positioning of clickable area for navigation links on Safari ( #1403 )
...
Closes #1392 .
Unfortunately, this PR has not actually diagnosed the root problem with the `scrollBy` calculation/method and Safari. However, by using the [`scrollIntoView`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView ) function (which essentially does what the calculation was meant to do), this problem is "magically" solved! As a side effect, I think this makes the code easier to maintain (I myself was thinking: why is there a magic `3` multiplier?).
~~I will point out that this does change *how much is scrolled*; following the spec for the method, the sidebar is now scrolled so that the active navigation link is top-aligned with the scroll container (which in this case, is the navigation sidebar's "cutoff"). I personally am fine with this change, but happy to fiddle around (e.g. we could vertically align to the `center` via [`scrollIntoViewOptions`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView#parameters ), though I'm not sure if this causes compatability problems).~~
I will point out that this does change *how much is scrolled*; we are now using the `center` option to `scrollBy`, which centers the target link. As Peter has commented in the PR thread, this seems to be the best compromise for maintaining the spirit of the previous calculation.
### testing
Peter did a great job writing a reproducible bug report in #1392 . To test this,
1. first, follow the instructions verbatim on `main`. observe that the bug appears on Safari on macOS, but not Firefox and Chrome
2. then, apply this change (e.g. check out the branch)
3. next, replay the instructions - observing that
1. the bug is fixed on Safari
2. there is no change to the behaviour on Firefox and Chrome (other than the "start" of the scroll")
### compatability
On [Can I use](https://caniuse.com/scrollintoview ), `scrollIntoView` has 98.15% adoption (the only "major" holdout being Opera Mini); and, the partial support from IE is about an option that we don't use. So, I'm pretty confident that we should be able to roll out this change without our users being locked out by a new-ish method.
2024-01-01 14:19:24 -08:00
dependabot[bot]
0352428017
Bump jekyll-github-metadata from 2.16.0 to 2.16.1 ( #1407 )
...
Bumps [jekyll-github-metadata](https://github.com/jekyll/github-metadata ) from 2.16.0 to 2.16.1.
- [Release notes](https://github.com/jekyll/github-metadata/releases )
- [Changelog](https://github.com/jekyll/github-metadata/blob/main/History.markdown )
- [Commits](https://github.com/jekyll/github-metadata/compare/v2.16.0...v2.16.1 )
---
updated-dependencies:
- dependency-name: jekyll-github-metadata
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-29 15:09:56 -08:00
dependabot[bot]
69583cb94c
Bump jekyll from 4.3.2 to 4.3.3 ( #1406 )
...
Bumps [jekyll](https://github.com/jekyll/jekyll ) from 4.3.2 to 4.3.3.
- [Release notes](https://github.com/jekyll/jekyll/releases )
- [Changelog](https://github.com/jekyll/jekyll/blob/master/History.markdown )
- [Commits](https://github.com/jekyll/jekyll/compare/v4.3.2...v4.3.3 )
---
updated-dependencies:
- dependency-name: jekyll
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-28 14:24:01 -08:00
Matthew
b12ed38e7b
Update CHANGELOG
2023-12-18 10:00:50 -08:00
Mitch Nemirovsky
8f0bcd6875
Add documentation to "Navigation Structure" on collections and grouping pages ( #1390 )
...
Added link and short blurb about document collections to the navigation structure page, for quicker reference and suggestion during reading documentation.
Allows easier reference when trying to create page groups / categories without using a blank Parent page. Avoids automatically folded Parent page when Child pages are the necessary ones.
2023-12-18 09:58:09 -08:00
dependabot[bot]
d8a23a0b26
Bump prettier from 3.1.0 to 3.1.1 ( #1402 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.1.0 to 3.1.1.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.1.0...3.1.1 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-12 23:03:43 -08:00
Matt Wang
fd689b47e0
docs: fix misleading docs on code with line numbers ( #1349 )
...
Closes #1306 .
Co-authored-by: Peter Mosses <18308236+pdmosses@users.noreply.github.com>
2023-11-15 11:45:14 -08:00
dependabot[bot]
4e7f8345b4
Bump prettier from 3.0.3 to 3.1.0 ( #1393 )
...
Bumps [prettier](https://github.com/prettier/prettier ) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases )
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md )
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0 )
---
updated-dependencies:
- dependency-name: prettier
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 10:23:11 -08:00
dependabot[bot]
a9a336f1b0
Bump stylelint-config-standard-scss from 11.0.0 to 11.1.0 ( #1386 )
...
Bumps [stylelint-config-standard-scss](https://github.com/stylelint-scss/stylelint-config-standard-scss ) from 11.0.0 to 11.1.0.
- [Release notes](https://github.com/stylelint-scss/stylelint-config-standard-scss/releases )
- [Changelog](https://github.com/stylelint-scss/stylelint-config-standard-scss/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint-scss/stylelint-config-standard-scss/compare/v11.0.0...v11.1.0 )
---
updated-dependencies:
- dependency-name: stylelint-config-standard-scss
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 16:00:56 -07:00
dependabot[bot]
1c27df3de6
Bump rake from 13.0.6 to 13.1.0 ( #1385 )
...
Bumps [rake](https://github.com/ruby/rake ) from 13.0.6 to 13.1.0.
- [Release notes](https://github.com/ruby/rake/releases )
- [Changelog](https://github.com/ruby/rake/blob/master/History.rdoc )
- [Commits](https://github.com/ruby/rake/compare/v13.0.6...v13.1.0 )
---
updated-dependencies:
- dependency-name: rake
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-01 22:41:07 -07:00