Skip to content

Commit

Permalink
Update the tutorial of AgentScope (#508)
Browse files Browse the repository at this point in the history
Co-authored-by: AgentScope Team
  • Loading branch information
DavdGao authored Jan 8, 2025
1 parent 7164d76 commit 39f2d85
Show file tree
Hide file tree
Showing 122 changed files with 6,077 additions and 10,510 deletions.
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

0 comments on commit 39f2d85

Please sign in to comment.