Skip to content

chore(docs): fix static docs build, add ci to deploy to github page and preview on pull - #31

Merged
wsxiaoys merged 6 commits into
mainfrom
ci/gh-page
Aug 21, 2025
Merged

chore(docs): fix static docs build, add ci to deploy to github page and preview on pull#31
wsxiaoys merged 6 commits into
mainfrom
ci/gh-page

Conversation

@zwpaper

@zwpaper zwpaper commented Aug 21, 2025

Copy link
Copy Markdown
Member
  1. deleted llms.mdx/ folder since it's dynamic route, can not be built to static site
  2. should change the github page source setting to Deploy from branch(required by pr preview)

@zwpaper zwpaper changed the title chore(docs): fix status docs build and add ci to deploy to github page chore(docs): fix static docs build, add ci to deploy to github page and preview on pull Aug 21, 2025
@github-actions

github-actions Bot commented Aug 21, 2025

Copy link
Copy Markdown
Contributor
PR Preview Action v1.6.2

🚀 View preview at
https://TabbyML.github.io/pochi/pr-preview/pr-31/

Built to branch gh-pages at 2025-08-21 16:09 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread packages/docs/src/app/components/search.tsx
Comment thread .github/workflows/docs.yml Outdated
@wsxiaoys
wsxiaoys enabled auto-merge (squash) August 21, 2025 16:04
@wsxiaoys
wsxiaoys merged commit 6298593 into main Aug 21, 2025
5 of 6 checks passed
VitorEAFeliciano pushed a commit to Navegos/pochi that referenced this pull request Jun 19, 2026
Co-authored-by: github-actions <actions@github.com>
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.

3 participants