Skip to content

Commit

Permalink
docs: add github workflow for build and pushing docs
Browse files Browse the repository at this point in the history
  • Loading branch information
giovtorres committed Nov 14, 2021
1 parent ca4b08f commit 39d001b
Show file tree
Hide file tree
Showing 12 changed files with 365 additions and 61 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
- name: Docs
on:
push:
branches:
- main
- sphinx
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
with:
fetch-depth: 0

- name: Build and Commit
uses: sphinx-notes/pages@master
with:
documentation_path: docs

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
build/

# Ignore Docs Directory #
#doc/
#docs/

# Ignore Temporary Build Files #
pyslurm/pyslurm.c
Expand Down
2 changes: 2 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name = "pypi"

[packages]
cython = "*"
sphinx = "*"
pydata-sphinx-theme = "*"

[dev-packages]
black = "*"
Expand Down
273 changes: 272 additions & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ the documentation from the reStructuredText based docstrings found in the
pyslurm module once it is built:

```shell
cd doc
cd docs
make clean
make html
```
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
tty: true
working_dir: /pyslurm
environment:
PYTHON: "3.9"
LANG: en_US.UTF-8
LC_ALL: en_US.UTF-8
volumes:
- ${PWD}:/pyslurm
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Loading

0 comments on commit 39d001b

Please sign in to comment.