-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
144 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build docs and push to GitHub Pages | ||
|
||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install dependencies (including Sphinx) | ||
run: python -m pip install -r docs/requirements.txt | ||
|
||
- name: Sphinx build | ||
# Build HTML documentation from sources under `docs` to `build` folder. | ||
run: python -m sphinx -b html docs build | ||
|
||
- name: Commit documentation in gh-pages branch | ||
# Store documentation in a temporary one-commit git repo. | ||
run: | | ||
cd build | ||
git init -b gh-pages | ||
touch .nojekyll | ||
git config --local user.name "GitHub Actions Bot" | ||
git config --local user.email "[email protected]" | ||
git add . | ||
git commit -m "Update documentation" | ||
- name: Push gh-pages branch | ||
# Push from the temporary repo to the `gh-pages` branch of your repo. | ||
# Warning: this will overwrite any existing content and history | ||
# of the `gh-pages` branch. | ||
run: | | ||
cd build | ||
git push --force "https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}" gh-pages | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
build/ | ||
_build/ | ||
venv/ | ||
.venv/ |
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,19 @@ | ||
project = "openEO Aggregator" | ||
|
||
extensions = [ | ||
"myst_parser", | ||
"sphinx_design", | ||
"sphinxcontrib.mermaid", | ||
] | ||
myst_enable_extensions = ["colon_fence"] | ||
|
||
root_doc = "index" | ||
html_theme = "furo" | ||
|
||
|
||
exclude_patterns = [ | ||
"_build", | ||
"build", | ||
".venv", | ||
"venv", | ||
] |
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
# Configuration | ||
|
||
|
||
|
||
The openEO Aggregator can be configured through a `AggregatorBackendConfig` class | ||
|
||
|
||
|
||
## Gunicorn configuration | ||
|
||
TODO |
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,13 @@ | ||
|
||
# Installation | ||
|
||
The openEO Aggregator can be installed via pip: | ||
|
||
```shell | ||
python -m pip install openeo-aggregator | ||
``` | ||
|
||
|
||
## Requirements | ||
|
||
- Optional: a Zookeeper cluster for caching and partitioned job db |
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,16 @@ | ||
|
||
# Usage | ||
|
||
## Run with Flask in development mode | ||
|
||
```shell | ||
export FLASK_APP='openeo_aggregator.app:create_app()' | ||
export FLASK_ENV=development | ||
flask run | ||
``` | ||
|
||
## Run with Gunicorn | ||
|
||
```shell | ||
gunicorn 'openeo_aggregator.app:create_app()' | ||
``` |
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,5 @@ | ||
Sphinx~=7.3.7 | ||
myst-parser~=3.0.1 | ||
sphinx-design~=0.6.0 | ||
furo~=2024.5.6 | ||
sphinxcontrib-mermaid~=0.9.2 |
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