From da44490b37cc57db2b9e40ea8d42e4052b16c55d Mon Sep 17 00:00:00 2001 From: xiaoyu2er Date: Sun, 25 May 2025 15:16:02 +0000 Subject: [PATCH 1/2] docs: update nextjs documentation --- apps/docs/content/en/docs/01-app/01-getting-started/06-css.mdx | 2 +- .../02-data-fetching/03-server-actions-and-mutations.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/docs/content/en/docs/01-app/01-getting-started/06-css.mdx b/apps/docs/content/en/docs/01-app/01-getting-started/06-css.mdx index 4231cf65..f5bb44fd 100644 --- a/apps/docs/content/en/docs/01-app/01-getting-started/06-css.mdx +++ b/apps/docs/content/en/docs/01-app/01-getting-started/06-css.mdx @@ -28,7 +28,7 @@ CSS Modules locally scope CSS by generating unique class names. This allows you To start using CSS Modules, create a new file with the extension `.module.css` and import it into any component inside the `app` directory: -```css filename="app/blog/styles.module.css" +```css filename="app/blog/blog.module.css" .blog { padding: 24px; } diff --git a/apps/docs/content/en/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx b/apps/docs/content/en/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx index 336014e4..95c7af00 100644 --- a/apps/docs/content/en/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx +++ b/apps/docs/content/en/docs/01-app/03-building-your-application/02-data-fetching/03-server-actions-and-mutations.mdx @@ -678,7 +678,7 @@ export default function ViewCount({ initialViews }: { initialViews: number }) { const [isPending, startTransition] = useTransition() useEffect(() => { - starTransition(async () => { + startTransition(async () => { const updatedViews = await incrementViews() setViews(updatedViews) }) From e9849dfd4e88e06afca32059d51d8a5dcb81f9cd Mon Sep 17 00:00:00 2001 From: "yanqi.zong" Date: Sun, 25 May 2025 10:02:30 -0700 Subject: [PATCH 2/2] feat: run docs-ci --- .github/workflows/update-docs-ci.yml | 1 + .github/workflows/update-en-docs.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-docs-ci.yml b/.github/workflows/update-docs-ci.yml index 12a70d08..d0d7449e 100644 --- a/.github/workflows/update-docs-ci.yml +++ b/.github/workflows/update-docs-ci.yml @@ -4,6 +4,7 @@ on: push: branches: - docs/update-translations + - docs/sync-nextjs-documentation jobs: translate: diff --git a/.github/workflows/update-en-docs.yml b/.github/workflows/update-en-docs.yml index bde6f46d..6907d94a 100644 --- a/.github/workflows/update-en-docs.yml +++ b/.github/workflows/update-en-docs.yml @@ -25,7 +25,7 @@ jobs: - name: Check if PR branch exists id: check_branch run: | - if git ls-remote --heads origin "docs-update-nextjs-documentation" | grep -q "docs-update-nextjs-documentation"; then + if git ls-remote --heads origin "docs/sync-nextjs-documentation" | grep -q "docs/sync-nextjs-documentation"; then echo "Branch already exists, skipping update" echo "branch_exists=true" >> $GITHUB_OUTPUT else @@ -207,7 +207,7 @@ jobs: - Updates from `canary` branch to `apps/docs/content/en/docs` - Updates from `v14.2.28` branch to `apps/docs/content/en/docs/14` - Updates from `v13.5.11` branch to `apps/docs/content/en/docs/13` - branch: docs-update-nextjs-documentation + branch: docs/sync-nextjs-documentation delete-branch: true base: main add-paths: |