Skip to content

Commit

Permalink
📕 docs(none): fix releases nav (#2611)
Browse files Browse the repository at this point in the history
Fix releases nav

## Type of change

**PATCH: backwards compatible change**
  • Loading branch information
kellymears authored Jun 26, 2024
1 parent ea7a733 commit e528871
Show file tree
Hide file tree
Showing 4 changed files with 211 additions and 22 deletions.
53 changes: 31 additions & 22 deletions sources/@repo/docs/config/docusaurus.theme.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,33 +79,42 @@ const navbar = {
type: `doc`,
},
{
items: releaseData.reduce((items, release) => {
if (!items.length) {
return [
...items,
{label: `Latest`, to: `/releases/${release.semver}`},
]
}
items: releaseData
.sort((a, b) => {
if (a.major > b.major) return -1
if (a.major < b.major) return 1
if (a.minor > b.minor) return -1
if (a.minor < b.minor) return 1
if (a.patch > b.patch) return -1
if (a.patch < b.patch) return 1
return 0
})
.reduce((items = [], release) => {
if (!items?.length) {
items.push({
label: `Latest`,
to: `/releases/${release.semver}`,
})
}

if (release.patch !== 0) return items
if (release.patch !== 0) {
return items
}

const useTag = releaseData.some(
({major, minor, patch}) =>
major == release.major &&
minor == release.minor &&
patch !== 0,
)

return [
...items,
{
items.push({
label: release.semver,
to: useTag
to: releaseData.some(
({major, minor, patch}) =>
major == release.major &&
minor == release.minor &&
patch !== 0,
)
? `/releases/tags/${release.major}-${release.minor}`
: `/releases/${release.major}.${release.minor}.${release.patch}`,
},
]
}, []),
})

return items
}, []),
label: `Releases`,
position: `left`,
to: `/releases`,
Expand Down
54 changes: 54 additions & 0 deletions sources/@repo/docs/content/releases/6.22.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---
slug: '6.22.0'
title: '6.22.0'
description: Release notes for bud.js 6.22.0
date: 2024-06-20T07:35:58Z
author: kellymears
author_title: Developer
author_url: https://github.com/kellymears
author_image_url: https://avatars.githubusercontent.com/u/397606?v=4
tags:
- release
- 6
- 6.22
---

<!--This file is generated-->

Some nice performance enhancements. code coverage gains and dependency upgrades in this release.

<!--truncate-->

There is a known issue with this release affecting projects using the `@roots/sage/stylelint` config. If you rely on this config you may wish to hold off and upgrade to 6.23.0.

## What's Changed

- 📦 deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2580
- 📦 deps(minor): upgrade dev middleware by @kellymears in https://github.com/roots/bud/pull/2586
- 📦 deps(minor): upgrade stylelint by @kellymears in https://github.com/roots/bud/pull/2585
- 📕 docs(none): fix releases menu by @kellymears in https://github.com/roots/bud/pull/2582
- 📦 deps(minor): upgrade style deps by @kellymears in https://github.com/roots/bud/pull/2588
- 🧹 chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2570
- 📦 deps(minor): upgrade stylelint-sass by @kellymears in https://github.com/roots/bud/pull/2590
- 📕 docs(none): Fix typo in documentation for bud.postcss.setPostCssOptions by @folbert in https://github.com/roots/bud/pull/2559
- 📦 deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2591
- 📕 docs(none): : issue with code snippet for spacing in theme.json by @dr5hn in https://github.com/roots/bud/pull/2564
- 📦 deps(patch): bump ip from 1.1.5 to 1.1.9 by @dependabot in https://github.com/roots/bud/pull/2560
- 🩹 fix(stylelint): `Unexpected invalid media query "screen(x)"` for Tailwind by @codepuncher in https://github.com/roots/bud/pull/2558
- 🧪 test(none): improve examples and tests by @kellymears in https://github.com/roots/bud/pull/2556
- 🩹 fix(patch): dashboard react error (useState) by @kellymears in https://github.com/roots/bud/pull/2595
- ✨ improve(patch): build performance by @kellymears in https://github.com/roots/bud/pull/2596
- 🧪 test(none): improve coverage by @kellymears in https://github.com/roots/bud/pull/2599
- 🔨 improve(none): reuse ink instance by @kellymears in https://github.com/roots/bud/pull/2600
- 🩹 fix(patch): bud.after sync callback error by @kellymears in https://github.com/roots/bud/pull/2601
- 🧹 chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2598
- 🔨 improve(patch): bud.pipe: allow mixed async and sync cbs by @kellymears in https://github.com/roots/bud/pull/2603
- 🩹 fix(patch): set default log preset to none by @kellymears in https://github.com/roots/bud/pull/2602

## New Contributors

- @folbert made their first contribution in https://github.com/roots/bud/pull/2559
- @dr5hn made their first contribution in https://github.com/roots/bud/pull/2564
- @codepuncher made their first contribution in https://github.com/roots/bud/pull/2558

**Full Changelog**: https://github.com/roots/bud/compare/v6.21.0...v6.22.0
34 changes: 34 additions & 0 deletions sources/@repo/docs/content/releases/6.23.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
slug: "6.23.0"
title: "6.23.0"
description: Release notes for bud.js 6.23.0
date: 2024-06-26T07:07:30Z
author: kellymears
author_title: Developer
author_url: https://github.com/kellymears
author_image_url: https://avatars.githubusercontent.com/u/397606?v=4
tags:
- release
- 6
- 6.23
---

<!--This file is generated-->

`@roots/bud-sass` should no longer error without `@roots/bud-postcss`. We strongly recommend you use PostCSS.

<!--truncate-->

Update `@roots/sage/stylelint` config so as to not cause deprecation notices and errors. Adds `examples/sage-with-stylelint` to demonstrate a working config.

Improves error handling. Adds integration tests to cover the fixed bugs.

## What's Changed
* 🩹 fix(patch): update @roots/sage/stylelint by @kellymears in https://github.com/roots/bud/pull/2607
* ✨ feat(minor): add bud.before method by @kellymears in https://github.com/roots/bud/pull/2606
* 🧪 test(none): improve @roots/bud-entrypoints coverage by @kellymears in https://github.com/roots/bud/pull/2608
* 🩹 fix(patch): no error when using sass without postcss by @kellymears in https://github.com/roots/bud/pull/2604
* 🧪 test(none): add sage-with-stylelint test by @kellymears in https://github.com/roots/bud/pull/2609
* 🧹 chore(none): rm --rf examples/sage with stylelint/public by @kellymears in https://github.com/roots/bud/pull/2610

**Full Changelog**: https://github.com/roots/bud/compare/v6.22.0...v6.23.0
92 changes: 92 additions & 0 deletions sources/@repo/docs/content/releases/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1509,5 +1509,97 @@
"patch": 8,
"semver": "6.6.8",
"tags": "[release, 6, 6.6]"
},
{
"url": "https://api.github.com/repos/roots/bud/releases/161416889",
"assets_url": "https://api.github.com/repos/roots/bud/releases/161416889/assets",
"upload_url": "https://uploads.github.com/repos/roots/bud/releases/161416889/assets{?name,label}",
"html_url": "https://github.com/roots/bud/releases/tag/v6.22.0",
"id": 161416889,
"author": {
"login": "kellymears",
"id": 397606,
"node_id": "MDQ6VXNlcjM5NzYwNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/397606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kellymears",
"html_url": "https://github.com/kellymears",
"followers_url": "https://api.github.com/users/kellymears/followers",
"following_url": "https://api.github.com/users/kellymears/following{/other_user}",
"gists_url": "https://api.github.com/users/kellymears/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kellymears/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kellymears/subscriptions",
"organizations_url": "https://api.github.com/users/kellymears/orgs",
"repos_url": "https://api.github.com/users/kellymears/repos",
"events_url": "https://api.github.com/users/kellymears/events{/privacy}",
"received_events_url": "https://api.github.com/users/kellymears/received_events",
"type": "User",
"site_admin": false
},
"node_id": "RE_kwDOEDXd_84Jnwa5",
"tag_name": "v6.22.0",
"target_commitish": "main",
"name": "6.22.0",
"draft": false,
"prerelease": false,
"created_at": "2024-06-19T14:12:16Z",
"published_at": "2024-06-20T07:35:58Z",
"assets": [],
"tarball_url": "https://api.github.com/repos/roots/bud/tarball/v6.22.0",
"zipball_url": "https://api.github.com/repos/roots/bud/zipball/v6.22.0",
"body": "There is a known issue with this release affecting projects using the `@roots/sage/stylelint` config. If you rely on this config you may wish to hold off and upgrade to 6.23.0. \r\n\r\n## What's Changed\r\n\r\n* 📦 deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2580\r\n* 📦 deps(minor): upgrade dev middleware by @kellymears in https://github.com/roots/bud/pull/2586\r\n* 📦 deps(minor): upgrade stylelint by @kellymears in https://github.com/roots/bud/pull/2585\r\n* 📕 docs(none): fix releases menu by @kellymears in https://github.com/roots/bud/pull/2582\r\n* 📦 deps(minor): upgrade style deps by @kellymears in https://github.com/roots/bud/pull/2588\r\n* 🧹 chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2570\r\n* 📦 deps(minor): upgrade stylelint-sass by @kellymears in https://github.com/roots/bud/pull/2590\r\n* 📕 docs(none): Fix typo in documentation for bud.postcss.setPostCssOptions by @folbert in https://github.com/roots/bud/pull/2559\r\n* 📦 deps(patch): upgrade dependencies by @kellymears in https://github.com/roots/bud/pull/2591\r\n* 📕 docs(none): : issue with code snippet for spacing in theme.json by @dr5hn in https://github.com/roots/bud/pull/2564\r\n* 📦 deps(patch): bump ip from 1.1.5 to 1.1.9 by @dependabot in https://github.com/roots/bud/pull/2560\r\n* 🩹 fix(stylelint): `Unexpected invalid media query \"screen(x)\"` for Tailwind by @codepuncher in https://github.com/roots/bud/pull/2558\r\n* 🧪 test(none): improve examples and tests by @kellymears in https://github.com/roots/bud/pull/2556\r\n* 🩹 fix(patch): dashboard react error (useState) by @kellymears in https://github.com/roots/bud/pull/2595\r\n* ✨ improve(patch): build performance by @kellymears in https://github.com/roots/bud/pull/2596\r\n* 🧪 test(none): improve coverage by @kellymears in https://github.com/roots/bud/pull/2599\r\n* 🔨 improve(none): reuse ink instance by @kellymears in https://github.com/roots/bud/pull/2600\r\n* 🩹 fix(patch): bud.after sync callback error by @kellymears in https://github.com/roots/bud/pull/2601\r\n* 🧹 chore(none): update sponsors by @retlehs in https://github.com/roots/bud/pull/2598\r\n* 🔨 improve(patch): bud.pipe: allow mixed async and sync cbs by @kellymears in https://github.com/roots/bud/pull/2603\r\n* 🩹 fix(patch): set default log preset to none by @kellymears in https://github.com/roots/bud/pull/2602\r\n\r\n## New Contributors\r\n\r\n* @folbert made their first contribution in https://github.com/roots/bud/pull/2559\r\n* @dr5hn made their first contribution in https://github.com/roots/bud/pull/2564\r\n* @codepuncher made their first contribution in https://github.com/roots/bud/pull/2558\r\n\r\n**Full Changelog**: https://github.com/roots/bud/compare/v6.21.0...v6.22.0",
"mentions_count": 6,
"intro": "Some nice performance enhancements. code coverage gains and dependency upgrades in this release.",
"major": 6,
"minor": 22,
"patch": 0,
"semver": "6.22.0",
"tags": "[release, 6, 6.22]"
},
{
"url": "https://api.github.com/repos/roots/bud/releases/162448415",
"assets_url": "https://api.github.com/repos/roots/bud/releases/162448415/assets",
"upload_url": "https://uploads.github.com/repos/roots/bud/releases/162448415/assets{?name,label}",
"html_url": "https://github.com/roots/bud/releases/tag/v6.23.0",
"id": 162448415,
"author": {
"login": "kellymears",
"id": 397606,
"node_id": "MDQ6VXNlcjM5NzYwNg==",
"avatar_url": "https://avatars.githubusercontent.com/u/397606?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/kellymears",
"html_url": "https://github.com/kellymears",
"followers_url": "https://api.github.com/users/kellymears/followers",
"following_url": "https://api.github.com/users/kellymears/following{/other_user}",
"gists_url": "https://api.github.com/users/kellymears/gists{/gist_id}",
"starred_url": "https://api.github.com/users/kellymears/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/kellymears/subscriptions",
"organizations_url": "https://api.github.com/users/kellymears/orgs",
"repos_url": "https://api.github.com/users/kellymears/repos",
"events_url": "https://api.github.com/users/kellymears/events{/privacy}",
"received_events_url": "https://api.github.com/users/kellymears/received_events",
"type": "User",
"site_admin": false
},
"node_id": "RE_kwDOEDXd_84JrsQf",
"tag_name": "v6.23.0",
"target_commitish": "main",
"name": "6.23.0",
"draft": false,
"prerelease": false,
"created_at": "2024-06-26T06:58:55Z",
"published_at": "2024-06-26T07:07:30Z",
"assets": [],
"tarball_url": "https://api.github.com/repos/roots/bud/tarball/v6.23.0",
"zipball_url": "https://api.github.com/repos/roots/bud/zipball/v6.23.0",
"body": "Update `@roots/sage/stylelint` config so as to not cause deprecation notices and errors. Adds `examples/sage-with-stylelint` to demonstrate a working config.\r\n\r\nImproves error handling. Adds integration tests to cover the fixed bugs.\r\n\r\n## What's Changed\r\n* 🩹 fix(patch): update @roots/sage/stylelint by @kellymears in https://github.com/roots/bud/pull/2607\r\n* ✨ feat(minor): add bud.before method by @kellymears in https://github.com/roots/bud/pull/2606\r\n* 🧪 test(none): improve @roots/bud-entrypoints coverage by @kellymears in https://github.com/roots/bud/pull/2608\r\n* 🩹 fix(patch): no error when using sass without postcss by @kellymears in https://github.com/roots/bud/pull/2604\r\n* 🧪 test(none): add sage-with-stylelint test by @kellymears in https://github.com/roots/bud/pull/2609\r\n* 🧹 chore(none): rm --rf examples/sage with stylelint/public by @kellymears in https://github.com/roots/bud/pull/2610\r\n\r\n**Full Changelog**: https://github.com/roots/bud/compare/v6.22.0...v6.23.0",
"mentions_count": 1,
"intro": "`@roots/bud-sass` should no longer error without `@roots/bud-postcss`. We strongly recommend you use PostCSS.",
"major": 6,
"minor": 23,
"patch": 0,
"semver": "6.23.0",
"tags": "[release, 6, 6.23]"
}
]

0 comments on commit e528871

Please sign in to comment.