Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
47 changes: 45 additions & 2 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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."
2 changes: 2 additions & 0 deletions docs/llms-full.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 %}

2 changes: 2 additions & 0 deletions docs/oauth-client-app-guide.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down Expand Up @@ -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 %}
Loading