Skip to content

Commit

Permalink
Issue #142 various doc (building) tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed Jun 12, 2024
1 parent e642cc3 commit e4e38b2
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/docs2ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: Build docs and push to GitHub Pages
on:
push:
branches: [ master ]
paths:
- 'docs/**'
- CHANGELOG.md

jobs:
build:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file.

The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

<!-- start changelog -->

## 0.35.0

- Start with `openeo-aggregator` docs, hosted with GitHub Pages at https://open-eo.github.io/openeo-aggregator/ ([#142](https://github.com/Open-EO/openeo-aggregator/issues/142))
Expand Down Expand Up @@ -338,3 +340,6 @@ The format is roughly based on [Keep a Changelog](https://keepachangelog.com/en/
### Fixed

- Skip failing back-ends when merging `/jobs` listings (EP-4014)


<!-- end changelog -->
24 changes: 20 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,35 @@
import datetime

# General information about the project.
project = "openEO Aggregator"
author = "Stefaan Lippens"
copyright = f"2021 - {datetime.datetime.now():%Y}"

# Sphinx extensions
extensions = [
"myst_parser",
"sphinx_design",
"sphinxcontrib.mermaid",
]
myst_enable_extensions = ["colon_fence"]
myst_enable_extensions = [
"colon_fence",
]

# Doc discovery settings
root_doc = "index"
html_theme = "furo"


exclude_patterns = [
"_build",
"build",
".venv",
"venv",
]

# HTML theme settings
html_theme = "furo"
html_title = "openEO Aggregator"

html_theme_options = {
"source_repository": "https://github.com/Open-EO/openeo-aggregator",
"source_branch": "master",
"source_directory": "docs/",
}
8 changes: 8 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,16 @@ including, but not limited to:


```{toctree}
:caption: Documentation
:hidden:
pages/installation.md
pages/configuration.md
pages/usage.md
```

```{toctree}
:caption: Development
:hidden:
pages/changelog
pages/license
```
7 changes: 7 additions & 0 deletions docs/pages/changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Changelog


```{include} ../../CHANGELOG.md
:start-after: <!-- start changelog -->
:end-before: <!-- end changelog -->
```
4 changes: 3 additions & 1 deletion docs/pages/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

# Configuration

:::{Attention}
This documentation page is work in progress... 👷
:::


The openEO Aggregator can be configured through a `AggregatorBackendConfig` class



## Gunicorn configuration

TODO
5 changes: 5 additions & 0 deletions docs/pages/installation.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

# Installation

:::{Attention}
This documentation page is work in progress... 👷
:::


The openEO Aggregator can be installed via pip:

```shell
Expand Down
4 changes: 4 additions & 0 deletions docs/pages/license.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# License

```{literalinclude} ../../LICENSE.txt
```
5 changes: 5 additions & 0 deletions docs/pages/usage.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

# Usage

:::{Attention}
This documentation page is work in progress... 👷
:::


## Run with Flask in development mode

```shell
Expand Down

0 comments on commit e4e38b2

Please sign in to comment.