Skip to content

Commit

Permalink
Merge pull request #26 from x-tabdeveloping/docs_deployment
Browse files Browse the repository at this point in the history
Docs deployment
  • Loading branch information
x-tabdeveloping authored Mar 16, 2024
2 parents 59795c2 + f479717 commit 870b3a7
Show file tree
Hide file tree
Showing 68 changed files with 38 additions and 24,545 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# creates the documentation on pushes it to the gh-pages branch
name: Documentation

on:
pull_request:
branches: [main]
push:
branches: [main]


permissions:
contents: write

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Dependencies
run: |
python -m pip install --upgrade pip
pip install turftopic[pyro-ppl,docs]
- name: Build and Deploy
if: github.event_name == 'push'
run: mkdocs gh-deploy --force

- name: Build
if: github.event_name == 'pull_request'
run: mkdocs build
12 changes: 4 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@ torch = "^2.1.0"
scipy = "^1.10.0"
rich = "^13.6.0"
pyro-ppl = { version = "^1.8.0", optional = true }
mkdocs = { version = "^1.5.2", optional = true }
mkdocs-material = { version = "^9.5.12", optional = true }
mkdocstrings = { version = "^0.24.0", extras = ["python"], optional = true }

[tool.poetry.extras]
pyro-ppl = ["pyro-ppl"]

[tool.poetry.group.docs]
optional = true

[tool.poetry.group.docs.dependencies]
mkdocs = "^1.5.2"
mkdocs-material = "^9.5.12"
mkdocstrings = { version = "^0.24.0", extras = ["python"] }
docs = ["mkdocs", "mkdocs-material", "mkdocstrings"]

[build-system]
requires = ["poetry-core"]
Expand Down
Loading

0 comments on commit 870b3a7

Please sign in to comment.