Skip to content

chore(misc): update docs version script#35313

Merged
jaysoo merged 3 commits into
masterfrom
DOC-69-2
Apr 17, 2026
Merged

chore(misc): update docs version script#35313
jaysoo merged 3 commits into
masterfrom
DOC-69-2

Conversation

@jaysoo
Copy link
Copy Markdown
Member

@jaysoo jaysoo commented Apr 16, 2026

Add support for --redirect-to-prod flag for 16, 17, 18 which we do not have versioned docs for. Also update README.md with more details on how Netlify and Squarespace are used to support versions docs.

@jaysoo jaysoo requested a review from a team as a code owner April 16, 2026 14:20
@jaysoo jaysoo requested a review from leosvelperez April 16, 2026 14:20
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for nx-dev ready!

Name Link
🔨 Latest commit 4b6397d
🔍 Latest deploy log https://app.netlify.com/projects/nx-dev/deploys/69e0f309fec5640008df819c
😎 Deploy Preview https://deploy-preview-35313--nx-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 16, 2026

Deploy Preview for nx-docs ready!

Name Link
🔨 Latest commit 4b6397d
🔍 Latest deploy log https://app.netlify.com/projects/nx-docs/deploys/69e0f30936974f00081a1973
😎 Deploy Preview https://deploy-preview-35313--nx-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@nx-cloud
Copy link
Copy Markdown
Contributor

nx-cloud Bot commented Apr 16, 2026

View your CI Pipeline Execution ↗ for commit 4b6397d

Command Status Duration Result
nx affected --targets=lint,test,build,e2e,e2e-c... ✅ Succeeded 49m 58s View ↗
nx run-many -t check-imports check-lock-files c... ✅ Succeeded 5s View ↗
nx-cloud record -- pnpm nx-cloud conformance:check ✅ Succeeded 18s View ↗
nx build workspace-plugin ✅ Succeeded <1s View ↗
nx-cloud record -- nx sync:check ✅ Succeeded 25s View ↗
nx-cloud record -- nx format:check ✅ Succeeded 15s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-16 15:27:56 UTC

Copy link
Copy Markdown
Contributor

@nx-cloud nx-cloud Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ The fix from Nx Cloud was applied automatically

We fixed the nx format:check failure by running pnpm nx format, which corrected two formatting violations introduced by the PR. In astro-docs/README.md, double quotes in the frontmatter code example were reverted to single quotes per the project's Prettier config; in scripts/create-versioned-docs.mts, the nested ternary operator indentation was realigned to match Prettier's expected style.

Tip

We verified this fix by re-running nx-cloud record -- nx format:check.

Suggested Fix changes
diff --git a/astro-docs/README.md b/astro-docs/README.md
index bd1b0221..8a8d3e62 100644
--- a/astro-docs/README.md
+++ b/astro-docs/README.md
@@ -194,8 +194,8 @@ Example:
 
 ​`​`​`markdown
 ---
-title: "My New Guide"
-description: "Learn how to use this feature"
+title: 'My New Guide'
+description: 'Learn how to use this feature'
 ---
 
 # Introduction
diff --git a/scripts/create-versioned-docs.mts b/scripts/create-versioned-docs.mts
index 751a0092..93bfbd9e 100644
--- a/scripts/create-versioned-docs.mts
+++ b/scripts/create-versioned-docs.mts
@@ -396,8 +396,8 @@ console.log(
     redirectToProd
       ? 'redirect-to-prod (no build)'
       : isAstro
-      ? 'Astro (v21+)'
-      : 'Next.js (legacy v18-v20)'
+        ? 'Astro (v21+)'
+        : 'Next.js (legacy v18-v20)'
   }\n`
 );
 

🔔 Heads up, your workspace has pending recommendations ↗ to auto-apply fixes for similar failures.

Revert fix via Nx Cloud  

View interactive diff ↗

🎓 Learn more about Self-Healing CI on nx.dev

Co-authored-by: jaysoo <jaysoo@users.noreply.github.com>
@jaysoo jaysoo changed the title chore(misc) update docs version script chore(misc): update docs version script Apr 16, 2026
@jaysoo jaysoo merged commit b7f7c8b into master Apr 17, 2026
24 of 25 checks passed
@jaysoo jaysoo deleted the DOC-69-2 branch April 17, 2026 15:49
@github-actions
Copy link
Copy Markdown
Contributor

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants