diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 6809dfd..ae04f2b 100644 --- a/.github/workflows/sphinx.yml +++ b/.github/workflows/sphinx.yml @@ -12,11 +12,12 @@ 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 @@ -24,5 +25,5 @@ jobs: 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 diff --git a/docs/source/conf.py b/docs/source/conf.py index cac6681..4ee9af8 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 4ef6782..f5b9eea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,7 @@ matplotlib = "3.6.2" pandas = "1.5.3" protobuf = "4.24.3" pycryptodome = "3.18.0" -pyga4 = "0.1.0" +google-cloud = "0.34.0" [build-system] requires = ["poetry-core"]