= ({ fileUrl }) => {
const nbviewerUrl = `https://nbviewer.org/github/${encodeURIComponent(fileUrl)}`;
return (
-
+
);
};
diff --git a/components/banner.tsx b/components/banner.tsx
index bb4d50a0..fa3b7951 100644
--- a/components/banner.tsx
+++ b/components/banner.tsx
@@ -8,13 +8,12 @@ export default function Banner() {
return isCommercial ? (
- 📄 Have you read Google's Zanzibar paper? We annotated it with additional
- context and comparisons with SpiceDB ↗
+ 📄 Have you read Google's Zanzibar paper? We annotated it with additional context and
+ comparisons with SpiceDB ↗
) : (
- SpiceDB is 100% open source. Please help us by starring our GitHub repo.
- ↗
+ SpiceDB is 100% open source. Please help us by starring our GitHub repo. ↗
);
}
diff --git a/components/playground.tsx b/components/playground.tsx
index a1a42b44..3cb90b8a 100644
--- a/components/playground.tsx
+++ b/components/playground.tsx
@@ -1,7 +1,4 @@
-export function InlinePlayground(props: {
- reference: string;
- children: any[];
-}) {
+export function InlinePlayground(props: { reference: string; children: any[] }) {
let playgroundUrl = "https://play.authzed.com";
return (
diff --git a/components/ui/button.tsx b/components/ui/button.tsx
index f1aa226d..630f3dea 100644
--- a/components/ui/button.tsx
+++ b/components/ui/button.tsx
@@ -11,12 +11,9 @@ const buttonVariants = cva(
variants: {
variant: {
default: "bg-fuchsia-800 text-fuchsia-100 hover:bg-fuchsia-500",
- destructive:
- "bg-destructive text-destructive-foreground hover:bg-destructive/90",
- outline:
- "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
- secondary:
- "bg-secondary text-secondary-foreground hover:bg-secondary/80",
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
+ secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
ghost: "hover:bg-accent hover:text-accent-foreground",
link: "text-primary underline-offset-4 hover:underline",
},
@@ -35,8 +32,7 @@ const buttonVariants = cva(
);
export interface ButtonProps
- extends React.ButtonHTMLAttributes,
- VariantProps {
+ extends React.ButtonHTMLAttributes, VariantProps {
asChild?: boolean;
}
@@ -44,11 +40,7 @@ const Button = React.forwardRef(
({ className, variant, size, asChild = false, ...props }, ref) => {
const Comp = asChild ? Slot : "button";
return (
-
+
);
},
);
diff --git a/grammars/authzed.tmLanguage.json b/grammars/authzed.tmLanguage.json
index 58f4fb98..a74375ed 100644
--- a/grammars/authzed.tmLanguage.json
+++ b/grammars/authzed.tmLanguage.json
@@ -107,10 +107,7 @@
}
},
"comment": {
- "patterns": [
- { "include": "#lineComment" },
- { "include": "#blockComment" }
- ],
+ "patterns": [{ "include": "#lineComment" }, { "include": "#blockComment" }],
"repository": {
"lineComment": {
"patterns": [
diff --git a/next.config.mjs b/next.config.mjs
index 32b30bdd..7856e273 100644
--- a/next.config.mjs
+++ b/next.config.mjs
@@ -44,9 +44,7 @@ export default withNextra({
// It adds `cross-origin="anonymous"` to script tags
crossOrigin: "anonymous",
assetPrefix:
- process.env.VERCEL_ENV === "production"
- ? "https://docs-authzed.vercel.app/docs"
- : undefined,
+ process.env.VERCEL_ENV === "production" ? "https://docs-authzed.vercel.app/docs" : undefined,
// NOTE: we still use webpack instead of turbopack for dev
// because turbopack doesn't support non-serializable nextjs options.
// The rehypePrettyCodeOptions in the block above include a function,
diff --git a/package.json b/package.json
index 33c80e15..d47b9db8 100644
--- a/package.json
+++ b/package.json
@@ -2,6 +2,10 @@
"name": "authzed-docs",
"version": "0.0.1",
"description": "Authzed & SpiceDB docs powered by Nextra",
+ "homepage": "https://github.com/authzed/docs#readme",
+ "bugs": {
+ "url": "https://github.com/authzed/docs/issues"
+ },
"scripts": {
"dev": "next dev --webpack",
"build": "next build --webpack",
@@ -9,13 +13,9 @@
"start": "next start",
"lint:markdown": "markdownlint-cli2",
"gen:pagefind": "node --experimental-strip-types scripts/buildSearchIndex.mts",
- "format:check": "prettier -c .",
- "format": "prettier -w ."
+ "format:check": "oxfmt --check",
+ "format": "oxfmt"
},
- "bugs": {
- "url": "https://github.com/authzed/docs/issues"
- },
- "homepage": "https://github.com/authzed/docs#readme",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.2",
"@fortawesome/free-brands-svg-icons": "^6.5.2",
@@ -50,12 +50,12 @@
"@types/react": "^19.1.6",
"markdownlint-cli2": "^0.13.0",
"markdownlint-rule-max-one-sentence-per-line": "^0.0.2",
+ "oxfmt": "^0.26.0",
"pagefind": "^1.4.0",
"postcss": "^8.5.6",
- "prettier": "^3.6.2",
"shiki": "^3.15.0",
"typescript": "^5.9.3",
"yaml-loader": "^0.8.1"
},
- "packageManager": "pnpm@10.24.0"
+ "packageManager": "pnpm@10.28.1"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 49da5c29..39af9d0a 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -102,15 +102,15 @@ importers:
markdownlint-rule-max-one-sentence-per-line:
specifier: ^0.0.2
version: 0.0.2
+ oxfmt:
+ specifier: ^0.26.0
+ version: 0.26.0
pagefind:
specifier: ^1.4.0
version: 1.4.0
postcss:
specifier: ^8.5.6
version: 8.5.6
- prettier:
- specifier: ^3.6.2
- version: 3.6.2
shiki:
specifier: ^3.15.0
version: 3.15.0
@@ -1313,6 +1313,46 @@ packages:
resolution: {integrity: sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==}
engines: {node: '>= 8'}
+ '@oxfmt/darwin-arm64@0.26.0':
+ resolution: {integrity: sha512-AAGc+8CffkiWeVgtWf4dPfQwHEE5c/j/8NWH7VGVxxJRCZFdmWcqCXprvL2H6qZFewvDLrFbuSPRCqYCpYGaTQ==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@oxfmt/darwin-x64@0.26.0':
+ resolution: {integrity: sha512-xFx5ijCTjw577wJvFlZEMmKDnp3HSCcbYdCsLRmC5i3TZZiDe9DEYh3P46uqhzj8BkEw1Vm1ZCWdl48aEYAzvQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@oxfmt/linux-arm64-gnu@0.26.0':
+ resolution: {integrity: sha512-GubkQeQT5d3B/Jx/IiR7NMkSmXrCZcVI0BPh1i7mpFi8HgD1hQ/LbhiBKAMsMqs5bbugdQOgBEl8bOhe8JhW1g==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@oxfmt/linux-arm64-musl@0.26.0':
+ resolution: {integrity: sha512-OEypUwK69bFPj+aa3/LYCnlIUPgoOLu//WNcriwpnWNmt47808Ht7RJSg+MNK8a7pSZHpXJ5/E6CRK/OTwFdaQ==}
+ cpu: [arm64]
+ os: [linux]
+
+ '@oxfmt/linux-x64-gnu@0.26.0':
+ resolution: {integrity: sha512-xO6iEW2bC6ZHyOTPmPWrg/nM6xgzyRPaS84rATy6F8d79wz69LdRdJ3l/PXlkqhi7XoxhvX4ExysA0Nf10ZZEQ==}
+ cpu: [x64]
+ os: [linux]
+
+ '@oxfmt/linux-x64-musl@0.26.0':
+ resolution: {integrity: sha512-Z3KuZFC+MIuAyFCXBHY71kCsdRq1ulbsbzTe71v+hrEv7zVBn6yzql+/AZcgfIaKzWO9OXNuz5WWLWDmVALwow==}
+ cpu: [x64]
+ os: [linux]
+
+ '@oxfmt/win32-arm64@0.26.0':
+ resolution: {integrity: sha512-3zRbqwVWK1mDhRhTknlQFpRFL9GhEB5GfU6U7wawnuEwpvi39q91kJ+SRJvJnhyPCARkjZBd1V8XnweN5IFd1g==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@oxfmt/win32-x64@0.26.0':
+ resolution: {integrity: sha512-m8TfIljU22i9UEIkD+slGPifTFeaCwIUfxszN3E6ABWP1KQbtwSw9Ak0TdoikibvukF/dtbeyG3WW63jv9DnEg==}
+ cpu: [x64]
+ os: [win32]
+
'@pagefind/darwin-arm64@1.4.0':
resolution: {integrity: sha512-2vMqkbv3lbx1Awea90gTaBsvpzgRs7MuSgKDxW0m9oV1GPZCZbZBJg/qL83GIUEN2BFlY46dtUZi54pwH+/pTQ==}
cpu: [arm64]
@@ -3456,6 +3496,11 @@ packages:
resolution: {integrity: sha512-DPlCms3KKEbjVQb0spV6Awfn6UWNheuG/+folQPzh/wUaKwuqvj8zt5gagD7qoyxtE03cIiKPgLFS3Q8Bz00uQ==}
engines: {node: '>=12.20.0'}
+ oxfmt@0.26.0:
+ resolution: {integrity: sha512-UDD1wFNwfeorMm2ZY0xy1KRAAvJ5NjKBfbDmiMwGP7baEHTq65cYpC0aPP+BGHc8weXUbSZaK8MdGyvuRUvS4Q==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+
package-manager-detector@1.5.0:
resolution: {integrity: sha512-uBj69dVlYe/+wxj8JOpr97XfsxH/eumMt6HqjNTmJDf/6NO9s+0uxeOneIz3AsPt2m6y9PqzDzd3ATcU17MNfw==}
@@ -3555,11 +3600,6 @@ packages:
preact@10.26.2:
resolution: {integrity: sha512-0gNmv4qpS9HaN3+40CLBAnKe0ZfyE4ZWo5xKlC1rVrr0ckkEvJvAQqKaHANdFKsGstoxrY4AItZ7kZSGVoVjgg==}
- prettier@3.6.2:
- resolution: {integrity: sha512-I7AIg5boAr5R0FFtJ6rCfD+LFsWHp81dolrFD8S79U9tb8Az2nGrJncnMSnys+bpQJfRUzqs9hnA81OAA3hCuQ==}
- engines: {node: '>=14'}
- hasBin: true
-
prismjs@1.30.0:
resolution: {integrity: sha512-DEvV2ZF2r2/63V+tK8hQvrR2ZGn10srHbXviTlcv7Kpzw8jWiNTqbVgjO3IY8RxrrOUF8VPMQQFysYYYv0YZxw==}
engines: {node: '>=6'}
@@ -4021,6 +4061,10 @@ packages:
resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
engines: {node: '>=12.0.0'}
+ tinypool@2.0.0:
+ resolution: {integrity: sha512-/RX9RzeH2xU5ADE7n2Ykvmi9ED3FBGPAjw9u3zucrNNaEBIO0HPSYgL0NT7+3p147ojeSdaVu08F6hjpv31HJg==}
+ engines: {node: ^20.0.0 || >=22.0.0}
+
title@4.0.1:
resolution: {integrity: sha512-xRnPkJx9nvE5MF6LkB5e8QJjE2FW8269wTu/LQdf7zZqBgPly0QJPf/CWAo7srj5so4yXfoLEdCFgurlpi47zg==}
hasBin: true
@@ -5633,6 +5677,30 @@ snapshots:
'@nodelib/fs.scandir': 2.1.5
fastq: 1.17.1
+ '@oxfmt/darwin-arm64@0.26.0':
+ optional: true
+
+ '@oxfmt/darwin-x64@0.26.0':
+ optional: true
+
+ '@oxfmt/linux-arm64-gnu@0.26.0':
+ optional: true
+
+ '@oxfmt/linux-arm64-musl@0.26.0':
+ optional: true
+
+ '@oxfmt/linux-x64-gnu@0.26.0':
+ optional: true
+
+ '@oxfmt/linux-x64-musl@0.26.0':
+ optional: true
+
+ '@oxfmt/win32-arm64@0.26.0':
+ optional: true
+
+ '@oxfmt/win32-x64@0.26.0':
+ optional: true
+
'@pagefind/darwin-arm64@1.4.0':
optional: true
@@ -8463,6 +8531,19 @@ snapshots:
dependencies:
apg-lite: 1.0.5
+ oxfmt@0.26.0:
+ dependencies:
+ tinypool: 2.0.0
+ optionalDependencies:
+ '@oxfmt/darwin-arm64': 0.26.0
+ '@oxfmt/darwin-x64': 0.26.0
+ '@oxfmt/linux-arm64-gnu': 0.26.0
+ '@oxfmt/linux-arm64-musl': 0.26.0
+ '@oxfmt/linux-x64-gnu': 0.26.0
+ '@oxfmt/linux-x64-musl': 0.26.0
+ '@oxfmt/win32-arm64': 0.26.0
+ '@oxfmt/win32-x64': 0.26.0
+
package-manager-detector@1.5.0: {}
pagefind@1.4.0:
@@ -8577,8 +8658,6 @@ snapshots:
preact@10.26.2: {}
- prettier@3.6.2: {}
-
prismjs@1.30.0: {}
process@0.11.10: {}
@@ -9215,6 +9294,8 @@ snapshots:
fdir: 6.5.0(picomatch@4.0.3)
picomatch: 4.0.3
+ tinypool@2.0.0: {}
+
title@4.0.1:
dependencies:
arg: 5.0.2
diff --git a/types.d.ts b/types.d.ts
index 6e566acb..c3eb296e 100644
--- a/types.d.ts
+++ b/types.d.ts
@@ -1,9 +1,7 @@
declare module "*.svg" {
import * as React from "react";
- export const ReactComponent: React.FunctionComponent<
- React.SVGProps
- >;
+ export const ReactComponent: React.FunctionComponent>;
export default ReactComponent;
}