Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the tutorial of AgentScope #508

Merged
merged 23 commits into from
Jan 8, 2025
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
25 changes: 13 additions & 12 deletions .github/workflows/sphinx_docs.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
name: Deploy Sphinx documentation to Pages

on:
pull_request:
types: [opened, synchronize]
paths:
- 'docs/**/*'
push:
branches:
- main

jobs:
pages:
build_tutorial:
timeout-minutes: 20
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -32,19 +28,24 @@ jobs:
- name: Install Dependencies
run: |
pip install -q -e .[full]
- id: build
name: Build Documentation
- name: Add execute permission to build.sh
run: |
cd docs/sphinx_doc
./build_sphinx_doc.sh
chmod +x docs/tutorial/en/build.sh
- id: build_en
name: Build English Documentation
env:
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
run: |
cd docs/tutorial/en/
./build.sh
- name: Upload Documentation
uses: actions/upload-artifact@v4
with:
name: SphinxDoc
path: 'docs/sphinx_doc/build'
path: 'docs/tutorial/en/build'
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: 'docs/sphinx_doc/build/html'
cname: doc.agentscope.io
publish_dir: 'docs/tutorial/en/build/html'
cname: doc.agentscope.io
2 changes: 1 addition & 1 deletion .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
coverage run tests/run.py
- name: Generate coverage report
run: |
coverage report -m
coverage report -m
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ dmypy.json
.DS_Store

# docs
docs/sphinx_doc/build/
docs/tutorial/en/build/
docs/tutorial/zh/build/

# Used to save loggings and files
*runs/
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ repos:
hooks:
- id: flake8
args: ["--extend-ignore=E203"]
exclude: ^docs
- repo: https://github.com/pylint-dev/pylint
rev: v3.0.2
hooks:
Expand Down
32 changes: 0 additions & 32 deletions docs/sphinx_doc/Makefile

This file was deleted.

12 changes: 0 additions & 12 deletions docs/sphinx_doc/assets/redirect.html

This file was deleted.

4 changes: 0 additions & 4 deletions docs/sphinx_doc/build_sphinx_doc.sh

This file was deleted.

4 changes: 0 additions & 4 deletions docs/sphinx_doc/en/source/_static/custom.css

This file was deleted.

5 changes: 0 additions & 5 deletions docs/sphinx_doc/en/source/_templates/language_selector.html

This file was deleted.

3 changes: 0 additions & 3 deletions docs/sphinx_doc/en/source/_templates/layout.html

This file was deleted.

93 changes: 0 additions & 93 deletions docs/sphinx_doc/en/source/conf.py

This file was deleted.

63 changes: 0 additions & 63 deletions docs/sphinx_doc/en/source/index.rst

This file was deleted.

Loading
Loading