Skip to content
This repository has been archived by the owner on Dec 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #38 from nanten2/#14-docs
Browse files Browse the repository at this point in the history
Add documentation workflow
  • Loading branch information
KaoruNishikawa authored Mar 11, 2022
2 parents 2065bd7 + eef6b20 commit 4ef30b0
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Documentation

on:
release:
types:
- created

jobs:
job:
name: Documentation
runs-on: ubuntu-latest
env:
PACKAGE_NAME: n_const
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip3 install poetry
poetry install
- name: Build docs
run: |
poetry run sphinx-apidoc -efTM -t docs/_templates/apidoc -o docs/_source ${{ env.PACKAGE_NAME }}
poetry run sphinx-build -a docs docs/_build
- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "Parse and declare NANTEN2/NASCO specific constants/parameters."
license = "MIT"
readme = "README.md"
authors = ["KaoruNishikawa <k.nishikawa@a.phys.nagoya-u.ac.jp>"]
homepage = "https://github.com/nanten2/N-CONST"
homepage = "https://nanten2.github.io/N-CONST"
repository = "https://github.com/nanten2/N-CONST"

[tool.poetry.dependencies]
Expand Down

0 comments on commit 4ef30b0

Please sign in to comment.