Skip to content

Commit f18bbfb

Browse files
authored
Nextra incremental upgrade (authzed#418)
1 parent 92f6b96 commit f18bbfb

File tree

125 files changed

+10069
-6092
lines changed

Some content is hidden

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

125 files changed

+10069
-6092
lines changed

.github/workflows/cla.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
name: "CLA"
3-
on: # yamllint disable-line rule:truthy
3+
on: # yamllint disable-line rule:truthy
44
issue_comment:
55
types:
66
- "created"

.github/workflows/link-checker-full.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: "Link Checker with External Links"
33

44
on:
55
schedule:
6-
- cron: '0 18 * * *' # Daily at 18:00 UTC
6+
- cron: "0 18 * * *" # Daily at 18:00 UTC
77
workflow_dispatch:
88

99
jobs:

.github/workflows/lint.yaml

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,20 @@ jobs:
1212
name: "Lint Everything"
1313
runs-on: "ubuntu-latest"
1414
steps:
15-
- uses: "actions/checkout@v2"
16-
- uses: "bewuethr/yamllint-action@v1.2.2"
15+
- uses: "actions/checkout@v6"
16+
- uses: "bewuethr/yamllint-action@v1.3.0"
1717
with:
1818
config-file: ".yamllint"
19-
- uses: "pnpm/action-setup@v3"
19+
- uses: "pnpm/action-setup@v4"
2020
with:
21-
version: 8
22-
- name: "Export pnpm store"
23-
shell: "bash"
24-
run: |
25-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
26-
- name: "Setup pnpm cache"
27-
uses: "actions/cache@v4"
21+
run_install: false
22+
- name: "Install Node.js"
23+
uses: "actions/setup-node@v6"
2824
with:
29-
path: "${{ env.STORE_PATH }}"
30-
key: "${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}"
31-
restore-keys: "${{ runner.os }}-pnpm-store-"
25+
cache: "pnpm"
3226
- name: "Install dependencies"
33-
shell: "bash"
3427
run: "pnpm install"
35-
- name: "Lint"
36-
shell: "bash"
37-
run: "pnpm run lint"
28+
- name: "Lint Markdown"
29+
run: "pnpm run lint:markdown"
30+
- name: "Check Formatting"
31+
run: "pnpm run format:check"

.markdownlint-cli2.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
config:
2-
fenced-code-langauage: false
32
fenced-code-language: false
43
first-line-h1: false
54
line-length: false
@@ -10,6 +9,7 @@ config:
109
no-multiple-blanks: false
1110
no-trailing-spaces: false
1211
max-one-sentence-per-line: false
12+
list-marker-space: false
1313
customRules:
1414
- "markdownlint-rule-max-one-sentence-per-line"
1515
fix: false

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ pnpm run dev
3737

3838
Now you should be able to see the docs rendered at http://localhost:3000
3939

40-
4140
Run linters:
4241

4342
```sh

components/JupyterNotebookViewer.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ interface JupyterNotebookViewerProps {
44
fileUrl: string;
55
}
66

7-
const JupyterNotebookViewer: React.FC<JupyterNotebookViewerProps> = ({ fileUrl }) => {
7+
const JupyterNotebookViewer: React.FC<JupyterNotebookViewerProps> = ({
8+
fileUrl,
9+
}) => {
810
const nbviewerUrl = `https://nbviewer.org/github/${encodeURIComponent(fileUrl)}`;
911

1012
return (

components/banner.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { usePathname } from 'next/navigation';
1+
import { usePathname } from "next/navigation";
22

33
export default function Banner() {
44
const pathname = usePathname();
5-
const isCommercial = pathname.startsWith('/authzed/');
5+
const isCommercial = pathname.startsWith("/authzed/");
66

77
return isCommercial ? (
88
<a href="https://authzed.com/zanzibar?utm_source=docs">
@@ -11,7 +11,8 @@ export default function Banner() {
1111
</a>
1212
) : (
1313
<a href="https://github.com/authzed/spicedb">
14-
SpiceDB is 100% open source. Please help us by starring our GitHub repo. ↗
14+
SpiceDB is 100% open source. Please help us by starring our GitHub repo.
15+
1516
</a>
1617
);
1718
}

components/cta.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { Button } from '@/components/ui/button';
2-
import { faPhone } from '@fortawesome/free-solid-svg-icons';
3-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4-
import Link from 'next/link';
5-
import { usePathname } from 'next/navigation';
1+
import { Button } from "@/components/ui/button";
2+
import { faPhone } from "@fortawesome/free-solid-svg-icons";
3+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
4+
import Link from "next/link";
5+
import { usePathname } from "next/navigation";
66

77
export function TocCTA() {
88
const pathname = usePathname();
9-
const isCommercial = pathname.startsWith('/authzed/');
9+
const isCommercial = pathname.startsWith("/authzed/");
1010

1111
return isCommercial ? (
1212
<div className="flex flex-wrap w-full nx-mt-8 nx-border-t nx-bg-white nx-pt-8 nx-shadow-[0_-12px_16px_white] dark:nx-bg-dark dark:nx-shadow-[0_-12px_16px_#111] nx-sticky nx-bottom-0 nx-flex nx-flex-col nx-items-start nx-gap-2 nx-pb-8 dark:nx-border-neutral-800 contrast-more:nx-border-t contrast-more:nx-border-neutral-400 contrast-more:nx-shadow-none contrast-more:dark:nx-border-neutral-400">
@@ -27,7 +27,7 @@ export function TocCTA() {
2727

2828
export function NavCTA() {
2929
const pathname = usePathname();
30-
const isCommercial = pathname.startsWith('/authzed/');
30+
const isCommercial = pathname.startsWith("/authzed/");
3131

3232
// TODO: No-ops for now
3333
return isCommercial ? <></> : <></>;

components/footer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import Link from 'next/link';
2-
import { LogoIcon } from './logo';
3-
import Scripts from './scripts';
1+
import Link from "next/link";
2+
import { LogoIcon } from "./logo";
3+
import Scripts from "./scripts";
44

55
export default function Footer() {
66
return (

0 commit comments

Comments
 (0)