Skip to content

Commit 7cd422f

Browse files
Add Readthedocs Action (#5)
* Add Readthedocs sphinx build action * Fail on warnings * Add comment on action
1 parent 9cc8525 commit 7cd422f

File tree

8 files changed

+48
-13
lines changed

8 files changed

+48
-13
lines changed

.github/workflows/doc-build.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This is a simple action to check that the documentation is building.
2+
# Note the real documentation build is done by readthedocs externally, and none of the files created in this action are used.
3+
name: documentation-build
4+
5+
on:
6+
push:
7+
branches:
8+
- '**'
9+
tags:
10+
- 'v*.*.*'
11+
release:
12+
types: [published]
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
env:
17+
working-directory: ./docs
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Check documentation build
21+
run: |
22+
cd docs
23+
pip3 install -r requirements.txt
24+
make clean
25+
# Fail buiild on any docs warning
26+
make html O=-W

.readthedocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ build:
1111

1212
sphinx:
1313
configuration: docs/conf.py
14+
fail_on_warning: true
1415

1516
python:
1617
install:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
This repository contains tools and services used to support CogStack deployments
44

5+
See the latest documentation on [Readthedocs](https://cogstack-platform-toolkit.readthedocs.io/en/latest/observability/_index.html)
Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,30 @@
11
# Customization
22

3+
## Grafana Customization
34
```{include} custom-dashboards.md
4-
:heading-offset: 1
5+
:heading-offset: 2
56
```
67

8+
```{include} alerts-customization.md
9+
:heading-offset: 2
10+
```
11+
12+
## Prometheus Customization
713
```{include} custom-prometheus-configs.md
8-
:heading-offset: 1
14+
:heading-offset: 2
15+
```
16+
```{include} blackbox-exporter-config.md
17+
:heading-offset: 2
918
```
1019

1120

1221
```{toctree}
1322
:titlesonly:
1423
:hidden:
1524
16-
custom-prometheus-configs.md
17-
custom-dashboards.md
25+
custom-prometheus-configs
26+
custom-dashboards
27+
alerts-customization
28+
blackbox-exporter-config
1829
1930
```

docs/observability/customization/alerts-customization.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ To define additional alert rules, create files in:
4040

4141
Grafana will automatically load these at startup.
4242

43-
---
44-

docs/observability/customization/blackbox-exporter-config.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
To define how a probe behaves (e.g., add basic auth, headers, timeout, method), we will configure a module in the Blackbox Exporter config.
66

7-
#### Create a Blackbox Exporter Config file
7+
### 1. Create a Blackbox Exporter Config file
88
You will need to create a new file, and then mount it over the existing provided vconfig
99

1010

@@ -51,7 +51,7 @@ This example adds a module named `http_2xx_custom` that adds some basic auth cre
5151

5252
---
5353

54-
#### Reference the new module in your prober config
54+
### 2. Reference the new module in your prober config
5555

5656
In your probe YAML file, reference the module in the `module` field of the `labels` section:
5757

@@ -63,7 +63,7 @@ In your probe YAML file, reference the module in the `module` field of the `labe
6363
module: http_2xx_custom # Optional - overrides the default Blackbox module
6464
```
6565

66-
#### Mount the config file
66+
### 3. Mount the config file
6767
You lastly need to mount the new config file and refer to it in docker compose
6868

6969
```
@@ -77,5 +77,3 @@ You lastly need to mount the new config file and refer to it in docker compose
7777
command:
7878
- "--config.file=/config/custom-blackbox-config.yml"
7979
```
80-
81-
---

docs/observability/get-started/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Now go to "http://localhost/grafana" to see the dashboards
2222

2323
Thats everything. The stack is running and you can see the availability.
2424

25-
If you can't use the script, see the [Manual Quickstart](../advanced-usage/quickstart-manual.md) to setup your own files.
25+
If you can't use the script, see the [Manual Quickstart](../reference/quickstart-manual.md) to setup your own files.
2626

2727

2828
### Optional Step: Probe your own web page

docs/observability/setup/production-setup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Production Setup Tutorial
22
This tutorial guides you through setting up the **CogStack Observability Stack** for production use.
33

4-
If you're new, we recommend completing the [Quickstart Tutorial](../quickstart.md) first to get a simplified setup running.
4+
If you're new, we recommend completing the [Quickstart Tutorial](../get-started/quickstart.md) first to get a simplified setup running.
55

66
By the end of the tutorial, you will have a complete stack offering all the observability features, customized to your usage.
77

0 commit comments

Comments
 (0)