diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 836fa04..6b840eb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,8 +3,22 @@ name: CI on: push: branches: [ main, develop ] + paths: + - 'packages/**' + - 'pnpm-lock.yaml' + - 'package.json' + - 'tsconfig.json' + - 'turbo.json' + - '.github/workflows/ci.yml' pull_request: branches: [ main, develop ] + paths: + - 'packages/**' + - 'pnpm-lock.yaml' + - 'package.json' + - 'tsconfig.json' + - 'turbo.json' + - '.github/workflows/ci.yml' jobs: test: diff --git a/.github/workflows/pr-validation.yml b/.github/workflows/pr-validation.yml index 0dc7e21..581f2e6 100644 --- a/.github/workflows/pr-validation.yml +++ b/.github/workflows/pr-validation.yml @@ -6,9 +6,31 @@ on: types: [opened, synchronize, reopened, ready_for_review] jobs: - validate: + changes: runs-on: ubuntu-latest if: github.event.pull_request.draft == false + outputs: + code: ${{ steps.filter.outputs.code }} + docs: ${{ steps.filter.outputs.docs }} + steps: + - uses: actions/checkout@v4 + - uses: dorny/paths-filter@v3 + id: filter + with: + filters: | + code: + - 'packages/**' + - 'pnpm-lock.yaml' + - 'package.json' + - 'tsconfig.json' + - 'turbo.json' + docs: + - 'docs/**' + + validate: + runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.code == 'true' steps: - name: Checkout code @@ -76,7 +98,8 @@ jobs: size-check: runs-on: ubuntu-latest - if: github.event.pull_request.draft == false + needs: changes + if: needs.changes.outputs.code == 'true' steps: - name: Checkout code @@ -119,3 +142,23 @@ jobs: run: | cd packages/mindcache && pnpm pack && ls -lh *.tgz && rm *.tgz echo "✅ Package size check complete!" + + docs-check: + runs-on: ubuntu-latest + needs: changes + if: needs.changes.outputs.docs == 'true' + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: 📄 Build GitHub Pages (Jekyll) + uses: actions/jekyll-build-pages@v1 + with: + source: ./docs + destination: ./_site + + - name: ✅ Docs build passed + run: | + echo "🎉 GitHub Pages build successful!" + echo "No Liquid syntax errors found." diff --git a/docs/llms-full.md b/docs/llms-full.md index d176a47..0ea2146 100644 --- a/docs/llms-full.md +++ b/docs/llms-full.md @@ -1,3 +1,4 @@ +{% raw %} # MindCache - Complete LLM Documentation > This document is optimized for LLMs to understand and work with MindCache. It contains comprehensive API documentation with extensive code examples. @@ -2479,4 +2480,5 @@ NEXT_PUBLIC_INSTANCE_ID=your-instance-id --- *This documentation is optimized for LLM consumption. For human-readable documentation with interactive examples, visit [mindcache.dev](https://mindcache.dev).* +{% endraw %} diff --git a/docs/oauth-client-app-guide.md b/docs/oauth-client-app-guide.md index 26c2e42..73294bf 100644 --- a/docs/oauth-client-app-guide.md +++ b/docs/oauth-client-app-guide.md @@ -1,3 +1,4 @@ +{% raw %} # Building Apps with MindCache OAuth Create apps where users can "Sign in with MindCache" to get automatic cloud storage and sync. @@ -257,3 +258,4 @@ oauth.tokenProvider // Token function for MindCache **"CORS error"**: Check that you're using the correct API URLs for your environment. **"Session expired"**: The refresh token (30 days) expired. User needs to sign in again. +{% endraw %}