Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

📕 docs(none): fix example component #2617

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
36 changes: 18 additions & 18 deletions sources/@repo/docs/content/learn/config/entrypoints.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,46 +18,46 @@ detect this and create an entrypoint for you.

If you only have a single entrypoint then it is enough to just pass the filename:

<ConfigExample>
<ConfigExample title="bud.config">

```ts title=bud.config.ts
bud.entry('app') // src/app.js
```ts
bud.entry('app')
```

```js title=bud.config.js
bud.entry('app') // src/app.js
```js
bud.entry('app')
```

```yml title=bud.config.yml
entry: app # src/app.js
```yml
entry: app
```

```json title=bud.config.json
{
"entry": "app" // src/app.js
"entry": "app"
}
```

</ConfigExample>

If you have more than one file to include in the bundle, you can use an array:

<ConfigExample>
<ConfigExample title="bud.config">

```ts title=bud.config.ts
```ts
bud.entry(['app.js', 'global.css'])
```

```js title=bud.config.js
```js
bud.entry(['app.js', 'global.css'])
```

```yml title=bud.config.yml
```yml
entry:
- ['app.js', 'global.css']
```

```json title=bud.config.json
```json
{
"entry": [["app.js", "global.css"]]
}
Expand All @@ -69,29 +69,29 @@ If you have additional entrypoints you may call [bud.entry](/reference/bud.entry

But, it might be preferable to use an object:

<ConfigExample>
<ConfigExample title="bud.config">

```ts title=bud.config.ts
```ts
bud.entry({
app: ['app.js', 'global.css'],
landing: ['landing.js', 'landing.css'],
})
```

```js title=bud.config.js
```js
bud.entry({
app: ['app.js', 'global.css'],
landing: ['landing.js', 'landing.css'],
})
```

```yml title=bud.config.yml
```yml
entry:
app: ['app.js', 'global.css']
landing: ['landing.js', 'landing.css']
```

```json title=bud.config.json
```json
{
"entry": {
"app": ["app.js", "global.css"],
Expand Down
1 change: 0 additions & 1 deletion sources/@repo/docs/content/learn/config/optimization.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ hash: true

</ConfigExample>


## Minimizing code

Use the [bud.minimize](/reference/bud.minimize) function to run your application code through a minifier.
Expand Down
27 changes: 27 additions & 0 deletions sources/@repo/docs/content/releases/6.23.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
slug: "6.23.1"
title: "6.23.1"
description: Release notes for bud.js 6.23.1
date: 2024-06-27T06:07:17Z
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-->

Fixes an error with certain stylelint configurations.

<!--truncate-->

## What's Changed

* 📕 docs(none): fix releases nav by @kellymears in https://github.com/roots/bud/pull/2611
* 🩹 fix(none): fix #2612 by @kellymears in https://github.com/roots/bud/pull/2613

**Full Changelog**: https://github.com/roots/bud/compare/v6.23.0...v6.23.1
46 changes: 46 additions & 0 deletions sources/@repo/docs/content/releases/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -1601,5 +1601,51 @@
"patch": 0,
"semver": "6.23.0",
"tags": "[release, 6, 6.23]"
},
{
"url": "https://api.github.com/repos/roots/bud/releases/162695591",
"assets_url": "https://api.github.com/repos/roots/bud/releases/162695591/assets",
"upload_url": "https://uploads.github.com/repos/roots/bud/releases/162695591/assets{?name,label}",
"html_url": "https://github.com/roots/bud/releases/tag/v6.23.1",
"id": 162695591,
"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_84Jsomn",
"tag_name": "v6.23.1",
"target_commitish": "main",
"name": "6.23.1",
"draft": false,
"prerelease": false,
"created_at": "2024-06-27T05:55:59Z",
"published_at": "2024-06-27T06:07:17Z",
"assets": [],
"tarball_url": "https://api.github.com/repos/roots/bud/tarball/v6.23.1",
"zipball_url": "https://api.github.com/repos/roots/bud/zipball/v6.23.1",
"body": "## What's Changed\r\n\r\n* 📕 docs(none): fix releases nav by @kellymears in https://github.com/roots/bud/pull/2611\r\n* 🩹 fix(none): fix #2612 by @kellymears in https://github.com/roots/bud/pull/2613\r\n\r\n**Full Changelog**: https://github.com/roots/bud/compare/v6.23.0...v6.23.1",
"mentions_count": 1,
"intro": "Fixes an error with certain stylelint configurations.",
"major": 6,
"minor": 23,
"patch": 1,
"semver": "6.23.1",
"tags": "[release, 6, 6.23]"
}
]
15 changes: 10 additions & 5 deletions sources/@repo/docs/src/components/example.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from 'react'
function Example({children, config = true, title}) {
if (!children) return null

const values = []
const tabs = []

children = Array.isArray(children) ? children : [children]

Expand All @@ -18,19 +18,24 @@ function Example({children, config = true, title}) {
...child,
code: child.children,
language: child.className.split(`language-`).pop(),
title: child.title ?? null,
}
})
.map(child => ({
...child,
title:
child.metastring?.match(/title=(.*)/)?.[1] ??
`${title}.${child.language}`,
}))

children.forEach(child =>
values.push({
tabs.push({
label: child.language.toUpperCase(),
value: child.language,
}),
)

return (
<Tabs groupId="language" values={values}>
<Tabs groupId="language" values={tabs}>
{children.map((child, id) => {
return (
<TabItem key={id} value={child.language}>
Expand All @@ -39,7 +44,7 @@ function Example({children, config = true, title}) {
language={child.language}
metastring={child.metastring}
showLineNumbers
title={child.title ?? `${title}.${child.language}`}
title={child.title}
>
{config && child.language === `ts`
? `import type {Bud} from '@roots/bud'\n\nexport default async (bud: Bud) => {\n`
Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/blade-loader/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/browserslist-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-babel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-cache/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-compiler/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-compress/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-criticalcss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-dashboard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-emotion/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-entrypoints/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-esbuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-eslint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
2 changes: 1 addition & 1 deletion sources/@roots/bud-framework/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Keep track of development and community news.

## Sponsors

**Bud** is an open source project and completely free to use.
**bud.js** is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and projects within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider [sponsoring Roots](https://github.com/sponsors/roots).

Expand Down
Loading
Loading