Skip to content

Commit

Permalink
feat(workflows): deploy documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Madjeri <[email protected]>
  • Loading branch information
Charles Madjeri committed Nov 26, 2024
1 parent c006d9c commit 4aa9dec
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/deploy-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: deploy-documentation

on: [push, pull_request, workflow_dispatch]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme myst_parser
- name: Sphinx build
run: |
sphinx-build docs/source _build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# IDE
.idea/
.vscode/

# Documentation
build/
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ sphinx and sphinx_rtd_theme can be installed using pip

#### Usage

The documentation is available at [AREA Documentation](). // TODO: Add link
The documentation is automatically built and deployed to GitHub Pages when a push is made to the `main` branch.

You can consult the documentation online at [AREA Documentation](https://asm-studios.github.io/AREA/).

You can build the documentation locally by running the following command:
```sh
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4aa9dec

Please sign in to comment.