Skip to content

chore: remove GitBook migration layer and unused assets#290

Open
JC-fin wants to merge 2 commits intomainfrom
chore/remove-gitbook
Open

chore: remove GitBook migration layer and unused assets#290
JC-fin wants to merge 2 commits intomainfrom
chore/remove-gitbook

Conversation

@JC-fin
Copy link
Copy Markdown
Collaborator

@JC-fin JC-fin commented Apr 2, 2026

Summary

  • Removes scripts/process-gitbook.js — a transitional script from the GitBook-to-Starlight migration that is no longer needed. The sidebar config in astro.config.mjs is already manually maintained, and no GitBook markdown syntax remains in any content files.
  • Deletes 119 unused assets from public/docs/gitbook/ (images, PDFs) — none are referenced anywhere in the codebase.
  • Removes gray-matter and js-yaml dependencies — only used by the deleted script.
  • Simplifies build scriptsnpm run dev and npm run build no longer run the gitbook processing step, which was also overwriting manual sidebar edits on every build.
  • Updates README to remove gitbook references.

Note: The failing "GitBook" status check on PRs is a separate GitHub App integration that should also be removed from the repo's GitHub Apps settings.

Test plan

  • npm run dev starts cleanly without the gitbook processing step
  • npm run build passes (same pre-existing 404 issue as main, unrelated)
  • Verified no content files reference ~/assets/gitbook/ or public/docs/gitbook/
  • Confirm Netlify deploy preview builds successfully
  • Remove GitBook GitHub App integration from repo settings

🤖 Generated with Claude Code

The process-gitbook.js script was a transitional compatibility layer
from the GitBook-to-Starlight migration. The sidebar config is now
manually maintained in astro.config.mjs, no GitBook markdown syntax
remains in the content, and none of the 119 assets in public/docs/gitbook/
are referenced anywhere. This removes the script, the unused assets,
the gray-matter and js-yaml dependencies, and cleans up the build scripts.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@netlify
Copy link
Copy Markdown

netlify bot commented Apr 2, 2026

Deploy Preview for mezo-docs ready!

Name Link
🔨 Latest commit 25cffe0
🔍 Latest deploy log https://app.netlify.com/projects/mezo-docs/deploys/69cdc3e80ae199000868fec2
😎 Deploy Preview https://deploy-preview-290--mezo-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.

The 11 translated 404 pages had an incorrect relative import path
(5 levels up instead of 6) for RedirectScript.astro, causing the
build to fail. Previously masked by process-gitbook.js rewriting
paths at build time.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@JC-fin JC-fin requested a review from Shadowfiend April 2, 2026 04:39
@JC-fin
Copy link
Copy Markdown
Collaborator Author

JC-fin commented Apr 2, 2026

got tired of seeing the github failed build lol. I removed it from the app integrations as well
Like i said we havent been paying for an account on that since we stopped relying on it which was ~1yr ago.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant