From bdc76aed344549a85d8f79b9760aaecad3b812b4 Mon Sep 17 00:00:00 2001 From: "T.Tian" Date: Tue, 19 Nov 2024 18:01:26 +0800 Subject: [PATCH] ignore api subfolder --- .github/workflows/publish_doc_pages.yml | 11 ++++++++--- .gitignore | 1 + 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_doc_pages.yml b/.github/workflows/publish_doc_pages.yml index 8b2eab4f..4c43f87c 100644 --- a/.github/workflows/publish_doc_pages.yml +++ b/.github/workflows/publish_doc_pages.yml @@ -1,15 +1,18 @@ name: Publish Document Pages for SPARC-X-API +# SPARC source code components are also parsed at each submission on: push: branches: - master - 'doc/**' + - 'sparc/**' pull_request: branches: - master paths: - 'doc/**' + - 'sparc/**' workflow_dispatch: @@ -34,17 +37,19 @@ jobs: pip install -e ".[doc]" - name: Build sphix doc run: | - sphinx-build doc doc/_build + # sphinx-build doc doc/_build + cd doc + make clean && make html - name: Deploy to github pages uses: peaceiris/actions-gh-pages@v4 if: github.ref == 'refs/heads/master' && github.event_name == 'push' with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_branch: gh_pages - publish_dir: doc/_build + publish_dir: doc/_build/html - name: Upload preview when creating pull request if: github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: docs_build_preview - path: doc/_build + path: doc/_build/html diff --git a/.gitignore b/.gitignore index 2e6415d1..b59d4ed3 100644 --- a/.gitignore +++ b/.gitignore @@ -787,3 +787,4 @@ examples/ex1-ase/ /paper/paper.pdf /paper/jats/ /doc/_build/ +/doc/api/