Skip to main content
Glama
update-docs-weekly.yml4.34 kB
name: Weekly Documentation Update on: schedule: # Run every Sunday at 2:00 UTC (only changed pages, minimal update) - cron: '0 2 * * 0' workflow_dispatch: # Allow manual trigger permissions: contents: write pull-requests: write jobs: update-docs: name: Update Documentation Index runs-on: ubuntu-latest timeout-minutes: 60 steps: - name: Checkout code uses: actions/checkout@v4 with: ref: prod fetch-depth: 0 lfs: true - name: Setup Git LFS run: | git lfs install git lfs pull - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: '20.x' cache: 'npm' - name: Configure Git run: | git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - name: Install dependencies run: npm ci - name: Update documentation (incremental, with embeddings) run: npm run index-docs -- --incremental --sitemap --embeddings env: # Allow longer timeout for embedding generation NODE_OPTIONS: --max-old-space-size=6144 - name: Check for changes id: check_changes run: | if git diff --quiet data/mcmodding-docs.db 2>/dev/null; then echo "has_changes=false" >> $GITHUB_OUTPUT echo "No documentation changes detected" else echo "has_changes=true" >> $GITHUB_OUTPUT echo "Documentation changes detected" fi - name: Generate database manifest (incremental) if: steps.check_changes.outputs.has_changes == 'true' run: | TIMESTAMP=$(date -u +'%Y.%m.%d') npm run db:manifest -- --version "$TIMESTAMP" --type incremental --changelog "Incremental weekly documentation update" - name: Commit documentation updates if: steps.check_changes.outputs.has_changes == 'true' run: | git add data/mcmodding-docs.db data/db-manifest.json git commit -m "fix(docs): update documentation index" -m "- Incremental update of documentation pages - Updated embeddings for semantic search - Automated weekly update Generated by: GitHub Actions (update-docs-weekly)" - name: Create Pull Request if: steps.check_changes.outputs.has_changes == 'true' uses: peter-evans/create-pull-request@v5 with: commit-message: 'fix(docs): update documentation index' title: 'fix(docs): weekly documentation update' body: | ## Weekly Documentation Update This PR updates the documentation index with the latest content from: - wiki.fabricmc.net - docs.fabricmc.net ### Changes - ✅ Fetched latest documentation pages - ✅ Updated chunks for incremental changes only - ✅ Regenerated semantic embeddings for updated chunks - ✅ Database stored via Git LFS - ✅ No breaking changes ### How to Test ```bash npm run start ``` Then test the `search_fabric_docs` and `explain_fabric_concept` tools with recent topics. --- *This is an automated weekly update. No manual action needed.* branch: 'docs/update-${{ github.run_number }}' base: prod delete-branch: true labels: 'documentation,automated' - name: Log summary run: | echo "## Documentation Update Summary" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY if [[ "${{ steps.check_changes.outputs.has_changes }}" == "true" ]]; then echo "✅ Documentation index updated with incremental changes" >> $GITHUB_STEP_SUMMARY else echo "ℹ️ No documentation changes detected" >> $GITHUB_STEP_SUMMARY fi echo "" >> $GITHUB_STEP_SUMMARY echo "**Schedule:** Every Sunday at 2:00 UTC" >> $GITHUB_STEP_SUMMARY echo "**Update Type:** Incremental (only changed pages)" >> $GITHUB_STEP_SUMMARY echo "**Embeddings:** Regenerated for changed chunks" >> $GITHUB_STEP_SUMMARY

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/OGMatrix/mcmodding-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server