From 9bd7d5fba73a3d3763151c5a90df41ee13f5de9b Mon Sep 17 00:00:00 2001
From: "Bingxi Zhao (Frank)" <13051345080@163.com>
Date: Tue, 24 Mar 2026 21:07:49 +0800
Subject: [PATCH] update readme
---
.github/workflows/docker-publish.yml | 251 ---------------------------
.github/workflows/docs.yaml | 61 -------
.github/workflows/linting.yaml | 108 ------------
.github/workflows/sync-branch.yml | 41 -----
.github/workflows/update-roster.yml | 48 -----
Dockerfile | 2 +-
README.md | 64 +++----
pyproject.toml | 2 +-
web/package-lock.json | 23 +--
web/package.json | 2 +-
10 files changed, 40 insertions(+), 562 deletions(-)
delete mode 100644 .github/workflows/docker-publish.yml
delete mode 100644 .github/workflows/docs.yaml
delete mode 100644 .github/workflows/linting.yaml
delete mode 100644 .github/workflows/sync-branch.yml
delete mode 100644 .github/workflows/update-roster.yml
diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml
deleted file mode 100644
index 173481bc7..000000000
--- a/.github/workflows/docker-publish.yml
+++ /dev/null
@@ -1,251 +0,0 @@
-name: Build and Publish Docker Image
-
-on:
- # Manual trigger only - gives full control over when images are published
- workflow_dispatch:
- inputs:
- version:
- description: "Version tag (e.g., 0.6.0, 1.0.0) - without 'v' prefix"
- required: true
- type: string
- push_latest:
- description: "Also update the 'latest' tag?"
- required: true
- type: boolean
- default: true
-
-env:
- REGISTRY: ghcr.io
- # IMAGE_NAME must be lowercase for Docker
- IMAGE_NAME: hkuds/deeptutor
-
-jobs:
- # ============================================
- # Build Multi-Architecture Docker Image
- # ============================================
- # This job builds both AMD64 and ARM64 images and creates
- # a multi-arch manifest so Docker automatically pulls the
- # correct architecture for each user's system.
- # ============================================
- build-multiarch:
- name: Build Multi-Arch Image
- runs-on: ubuntu-latest
-
- permissions:
- contents: read
- packages: write
-
- steps:
- - name: Free disk space
- uses: jlumbroso/free-disk-space@main
- with:
- tool-cache: true
- android: true
- dotnet: true
- haskell: true
- large-packages: true
- docker-images: true
- swap-storage: true
-
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- - name: Set up Docker Buildx
- uses: docker/setup-buildx-action@v3
-
- - name: Log in to Container Registry
- uses: docker/login-action@v3
- with:
- registry: ${{ env.REGISTRY }}
- username: ${{ github.actor }}
- password: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Validate and set version
- id: version
- run: |
- VERSION="${{ github.event.inputs.version }}"
-
- # Validate version format (e.g., 0.6.0, 1.0.0)
- if ! [[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- echo "❌ Error: Invalid version format '$VERSION'"
- echo " Expected format: X.Y.Z (e.g., 0.6.0, 1.0.0)"
- exit 1
- fi
-
- echo "version=${VERSION}" >> $GITHUB_OUTPUT
- echo "📌 Version: ${VERSION}"
- echo "📌 Push latest: ${{ github.event.inputs.push_latest }}"
-
- # ============================================
- # Build and push multi-arch image
- # Docker will automatically create a manifest list
- # that includes both architectures
- # ============================================
- - name: Build and push multi-arch image
- id: build
- uses: docker/build-push-action@v6
- with:
- context: .
- file: ./Dockerfile
- target: production
- push: true
- # Build for both architectures in a single command
- platforms: linux/amd64,linux/arm64
- tags: |
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
- labels: |
- org.opencontainers.image.title=DeepTutor
- org.opencontainers.image.description=AI-Powered Personalized Learning Assistant
- org.opencontainers.image.version=${{ steps.version.outputs.version }}
- org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
- org.opencontainers.image.revision=${{ github.sha }}
- cache-from: type=gha
- cache-to: type=gha,mode=max
- build-args: |
- BACKEND_PORT=8001
- provenance: false
-
- # ============================================
- # Update 'latest' tag if requested
- # ============================================
- - name: Tag as latest
- if: github.event.inputs.push_latest == 'true'
- run: |
- VERSION="${{ steps.version.outputs.version }}"
-
- echo "🏷️ Tagging ${VERSION} as latest..."
-
- # Pull the manifest and retag as latest
- docker buildx imagetools create \
- --tag ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest \
- ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${VERSION}
-
- echo "✅ Successfully tagged as latest"
-
- # ============================================
- # Create architecture-specific tags for compatibility
- # Some users may prefer explicit architecture tags
- # ============================================
- - name: Create architecture-specific tags
- run: |
- VERSION="${{ steps.version.outputs.version }}"
- IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
-
- echo "🏷️ Creating architecture-specific tags..."
-
- # Create version-specific architecture tags
- # These are optional convenience tags for users who want explicit control
-
- # For AMD64
- docker buildx imagetools create \
- --tag ${IMAGE}:${VERSION}-amd64 \
- ${IMAGE}:${VERSION} --platform linux/amd64 || true
-
- # For ARM64
- docker buildx imagetools create \
- --tag ${IMAGE}:${VERSION}-arm64 \
- ${IMAGE}:${VERSION} --platform linux/arm64 || true
-
- # Create latest-arm64 for backward compatibility (only if pushing latest)
- if [ "${{ github.event.inputs.push_latest }}" == "true" ]; then
- docker buildx imagetools create \
- --tag ${IMAGE}:latest-arm64 \
- ${IMAGE}:latest --platform linux/arm64 || true
- fi
-
- echo "✅ Architecture-specific tags created"
-
- # ============================================
- # Verify the multi-arch manifest
- # ============================================
- - name: Verify multi-arch manifest
- run: |
- VERSION="${{ steps.version.outputs.version }}"
- IMAGE="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}"
-
- echo "🔍 Verifying multi-arch manifest for ${IMAGE}:${VERSION}..."
- docker buildx imagetools inspect ${IMAGE}:${VERSION}
-
- if [ "${{ github.event.inputs.push_latest }}" == "true" ]; then
- echo ""
- echo "🔍 Verifying multi-arch manifest for ${IMAGE}:latest..."
- docker buildx imagetools inspect ${IMAGE}:latest
- fi
-
- # ============================================
- # Generate Summary
- # ============================================
- summary:
- name: Generate Summary
- runs-on: ubuntu-latest
- needs: [build-multiarch]
- if: always()
-
- steps:
- - name: Get version
- id: version
- run: |
- echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
-
- - name: Generate image summary
- run: |
- VERSION="${{ steps.version.outputs.version }}"
-
- echo "## 🐳 Docker Images Build Summary" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "**Registry:** \`${{ env.REGISTRY }}\`" >> $GITHUB_STEP_SUMMARY
- echo "**Version:** \`${VERSION}\`" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
-
- echo "### Build Status" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- if [ "${{ needs.build-multiarch.result }}" == "success" ]; then
- echo "✅ **Multi-arch build successful!**" >> $GITHUB_STEP_SUMMARY
- else
- echo "❌ **Build failed**" >> $GITHUB_STEP_SUMMARY
- fi
- echo "" >> $GITHUB_STEP_SUMMARY
-
- echo "### Available Images" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "| Tag | Architectures | Description |" >> $GITHUB_STEP_SUMMARY
- echo "|-----|---------------|-------------|" >> $GITHUB_STEP_SUMMARY
- echo "| \`:latest\` | AMD64, ARM64 | Latest stable release (auto-detects architecture) |" >> $GITHUB_STEP_SUMMARY
- echo "| \`:${VERSION}\` | AMD64, ARM64 | Version ${VERSION} (auto-detects architecture) |" >> $GITHUB_STEP_SUMMARY
- echo "| \`:${VERSION}-amd64\` | AMD64 only | Explicit AMD64 image |" >> $GITHUB_STEP_SUMMARY
- echo "| \`:${VERSION}-arm64\` | ARM64 only | Explicit ARM64 image |" >> $GITHUB_STEP_SUMMARY
- echo "| \`:latest-arm64\` | ARM64 only | Latest ARM64 (backward compatibility) |" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
-
- echo "### Quick Start" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "**Recommended (auto-detects your architecture):**" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
- echo "docker pull ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "**Run the container:**" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
- echo "docker run -d --name deeptutor \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -p 8001:8001 -p 3782:3782 \\\\" >> $GITHUB_STEP_SUMMARY
- echo " --env-file .env \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -e LLM_MODEL=gpt-4o \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -e LLM_API_KEY=your-api-key \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -e EMBEDDING_MODEL=text-embedding-3-large \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -e EMBEDDING_API_KEY=your-api-key \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -v \$(pwd)/data/user:/app/data/user \\\\" >> $GITHUB_STEP_SUMMARY
- echo " -v \$(pwd)/data/knowledge_bases:/app/data/knowledge_bases \\\\" >> $GITHUB_STEP_SUMMARY
- echo " ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest" >> $GITHUB_STEP_SUMMARY
- echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
-
- echo "### Architecture Detection" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "The \`:latest\` and \`:${VERSION}\` tags are **multi-architecture images**." >> $GITHUB_STEP_SUMMARY
- echo "Docker will automatically pull the correct image for your system:" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "- **AMD64**: Intel/AMD processors (most Windows PCs, Linux servers)" >> $GITHUB_STEP_SUMMARY
- echo "- **ARM64**: Apple Silicon (M1/M2/M3/M4), AWS Graviton, Raspberry Pi 4+" >> $GITHUB_STEP_SUMMARY
diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml
deleted file mode 100644
index 796833d31..000000000
--- a/.github/workflows/docs.yaml
+++ /dev/null
@@ -1,61 +0,0 @@
-name: Deploy Documentation
-
-on:
- push:
- branches: [main, dev]
- paths:
- - 'docs/**'
- - '.github/workflows/docs.yaml'
- workflow_dispatch:
-
-permissions:
- contents: read
- pages: write
- id-token: write
-
-concurrency:
- group: pages
- cancel-in-progress: false
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - name: Setup Node
- uses: actions/setup-node@v4
- with:
- node-version: 20
- cache: npm
- cache-dependency-path: docs/package-lock.json
-
- - name: Setup Pages
- uses: actions/configure-pages@v5
- with:
- enablement: true
-
- - name: Install dependencies
- run: cd docs && npm ci
-
- - name: Build with VitePress
- run: cd docs && npm run build
-
- - name: Upload artifact
- uses: actions/upload-pages-artifact@v4
- with:
- path: docs/.vitepress/dist
-
- deploy:
- environment:
- name: github-pages
- url: ${{ steps.deployment.outputs.page_url }}
- needs: build
- runs-on: ubuntu-latest
- steps:
- - name: Deploy to GitHub Pages
- id: deployment
- uses: actions/deploy-pages@v4
diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml
deleted file mode 100644
index 7ab507071..000000000
--- a/.github/workflows/linting.yaml
+++ /dev/null
@@ -1,108 +0,0 @@
-name: Linting and Formatting
-
-on:
- push:
- branches:
- - main
- - dev
- paths:
- - "deeptutor/**"
- - "deeptutor_cli/**"
- - "web/**"
- - "scripts/**"
- - "tests/**"
- - ".pre-commit-config.yaml"
- - "pyproject.toml"
- - ".github/workflows/linting.yaml"
- pull_request:
- branches:
- - main
- - dev
- paths:
- - "deeptutor/**"
- - "deeptutor_cli/**"
- - "web/**"
- - "scripts/**"
- - "tests/**"
- - ".pre-commit-config.yaml"
- - "pyproject.toml"
- - ".github/workflows/linting.yaml"
-
-jobs:
- python-lint:
- name: Python Linting
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: "3.10"
-
- - name: Cache pre-commit
- uses: actions/cache@v4
- with:
- path: ~/.cache/pre-commit
- key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
- restore-keys: |
- pre-commit-
-
- - name: Install pre-commit
- run: |
- python -m pip install --upgrade pip
- pip install pre-commit tomli
-
- - name: Run pre-commit on Python files
- run: |
- echo "🔍 Running pre-commit hooks on Python files..."
- pre-commit run --all-files --verbose
-
- frontend-lint:
- name: Frontend Linting
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout code
- uses: actions/checkout@v4
-
- - name: Set up Node.js
- uses: actions/setup-node@v4
- with:
- node-version: "20"
- cache: "npm"
- cache-dependency-path: web/package-lock.json
-
- - name: Install frontend dependencies
- working-directory: ./web
- run: npm ci
-
- - name: Run ESLint
- working-directory: ./web
- run: npm run lint
-
- - name: TypeScript type check
- working-directory: ./web
- run: npx tsc --noEmit
-
- lint-summary:
- name: Lint Summary
- runs-on: ubuntu-latest
- needs: [python-lint, frontend-lint]
- if: always()
-
- steps:
- - name: Generate summary
- run: |
- echo "## 🔍 Linting Results" >> $GITHUB_STEP_SUMMARY
- echo "" >> $GITHUB_STEP_SUMMARY
- echo "| Check | Status |" >> $GITHUB_STEP_SUMMARY
- echo "|-------|--------|" >> $GITHUB_STEP_SUMMARY
- echo "| Python (pre-commit) | ${{ needs.python-lint.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
- echo "| Frontend (ESLint + TypeScript) | ${{ needs.frontend-lint.result == 'success' && '✅ Passed' || '❌ Failed' }} |" >> $GITHUB_STEP_SUMMARY
-
- - name: Fail if linting failed
- if: needs.python-lint.result == 'failure' || needs.frontend-lint.result == 'failure'
- run: exit 1
diff --git a/.github/workflows/sync-branch.yml b/.github/workflows/sync-branch.yml
deleted file mode 100644
index 04abbc526..000000000
--- a/.github/workflows/sync-branch.yml
+++ /dev/null
@@ -1,41 +0,0 @@
-name: Sync Branch
-
-on:
- # Run automatically every 4 hours
- schedule:
- - cron: '0 */4 * * *'
- # Allow manual trigger
- workflow_dispatch:
-
-permissions:
- contents: write
-
-jobs:
- sync:
- runs-on: ubuntu-latest
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- ref: main
- token: ${{ secrets.GITHUB_TOKEN }}
-
- - name: Configure Git
- run: |
- git config user.name "github-actions[bot]"
- git config user.email "github-actions[bot]@users.noreply.github.com"
-
- - name: Sync main to sync branch
- run: |
- # Check whether the sync branch exists
- if git ls-remote --heads origin sync | grep -q sync; then
- echo "sync branch exists, updating..."
- else
- echo "sync branch does not exist, creating..."
- fi
-
- # Force-push main branch contents to sync branch
- git push origin main:sync --force
-
- echo "✅ Successfully synced main branch to sync branch"
diff --git a/.github/workflows/update-roster.yml b/.github/workflows/update-roster.yml
deleted file mode 100644
index 1ca826af3..000000000
--- a/.github/workflows/update-roster.yml
+++ /dev/null
@@ -1,48 +0,0 @@
-name: Update Repo Roster
-
-on:
- # Run once a day (at 00:00 UTC)
- schedule:
- - cron: '0 0 * * *'
- # Allow manual trigger
- workflow_dispatch:
- # Run when stars/forks might change (on push to main/dev)
- push:
- branches:
- - main
- - dev
- paths:
- - 'scripts/generate_roster.py'
-
-jobs:
- update-roster:
- runs-on: ubuntu-latest
- permissions:
- contents: write
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
-
- - name: Set up Python
- uses: actions/setup-python@v5
- with:
- python-version: '3.10'
-
- - name: Generate roster images
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- python scripts/generate_roster.py \
- --repo HKUDS/DeepTutor \
- --output assets/roster \
- --theme dark \
- --display 6
-
- - name: Commit and push if changed
- run: |
- git config --local user.email "github-actions[bot]@users.noreply.github.com"
- git config --local user.name "github-actions[bot]"
- git add assets/roster/
- git diff --quiet --cached || git commit -m "chore: update repo roster images [skip ci]"
- git push
diff --git a/Dockerfile b/Dockerfile
index 4f21bfdff..66de183d4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -87,7 +87,7 @@ FROM python:3.11-slim AS production
# Labels
LABEL maintainer="DeepTutor Team" \
description="DeepTutor: AI-Powered Personalized Learning Assistant" \
- version="0.1.0"
+ version="1.0.0"
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
diff --git a/README.md b/README.md
index 1df0f3db9..8d97abd02 100644
--- a/README.md
+++ b/README.md
@@ -2,11 +2,9 @@
-# DeepTutor
+# DeepTutor: Towards Agentic Personalized Tutoring
-**Your AI-Powered Learning Companion**
-
-[](https://www.python.org/downloads/)
+[](https://www.python.org/downloads/)
[](https://nextjs.org/)
[](LICENSE)
@@ -24,15 +22,41 @@
-DeepTutor is an open-source intelligent learning platform that goes far beyond simple Q&A. It brings together conversational AI, personal tutoring agents, knowledge management, and adaptive learning into a unified experience — designed for learners who want depth, not just answers.
+---
+### 📰 News
-
-