Skip to content

Commit 54728e9

Browse files
authored
Merge pull request #89 from ESA-APEx/documentation
docs: created quarto docs and publish to github pages
2 parents 892495f + f7440c5 commit 54728e9

File tree

5 files changed

+108
-12
lines changed

5 files changed

+108
-12
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Publish content to GitHub pages
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
concurrency: publish-docs
8+
9+
jobs:
10+
build-documentation:
11+
runs-on: ubuntu-latest
12+
defaults:
13+
run:
14+
working-directory: ./docs
15+
permissions:
16+
pages: write
17+
contents: write
18+
steps:
19+
- name: Check out repository
20+
uses: actions/checkout@v3
21+
with:
22+
submodules: true
23+
- name: Set up Quarto
24+
uses: quarto-dev/quarto-actions/setup@v2
25+
with:
26+
tinytex: true
27+
version: '1.6.31'
28+
- name: Render documentation pages
29+
run: quarto render --output-dir _build
30+
- name: Setup GitHub pages
31+
uses: actions/configure-pages@v5
32+
- name: Upload build artifacts
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: "docs/_build"
36+
- name: Upload build folder
37+
uses: actions/upload-artifact@v4
38+
with:
39+
name: build-folder
40+
path: "docs/_build"
41+
42+
deploy-documentation-ghpages:
43+
runs-on: ubuntu-latest
44+
needs: build-documentation
45+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
46+
permissions:
47+
pages: write
48+
id-token: write
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- name: Deploy to GitHub pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

docs/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/_quarto.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
project:
2+
type: website
3+
preview:
4+
port: 4200
5+
6+
7+
website:
8+
repo-url: "https://github.com/ESA-APEx/apex_algorithms"
9+
repo-branch: "main"
10+
search:
11+
location: sidebar
12+
type: textbox
13+
copy-button: true
14+
15+
navbar:
16+
pinned: true
17+
18+
page-navigation: true
19+
20+
title: "APEx Algorithms - Documentation"
21+
22+
sidebar:
23+
style: "floating"
24+
collapse-level: 2
25+
contents:
26+
- href: index.md
27+
text: Welcome
28+
- href: benchmarking.md
29+
30+
format:
31+
html:
32+
toc-depth: 4
33+
page-layout: full
34+
theme: zephyr
35+
bread-crumbs: true

docs/benchmarking.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
2-
# APEx Algorithm Benchmarking
1+
---
2+
title: APEx Algorithm Benchmarking
3+
---
34

45
The hosted APEx Algorithms are executed automatically and regularly
56
following certain benchmark scenarios in order to:
@@ -18,15 +19,16 @@ in the form of JSON files in the [`openeo_udp`](../openeo_udp/) folder.
1819
These JSON files follow the standard openEO process definition schema,
1920
for example as used for the `GET /process_graphs/{process_graph_id}` endpoint of the openEO API.
2021

21-
> [!NOTE]
22-
> These openEO process definitions are commonly referred to
23-
> as "UDPs" or "user-defined processes",
24-
> which stems from the original openEO API specification
25-
> with an isolated "user" concept.
26-
> The scope of algorithm publishing and hosting in APEx
27-
> goes well beyond isolated, individual users.
28-
> As such, it can get confusing to overthink the "user-defined" part,
29-
> and it might be better to just think of "openEO process definitions".
22+
::: {.callout-note}
23+
These openEO process definitions are commonly referred to
24+
as "UDPs" or "user-defined processes",
25+
which stems from the original openEO API specification
26+
with an isolated "user" concept.
27+
The scope of algorithm publishing and hosting in APEx
28+
goes well beyond isolated, individual users.
29+
As such, it can get confusing to overthink the "user-defined" part,
30+
and it might be better to just think of "openEO process definitions".
31+
:::
3032

3133

3234
Example process definition:

docs/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
title: APEx Algorithms
3+
---
4+
5+
Welcome to the APEx Algorithm repository!

0 commit comments

Comments
 (0)