Skip to content

Commit

Permalink
no module name google in cicd
Browse files Browse the repository at this point in the history
  • Loading branch information
Lin-jun-xiang committed Sep 21, 2023
1 parent 105c7ee commit ef2ed2a
Show file tree
Hide file tree
Showing 4 changed files with 526 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,18 @@ jobs:
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme
pip install sphinx sphinx_rtd_theme poetry
poetry install
- name: Sphinx build
run: |
cd docs
make clean
make html
- name: Deploy to Github Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }} # the default token which no need create
publish_dir: docs/build/html # the path of doc
publish_dir: docs/build/html # A source directory to deploy to GitHub Pages (the path of doc)
force_orphan: true
4 changes: 3 additions & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
# https://www.sphinx-doc.org/en/master/usage/configuration.html
import os
import sys
from pathlib import Path

sys.path.insert(0, os.path.abspath('../..'))
sys.path.insert(0, os.path.abspath('../..//pyga4'))
sys.path.insert(0, os.path.abspath('../../pyga4'))

# -- Project information -----------------------------------------------------
# https://www.sphinx-doc.org/en/master/usage/configuration.html#project-information
Expand Down
Loading

0 comments on commit ef2ed2a

Please sign in to comment.