-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from FelixNgFender/main
docs(server): new docs site for ARFlow server
- Loading branch information
Showing
26 changed files
with
656 additions
and
693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
# Simple workflow for deploying static content to GitHub Pages | ||
name: Deploy static content to Pages | ||
|
||
on: | ||
# Runs on pushes targeting the default branch | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'python/**' | ||
- '.github/workflows/website.yml' | ||
- 'website/**' | ||
|
||
# Alternative: only build for tags. | ||
# tags: | ||
# - '*' | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
# security: restrict permissions for CI jobs. | ||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10.12' | ||
|
||
- name: Install Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: '1.8.3' | ||
|
||
- name: Setup a local virtual environment (if no poetry.toml file) | ||
working-directory: ./python | ||
run: | | ||
poetry config virtualenvs.create true --local | ||
poetry config virtualenvs.in-project true --local | ||
- name: Define a cache for the virtual environment based on the dependencies lock file | ||
uses: actions/cache@v3 | ||
with: | ||
path: ./python/.venv | ||
key: venv-${{ hashFiles('./python/poetry.lock') }} | ||
|
||
- name: Install docs dependencies | ||
working-directory: ./python | ||
run: poetry install --with docs | ||
|
||
- name: Build the documentation | ||
working-directory: ./python | ||
run: poetry run make-docs | ||
|
||
- name: Move docs to website directory | ||
run: | | ||
mkdir -p ./website/docs/server/ | ||
cp -r ./python/docs/* ./website/docs/server/ | ||
- uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: ./website | ||
|
||
# Single deploy job since we're just deploying | ||
deploy: | ||
needs: build-docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
pages: write | ||
id-token: write | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,4 +24,8 @@ | |
"thecakelab", | ||
"Xihe" | ||
], | ||
"conventionalCommits.scopes": [ | ||
"server", | ||
"client" | ||
], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
""" | ||
.. include:: ../README.md | ||
""" | ||
|
||
from arflow.core import * # noqa | ||
from arflow.replay import * # noqa | ||
from arflow.serve import * # noqa | ||
from arflow.service_pb2 import * # noqa | ||
|
||
# https://pdoc.dev/docs/pdoc.html#exclude-submodules-from-being-documented | ||
__all__ = [ # noqa | ||
"core", # noqa | ||
"replay", # noqa | ||
"serve", # noqa | ||
] |
Oops, something went wrong.