Skip to content

Commit 07edd92

Browse files
authored
Merge pull request #69 from EOEPCA/refactor-docs-structure
Refactor docs site structure
2 parents 6ab6858 + 4ce1aa8 commit 07edd92

15 files changed

+64
-90
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ venv
88
dist
99
.idea
1010
.vscode
11-
.pre-commit-config.yaml
11+
.pre-commit-config.yaml
12+
.local

docs/design/common-library/design.md

-22
This file was deleted.

docs/design/harvester/design.md docs/design/harvester-design.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Harvester
1+
# Design
22

33
The harvester is implemented as workflows in the Flowable BPMN platform. Flowable Platform is a flexible framework for workflow and process automation. Its core is a native Business Process Modelling Notation (BPMN) 2.0 process engine that runs inside the Java Virtual Machine. Workflows need to be defined with the BPMN specification that supports parallel workflow steps, branching, error handling, etc. A workflow step can be set to type “external” to allow an individual worker to fetch tasks for a specific workflow step. This worker connects to the REST API, fetches tasks, and returns the status (e.g., completed, failed, error). Failed workflow steps can be automatically retried from the Flowable process engine. Errors can be modelled in the BPMN diagram, e.g., asking an operator how to proceed as a manual user task.
44

docs/design/harvester/api/usage.md

-4
This file was deleted.

docs/design/more-design.md

-3
This file was deleted.
File renamed without changes.

docs/getting-started/development-guide.md

-3
This file was deleted.

docs/getting-started/quick-start.md

+20-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
11
# Quick Start
22

