Skip to content
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
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# here and not in a consumer's build.
#
# `Full CI` is the one required check, a roll-up of the jobs below.
#
# A run that Dependabot starts is held: every job a pull request can start is
# skipped, so it uses no runner, and no `Full CI` is reported, so the required
# check stays expected and blocks a merge. To opt a pull request in, start a run yourself with `gh pr ready --undo <n> && gh pr ready <n>`, or
# push to its branch. Rerunning a held run keeps Dependabot as the actor.
name: CI

on:
Expand Down Expand Up @@ -31,6 +36,7 @@ permissions:
jobs:
build:
name: Build and test
if: ${{ !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') }}
timeout-minutes: 8
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -59,9 +65,9 @@ jobs:
# runs after a failed job and fails then; a cancelled run skips it, and a
# skipped job never reports as `Full CI`, so a cancel cannot leave it green.
gate:
name: ${{ github.event.pull_request.draft && 'Draft CI' || 'Full CI' }}
name: ${{ github.event_name == 'pull_request' && github.actor == 'dependabot[bot]' && 'Held CI' || (github.event.pull_request.draft && 'Draft CI' || 'Full CI') }}
needs: [build]
if: ${{ !cancelled() }}
if: ${{ !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') && !cancelled() }}
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,9 @@ permissions:
jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Public repositories can scan without a paid Code Security license.
if: ${{ github.event.repository.private == false && !github.event.pull_request.draft }}
# Public repositories can scan without a paid Code Security license. A run
# that Dependabot starts on a pull request is held, as `ci.yml` says.
if: ${{ !(github.event_name == 'pull_request' && github.actor == 'dependabot[bot]') && github.event.repository.private == false && !github.event.pull_request.draft }}
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
Expand Down
1 change: 1 addition & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- Conventional Commits with a scope, such as `feat(search):` or `fix(styles):`. Work reaches `main` only through a pull request, one logical change each.
- Make worktrees in `.claude/worktrees/` (`git worktree add .claude/worktrees/<name> -b <branch> origin/main`). Remove the worktree and its branch once the work is merged.
- This repository is public. Commit no internal hostname, private IP address, personal path, key or token.
- CI holds a run that Dependabot starts on a pull request: its jobs are skipped, so no `Full CI` is reported and the required check blocks the merge. To run it, use `gh pr ready --undo <n> && gh pr ready <n>`, or push to the branch. A new job that a pull request can start needs the same condition.
- A comment says only what the code cannot: the reason, the constraint or the trade-off.
- The kit sends nothing about itself. `Analytics` loads PostHog only when a site passes it a key, and the SDK stays in its own chunk, never in a site's entry chunk.
- Classes and custom properties are prefixed `docs-kit-` and `--docs-kit-`, so they never meet a site's own.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"fumadocs-core": "16.15.15",
"fumadocs-mdx": "15.4.5",
"fumadocs-ui": "16.15.15",
"jsdom": "^30.1.3",
"jsdom": "^31.0.1",
"lucide-react": "^1.48.0",
"posthog-js": "^1.434.16",
"react": "^19.3.0",
Expand Down
161 changes: 31 additions & 130 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading