From 23aed108003599251939a576f0e0111ac0a8d1f9 Mon Sep 17 00:00:00 2001 From: carlosabadia Date: Sat, 14 Mar 2026 09:24:40 +0100 Subject: [PATCH] remove typense --- .github/workflows/deploy-dev.yml | 11 ---- .github/workflows/deploy-prd.yml | 11 ---- .github/workflows/deploy-stg.yml | 11 ---- .github/workflows/typesense-index.yml | 80 --------------------------- 4 files changed, 113 deletions(-) delete mode 100644 .github/workflows/typesense-index.yml diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index 8ff87394b7..ff6c800cac 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -17,8 +17,6 @@ env: NODE_OPTIONS: "--max-old-space-size=8192" CP_WEB_URL: https://cloud.rxc.app/ CP_BACKEND_URL: https://f188e2cd-51fb-4b29-b546-2ce4b9efc5d5.fly.dev/ - DEV_TYPESENSE_HOST: ${{ secrets.DEV_TYPESENSE_HOST }} - DEV_TYPESENSE_SEARCH_API_KEY: ${{ secrets.DEV_TYPESENSE_SEARCH_API_KEY }} jobs: deploy: @@ -42,15 +40,6 @@ jobs: - name: Update Reflex CLI run: uv pip install reflex-hosting-cli -U - - name: Index documentation to Typesense - env: - TYPESENSE_ADMIN_API_KEY: ${{ secrets.DEV_TYPESENSE_ADMIN_API_KEY }} - TYPESENSE_HOST: ${{ secrets.DEV_TYPESENSE_HOST }} - run: | - uv pip install typesense python-frontmatter markdown beautifulsoup4 - python scripts/typesense_indexer.py --docs-path ./docs --blog-path ./blog --force - python scripts/synonym_indexer.py - - name: Deploy to Reflex id: deploy run: | diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index aa6a022d83..257af8eb91 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -14,8 +14,6 @@ permissions: env: NODE_OPTIONS: "--max-old-space-size=8192" FLY_API_TOKEN: ${{ secrets.PRD_FLY_API_TOKEN }} - TYPESENSE_HOST: ${{ secrets.PRD_TYPESENSE_HOST }} - TYPESENSE_SEARCH_API_KEY: ${{ secrets.PRD_TYPESENSE_SEARCH_API_KEY }} jobs: deploy: @@ -40,15 +38,6 @@ jobs: - name: Update Reflex CLI run: uv pip install reflex-hosting-cli -U - - name: Index documentation to Typesense - env: - TYPESENSE_ADMIN_API_KEY: ${{ secrets.PRD_TYPESENSE_ADMIN_API_KEY }} - TYPESENSE_HOST: ${{ secrets.PRD_TYPESENSE_HOST }} - run: | - uv pip install typesense python-frontmatter markdown beautifulsoup4 - python scripts/typesense_indexer.py --docs-path ./docs --blog-path ./blog --force - python scripts/synonym_indexer.py - - name: Deploy to Reflex id: deploy run: | diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index 3b325128f1..81233116de 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -17,8 +17,6 @@ env: FLY_API_TOKEN: ${{ secrets.STG_FLY_API_TOKEN }} CP_WEB_URL: https://cloud.reflexcorp.run/ CP_BACKEND_URL: https://29f4f535-4fb8-48b9-8b55-2000f2782aee.fly.dev/ - TYPESENSE_HOST: ${{ secrets.STG_TYPESENSE_HOST }} - TYPESENSE_SEARCH_API_KEY: ${{ secrets.STG_TYPESENSE_SEARCH_API_KEY }} jobs: deploy: @@ -42,15 +40,6 @@ jobs: - name: Update Reflex CLI run: uv pip install reflex-hosting-cli -U - - name: Index documentation to Typesense - env: - TYPESENSE_ADMIN_API_KEY: ${{ secrets.STG_TYPESENSE_ADMIN_API_KEY }} - TYPESENSE_HOST: ${{ secrets.STG_TYPESENSE_HOST }} - run: | - uv pip install typesense python-frontmatter markdown beautifulsoup4 - python scripts/typesense_indexer.py --docs-path ./docs --blog-path ./blog --force - python scripts/synonym_indexer.py - - name: Deploy to Reflex id: deploy run: | diff --git a/.github/workflows/typesense-index.yml b/.github/workflows/typesense-index.yml deleted file mode 100644 index 3606505b8e..0000000000 --- a/.github/workflows/typesense-index.yml +++ /dev/null @@ -1,80 +0,0 @@ -name: Typesense Documentation Indexing - -env: - TELEMETRY_ENABLED: false - NODE_OPTIONS: "--max_old_space_size=8192" - -on: - workflow_dispatch: - inputs: - force_reindex: - description: "Force complete reindexing" - type: boolean - default: false - -permissions: - contents: read - -defaults: - run: - shell: bash - -jobs: - index-docs: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - - name: Install the latest version of uv - uses: astral-sh/setup-uv@v6 - with: - python-version: "3.11" - activate-environment: true - - - name: Install indexing dependencies - run: | - uv pip install typesense python-frontmatter markdown beautifulsoup4 - - - name: Run Typesense indexing - env: - TYPESENSE_ADMIN_API_KEY: ${{ secrets.TYPESENSE_ADMIN_API_KEY }} - run: | - python scripts/typesense_indexer.py - - - name: Verify indexing coverage and completeness - env: - TYPESENSE_SEARCH_API_KEY: ${{ secrets.TYPESENSE_SEARCH_API_KEY }} - run: | - echo "=== INDEXING VERIFICATION SUMMARY ===" - echo "The indexing script includes comprehensive verification that:" - echo "✅ All markdown files in /docs are found and processed" - echo "✅ No files are skipped or fail processing" - echo "✅ Section-by-section coverage is 100%" - echo "✅ Final Typesense count matches processed documents" - echo "" - echo "If any markdown files are missing or fail to index, the script will:" - echo "❌ Exit with error code 1" - echo "❌ Report specific failed files and reasons" - echo "❌ Show detailed section breakdown of coverage" - echo "" - echo "Performing additional search verification..." - python -c " - import typesense - client = typesense.Client({ - 'nodes': [{'host': 'z2mi3hyewokc16a4p-1.a1.typesense.net', 'port': '443', 'protocol': 'https'}], - 'api_key': '${{ secrets.TYPESENSE_SEARCH_API_KEY }}', - 'connection_timeout_seconds': 60 - }) - result = client.collections['docs'].documents.search({'q': 'reflex', 'query_by': 'title,content'}) - print(f'✅ Search verification: Found {result[\"found\"]} documents for \"reflex\" query') - - # Test different sections - sections = ['getting_started', 'library', 'hosting', 'events', 'styling'] - for section in sections: - result = client.collections['docs'].documents.search({ - 'q': section, - 'query_by': 'section,title,content', - 'per_page': 1 - }) - print(f'✅ Section \"{section}\": {result[\"found\"]} searchable documents') - "