Skip to content
Open
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
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
- name: Install dependencies
run: bun install --frozen-lockfile

- name: Sync AppKit docs
run: node scripts/sync-appkit-docs.mjs

- name: Format check
run: bunx prettier -c .

Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ bun.lock
.cache-loader
static/llms.txt
static/raw-docs
docs/appkit/
src/components/doc-examples/
static/appkit-preview/

# Misc
.DS_Store
Expand Down
7 changes: 7 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
dist/
build/
.databricks/
.docusaurus/
**/dist/
**/.databricks/
**/node_modules/
node_modules/

# Generated at build time by scripts/sync-appkit-docs.mjs
docs/appkit/
src/components/doc-examples/
static/appkit-preview/
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"useTabs": false,
"tabWidth": 2
}
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ npm run dev

`npm run dev` starts Docusaurus and the Vercel Functions together at [http://localhost:3000](http://localhost:3000). The site reloads on save.

AppKit reference docs are fetched automatically on first build or dev start via a shallow git clone of the [appkit](https://github.com/databricks/appkit) repository. Run `npm run sync:appkit-docs` to force a re-sync.

You'll also need the [Vercel CLI](https://vercel.com/docs/cli) (for `vercel dev`) and the [Databricks CLI](https://dev.databricks.com/docs/tools/databricks-cli) if you plan to verify end-to-end flows against a real workspace.

### Feature Flags
Expand All @@ -47,7 +49,7 @@ A flag is **enabled only when its value is exactly `"true"`** — any other valu
| `npm run verify:images` | Check every image under `static/img/guides/` and `static/img/examples/` matches the 16:9 / ≥1600×900 contract |
| `npm run build` | Production build via Docusaurus |
| `npm run test` | Build + Vitest + Playwright smoke tests (includes sitemap, robots, llms.txt) |
| `npm run sync:appkit-docs` | Regenerate AppKit reference docs |
| `npm run sync:appkit-docs` | Force re-sync AppKit docs from main (auto-synced on first build) |

### Pre-Commit Hook

Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "bash scripts/dev.sh",
"start": "docusaurus start",
"build": "docusaurus build",
"sync:appkit-docs": "node scripts/sync-appkit-docs.mjs",
"sync:appkit-docs": "node scripts/sync-appkit-docs.mjs --force",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand All @@ -22,7 +22,9 @@
"test:docs-verify": "vitest run --config vitest.docs-verify.config.ts",
"verify:images": "node scripts/verify-resource-images.mjs",
"validate:content": "node scripts/validate-content.mjs",
"prepare": "husky"
"prepare": "husky",
"prebuild": "node scripts/sync-appkit-docs.mjs",
"prestart": "node scripts/sync-appkit-docs.mjs"
},
"dependencies": {
"@base-ui/react": "^1.3.0",
Expand Down
3 changes: 3 additions & 0 deletions scripts/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,7 @@ if [ -f "$ENV_FILE" ]; then
set +a
fi

# Sync AppKit docs if not already present
node scripts/sync-appkit-docs.mjs

exec vercel dev "$@"
Loading