From 63acd4fc6f95deebd2d844dba8232de922a72557 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 | 5 +++-- docs/source/conf.py | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sphinx.yml b/.github/workflows/sphinx.yml index 6809dfd..0550745 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 + 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