From 343fe608c077eb62374daffadb6a57740774a572 Mon Sep 17 00:00:00 2001 From: hs_junxiang Date: Thu, 21 Sep 2023 13:17:48 +0800 Subject: [PATCH] no module name google in cicd --- .github/workflows/sphinx.yml | 7 ++++--- docs/source/conf.py | 4 +++- pyproject.toml | 1 - 3 files changed, 7 insertions(+), 5 deletions(-) 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..4e3fa2c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -13,7 +13,6 @@ matplotlib = "3.6.2" pandas = "1.5.3" protobuf = "4.24.3" pycryptodome = "3.18.0" -pyga4 = "0.1.0" [build-system] requires = ["poetry-core"]