3-
Quick start instructions - including installation, e.g. of a local instance.
3+
To try out the Resource Registration building block you can install it locally or deploy the full Kubernetes setup as described in the [EOEPCA Deployment Guide](https://deployment-guide.docs.eoepca.org/current/building-blocks/resource-registration/).
4+
5+
## Registration API
6+
7+
To setup a local copy of the Registration API follow the instructions provided [here](https://github.com/EOEPCA/registration-api?tab=readme-ov-file#getting-started). This component is build upon the [pygeoapi](https://pygeoapi.io/) project to offer the [OGC API - Processes](https://ogcapi.ogc.org/processes/) to the user. An introduction to the OGC API Processes can be found in the Registration API [User Guide](../../user-guide/registration-api-usage/).
8+
9+
## Harvester
10+
11+
You can setup a local copy of the Harvester component using Docker and Docker Compose:
12+
13+
1. Run the Flowable workflow engine on your machine as described in the [Flowable Docker documentation](https://github.com/flowable/flowable-engine/tree/main/docker).
14+
3. Clone the [Harvester Github repository](https://github.com/EOEPCA/registration-harvester.git).
15+
4. Deploy the BPMN workflow definitions contained in the `workflows` directory on your local Flowable instance.
16+
5. The `docker-compose.yml` in the project root directory defines the worker processes for the workflows. Adapt the workflow-specific configuration files to your enviroment and start everything with `docker compose up`.
17+
18+
!!! info "USGS M2M user account"
19+
The Landsat workflow searches the [Landsat STAC API](https://landsatlook.usgs.gov/stac-server) and downloads the data from the [USGS Machine-to-Machine (M2M) API](https://m2m.cr.usgs.gov/). To access this system, a M2M user accout is required which can be created [here](https://ers.cr.usgs.gov/register). The credentials must be passed as the environment variables `M2M_USER` and `M2M_PASSWORD` to the worker processes.
20+
21+
!!! info "CDSE user account"
22+
The Sentinel workflow searches and downloads the data from the [CDSE OData API](https://datahub.creodias.eu/odata/v1). To access this API, a CDSE user accout is required which can be created [here](https://identity.dataspace.copernicus.eu/auth/realms/CDSE/login-actions/registration?client_id=cdse-public&tab_id=0kmNL363Fs4). The credentials must be passed as the environment variables `CDSE_USER` and `CDSE_PASSWORD` to the worker processes.
86.7 KB
Loading

docs/requirements.txt

-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@ mkdocs-autorefs==1.0.1
33
mkdocs-publisher==1.2.0
44
mkdocs-glightbox==0.4.0
55
mkdocs-swagger-ui-tag
6-
#mkdocstrings[python]

docs/user-guide/harvester-usage.md

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Harvester - User Guide
2+
3+
## Core Concepts
4+
5+
### Workflow engine
6+
7+
### Workflow definition
8+
9+
### Workflow instance
10+
11+
### Worker
12+
13+
## Built-in workflows
14+
15+
### Landsat
16+
17+
### Sentinel
18+
19+
## Developing workflows
20+
21+
This section descibes how to create your own workflow und run it with the Harvester.
22+
23+
### Design
24+
### Submitting a workflow definition
25+
### Executing a workflow
26+

docs/design/registration-api/api/usage.md docs/user-guide/registration-api-usage.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Usage
1+
# Registration API - User Guide
22

33
## Introduction
44

mkdocs.yml

+14-53
Original file line numberDiff line numberDiff line change
@@ -7,64 +7,43 @@ nav:
77
- EOEPCA Documentation: https://eoepca.readthedocs.io/
88
- Resource Registration:
99
- index.md
10+
- Getting Started:
11+
- getting-started/quick-start.md
1012
- Design:
1113
- Architecture: design/overview.md
1214
- Components:
13-
- Registration API (pygeoapi):
14-
- Design: design/registration-api/design.md
15-
- API:
16-
- design/registration-api/api/endpoint-specification.md
17-
- design/registration-api/api/usage.md
18-
- Harvester:
19-
- Getting Started:
20-
- getting-started/quick-start.md
21-
- getting-started/development-guide.md
22-
- Design: design/harvester/design.md
23-
- API:
24-
- design/harvester/api/endpoint-specification.md
25-
- design/harvester/api/usage.md
26-
- eodm: https://geopython.github.io/eodm/
27-
# - Common Library:
28-
# - Design: design/common-library/design.md
29-
# - API:
30-
# - Reference:
31-
# - Base: design/common-library/api/base.md
32-
# - Datasets: design/common-library/api/datasets.md
33-
# - Providers: design/common-library/api/providers.md
34-
# - Resources: design/common-library/api/resources.md
35-
# - design/common-library/api/usage.md
36-
# - design/more-design.md
37-
# - Usage:
38-
# - usage/tutorials.md
39-
# - usage/howtos.md
15+
- Registration API: design/registration-api-design.md
16+
- Harvester: design/harvester-design.md
17+
# - eodm: https://geopython.github.io/eodm/
18+
- User Guide:
19+
- Registration API: user-guide/registration-api-usage.md
20+
- Harvester: user-guide/harvester-usage.md
4021
# - Administration:
4122
# - admin/configuration.md
4223
# - admin/maintenance.md
43-
# - API:
44-
# - api/endpoint-specification.md
45-
# - api/usage.md
24+
- API:
25+
- Registration API: api-specification/registration-api-specification.md
26+
- Harvester: api-specification/harvester-api-specification.md
4627

4728
theme:
48-
# name: mkdocs
49-
# name: readthedocs
5029
name: material # https://squidfunk.github.io/mkdocs-material/creating-your-site/
5130
navigation_depth: 4
5231

5332
# For `material` theme...
5433
logo: img/favicon.ico
5534
favicon: img/favicon.ico
5635
features:
57-
- navigation.footer
36+
# - navigation.footer
5837
- navigation.instant
5938
- navigation.tracking
6039
- navigation.tabs
6140
- navigation.tabs.sticky
6241
- navigation.sections
63-
# - navigation.expand
64-
# - toc.integrate
6542
- navigation.top
6643
- content.code.copy
6744
- content.action.edit
45+
- search.highlight
46+
- toc.follow
6847

6948
extra_css:
7049
- css/eoepca.css
@@ -74,24 +53,6 @@ plugins:
7453
- glightbox
7554
- search
7655
- swagger-ui-tag
77-
# - mkdocstrings:
78-
# default_handler: python
79-
# handlers:
80-
# python:
81-
# options:
82-
# show_if_no_docstring: false
83-
# filters:
84-
# - "!checksum_funcs"
85-
# - "!asset_changes"
86-
# - "!folder_structure"
87-
# - "!__log" # zu streng;
88-
# - "!scene_id_pattern"
89-
# - "!scene_id_pattern"
90-
# - "!sensor_name"
91-
# - "!usgs_path_structure"
92-
# - "!checksum_settings"
93-
# - "!variable_mappings"
94-
# - "!BASE_QUERY"
9556
# - pub-debugger:
9657
# console_log:
9758
# enabled: true

0 commit comments

Comments
 (0)