Skip to content

Commit

Permalink
Doc/tutorial (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao authored Jan 6, 2025
1 parent daeed21 commit 186d99d
Show file tree
Hide file tree
Showing 92 changed files with 3,085 additions and 10,800 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/sphinx_docs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Deploy Sphinx documentation to Pages

on:
pull_request:
types: [opened, synchronize]
paths:
- 'docs/**/*'
push:
branches:
- main
Expand All @@ -26,25 +22,25 @@ jobs:
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Update setuptools
run: |
pip install setuptools==68.2.2 wheel==0.41.2
- name: Install Dependencies

- name: Add execute permission to build.sh
run: |
pip install -q -e .[full]
chmod +x docs/tutorial/en/build.sh
- id: build
name: Build Documentation
env:
DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }}
run: |
cd docs/sphinx_doc
./build_sphinx_doc.sh
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'
publish_dir: 'docs/tutorial/build/html'
cname: doc.agentscope.io
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ dmypy.json
.DS_Store

# docs
docs/sphinx_doc/build/
docs/tutorial/en/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 186d99d

Please sign in to comment.