Skip to content

Commit 6797fa2

Browse files
committed
docs: add starlight and restructure
1 parent f7c67f6 commit 6797fa2

File tree

112 files changed

+2352
-1414
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+2352
-1414
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/quick-kids-notice.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"elysia-openid-client": patch
3+
---
4+
5+
Update docs

.editorconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 2
7+
indent_style = space
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
indent_size = 4
13+
max_line_length = off
14+
trim_trailing_whitespace = false
15+
16+
[*.mdx]
17+
max_line_length = off
18+
trim_trailing_whitespace = false

.github/release-drafter.yml

-24
This file was deleted.

.github/utils/token.sh

-41
This file was deleted.

.github/workflows/fallback.yml .github/workflows/checks-fallback.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Fallback jobs for pull-request
1+
name: Checks (Push/PR - Fallback)
22

33
on:
44
pull_request:
@@ -13,4 +13,4 @@ jobs:
1313
checks:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- run: echo "Fallback job of \"$GITHUB_JOB\""
16+
- run: echo "Empty fallback job of \"$GITHUB_JOB\""

.github/workflows/checks.yml

+2-13
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,6 @@ name: Checks (Push/PR - Conditional)
22

33
on:
44
workflow_dispatch:
5-
push:
6-
branches:
7-
- main
8-
paths:
9-
- '**.ts'
10-
- 'biome.json'
11-
- 'package.json'
12-
- 'bun.lockb'
13-
- 'yan.lock'
14-
- '!**/__examples__/**'
15-
- '!**/__scripts__/**'
165
pull_request:
176
branches:
187
- main
@@ -38,6 +27,6 @@ jobs:
3827
- uses: oven-sh/setup-bun@v1
3928
- run: diff <(bun bun.lockb) yarn.lock
4029
- run: bun install
41-
- run: bun check:apply
42-
- run: bun type-check
30+
- run: bun run lint:fix
31+
- run: bun run typecheck
4332
- run: bun test

.github/workflows/docs.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@ jobs:
1818
- uses: actions/checkout@v4
1919
- uses: oven-sh/setup-bun@v1
2020
- run: bun install
21-
- run: bun run docs
21+
- run: |
22+
bun install
23+
bun run build
24+
working-directory: ./website
2225
- uses: actions/upload-pages-artifact@v3
2326
with:
24-
path: ./docs
25-
- id: deployment
26-
uses: actions/deploy-pages@v4
27+
path: ./website/dist
28+
- uses: actions/deploy-pages@v4

.github/workflows/publish-dry-run.yml

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ jobs:
1616
with:
1717
registry-url: "https://registry.npmjs.org"
1818
- run: bun install
19-
- run: bun check:apply
20-
- run: bun type-check
19+
- run: bun lint:fix
20+
- run: bun typecheck
2121
- run: bun test --coverage
22-
- run: bun docs
2322
- run: bun run build
2423
- run: npm publish --access public --dry-run
2524
env:

.github/workflows/publish.yml

+32-48
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,56 @@
1-
name: Publish (Released)
1+
name: Release
22

33
on:
4-
release:
5-
types: [released]
4+
push:
5+
branches:
6+
- main
67

78
defaults:
89
run:
910
shell: bash
1011

11-
permissions:
12-
contents: write
13-
1412
jobs:
15-
publish:
13+
changesets:
1614
runs-on: ubuntu-latest
1715
permissions:
16+
contents: write
1817
id-token: write
18+
pull-requests: write
19+
pages: write
1920
steps:
21+
# Build
2022
- uses: actions/checkout@v4
21-
22-
- name: Verify that tag and package.json match.
23-
run: |
24-
TAGGED_VERSION=$(echo "${{ github.ref_name }}" | grep -oP "[0-9]+\.[0-9]+\.[0-9]$")
25-
PUBLISH_VERSION=$(jq --raw-output .version package.json)
26-
if [ "$TAGGED_VERSION" != "$PUBLISH_VERSION" ]; then
27-
exit 1
28-
fi
29-
30-
- name: Build
31-
uses: oven-sh/setup-bun@v1
23+
- uses: oven-sh/setup-bun@v1
3224
- run: bun install
33-
- run: bun check:apply
34-
- run: bun type-check
25+
- run: bun run lint:fix
26+
- run: bun run typecheck
3527
- run: bun test
36-
- run: bun docs
3728
- run: bun run build
3829

39-
- name: Publish
40-
uses: actions/setup-node@v4
30+
# Version/publish
31+
- uses: actions/setup-node@v4
4132
with:
4233
node-version: 20
43-
registry-url: "https://registry.npmjs.org"
44-
- run: npm publish --provenance --access public
34+
- id: changesets
35+
uses: changesets/action@v1
36+
with:
37+
title: '[ci] release'
38+
commit: '[ci] release'
39+
publish: bun changeset publish
40+
createGithubReleases: true
4541
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47-
48-
# - uses: actions/setup-node@v4
49-
# with:
50-
# registry-url: "https://npm.pkg.github.com"
51-
# - run: npm publish
52-
# env:
53-
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5444

55-
- name: Generate docs
45+
# Docs
46+
- if: steps.changesets.outputs.published == 'true'
47+
run: |
48+
bun install
49+
bun run build
50+
working-directory: ./website
51+
- if: steps.changesets.outputs.published == 'true'
5652
uses: actions/upload-pages-artifact@v3
5753
with:
58-
path: ./docs
59-
60-
deploy_docs:
61-
needs: publish
62-
permissions:
63-
pages: write
64-
id-token: write
65-
environment:
66-
name: github-pages
67-
url: ${{ steps.deployment.outputs.page_url }}
68-
runs-on: ubuntu-latest
69-
steps:
70-
- name: Deploy docs to GitHub Pages
71-
id: deployment
54+
path: ./website/dist
55+
- if: steps.changesets.outputs.published == 'true'
7256
uses: actions/deploy-pages@v4

.github/workflows/release-drafter-version-sync.yml

-109
This file was deleted.

0 commit comments

Comments
 (0)