Skip to content

Commit

Permalink
Merge pull request #7 from Bobbins228/sphinx-documentation
Browse files Browse the repository at this point in the history
Sphinx documentation
  • Loading branch information
Bobbins228 authored Oct 11, 2024
2 parents b90d5d6 + d9a46f5 commit f33d09f
Show file tree
Hide file tree
Showing 152 changed files with 17,317 additions and 8,821 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/publish-documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: documentation

on:
repository_dispatch:
workflow_dispatch:

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Sphinx
run: |
sudo apt-get update
sudo apt-get install python3-sphinx
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.8.3
- name: Run poetry install
run: poetry install --with docs
- name: Create new documentation
run: |
sphinx-apidoc -o docs/sphinx src/codeflare_sdk "**/*test_*" --force
make clean -C docs/sphinx
make html -C docs/sphinx
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: sphinx-documentation
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: sphinx/_build/
force_orphan: true
5 changes: 4 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ jobs:
- name: Run poetry install
run: poetry install --with docs
- name: Create new documentation
run: poetry run pdoc --html -o docs/detailed-documentation src/codeflare_sdk && pushd docs/detailed-documentation && rm -rf cluster job utils && mv codeflare_sdk/* . && rm -rf codeflare_sdk && popd && find docs/detailed-documentation -type f -name "*.html" -exec bash -c "echo '' >> {}" \;
run: |
sphinx-apidoc -o docs/sphinx src/codeflare_sdk "**/*test_*" --force
make clean -C docs/sphinx
make html -C docs/sphinx
- name: Copy demo notebooks into SDK package
run: cp -r demo-notebooks src/codeflare_sdk/demo-notebooks
- name: Run poetry build
Expand Down
40 changes: 0 additions & 40 deletions docs/authentication.md

This file was deleted.

46 changes: 0 additions & 46 deletions docs/cluster-configuration.md

This file was deleted.

Loading

0 comments on commit f33d09f

Please sign in to comment.