chore(docs): fix static docs build, add ci to deploy to github page and preview on pull - #31
Merged
Conversation
Contributor
|
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the static documentation build by removing dynamic routing functionality and configures CI/CD for GitHub Pages deployment. The changes enable static site generation and automate deployment for both the main branch and pull request previews.
- Removed dynamic
llms.mdx/route that was incompatible with static builds - Replaced server-side search with client-side static search using Orama
- Added GitHub Actions workflow for automated deployment and PR previews
Reviewed Changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/docs/src/app/llms.mdx/[[...slug]]/route.ts | Deleted dynamic route handler that prevented static builds |
| packages/docs/src/app/layout.tsx | Integrated new static search component |
| packages/docs/src/app/components/search.tsx | Added client-side search implementation using Orama |
| packages/docs/src/app/api/search/route.ts | Updated search API to use static generation |
| packages/docs/package.json | Added Orama dependency for static search |
| packages/docs/next.config.mjs | Enabled static export and removed dynamic rewrites |
| .github/workflows/docs.yml | Added CI workflow for GitHub Pages deployment and PR previews |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
wsxiaoys
enabled auto-merge (squash)
August 21, 2025 16:04
VitorEAFeliciano
pushed a commit
to Navegos/pochi
that referenced
this pull request
Jun 19, 2026
Co-authored-by: github-actions <actions@github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
llms.mdx/folder since it's dynamic route, can not be built to static siteDeploy from branch(required by pr preview)