Skip to content

Commit

Permalink
docs: Update workflow and try URL way for GIF in README
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Sep 24, 2024
1 parent 0be7393 commit 6330de6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
name: Docs

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

jobs:
sphinx:
Expand All @@ -18,6 +20,8 @@ jobs:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
cache: pip
cache-dependency-path: pyproject.toml
python-version: "3.12"
- name: Upgrade pip
run: |
Expand All @@ -26,11 +30,18 @@ jobs:
run: |
python -m pip install '.[docs]'
- name: Auto-generate APIDOC sources
run: |-
sphinx-apidoc --output-dir docs/source/code --force .
run: make -C docs apidoc
- name: Create docs
run: |
make -C docs html
env:
SPHINXOPTS: ${{ github.ref != 'refs/heads/master' && '-W' || '' }}
run: make -C docs html
- name: Upload built docs as artifact
uses: actions/upload-artifact@v4
with:
name: Documentation
path: docs/build/html
if-no-files-found: error
retention-days: 5
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

Synchronise Capella models with Polarion projects.

![image](docs/source/_static/c2p-uc1.gif)
![image](https://github.com/DSD-DBS/capella-polarion/blob/gh-pages/_static/c2p-uc1.GIF)

Use cases covered:

Expand Down

0 comments on commit 6330de6

Please sign in to comment.