Skip to content

Commit e19357e

Browse files
authored
Merge pull request #10 from moja-global/docs/enterprise-upgrade-2026-03-27
Docs/enterprise upgrade 2026 03 27
2 parents 9e55070 + a66b36c commit e19357e

41 files changed

Lines changed: 1258 additions & 823 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs-pages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ on:
88
paths:
99
- "docs/**"
1010
- "mkdocs.yml"
11+
- "scripts/check_docs_anchors.py"
1112
- ".github/workflows/docs-pages.yml"
1213

1314
permissions:
@@ -34,7 +35,10 @@ jobs:
3435
- name: Install docs dependencies
3536
run: |
3637
python -m pip install --upgrade pip
37-
pip install mkdocs-material
38+
pip install mkdocs==1.6.1 mkdocs-material==9.7.3 pymdown-extensions==10.21 requests==2.32.3
39+
40+
- name: Anchor and internal link check
41+
run: python scripts/check_docs_anchors.py
3842

3943
- name: Build docs site
4044
run: mkdocs build --strict --site-dir site

.github/workflows/docs-quality.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Docs Quality
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- "README.md"
7+
- "docs/**"
8+
- "mkdocs.yml"
9+
- "scripts/check_docs_anchors.py"
10+
- ".markdownlint-cli2.yaml"
11+
- ".github/workflows/docs-quality.yml"
12+
workflow_dispatch:
13+
14+
permissions:
15+
contents: read
16+
17+
jobs:
18+
docs-quality:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v4
23+
24+
- name: Setup Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: "3.11"
28+
29+
- name: Install docs dependencies
30+
run: |
31+
python -m pip install --upgrade pip
32+
pip install mkdocs==1.6.1 mkdocs-material==9.7.3 pymdown-extensions==10.21 requests==2.32.3
33+
34+
- name: Anchor and internal link check
35+
run: python scripts/check_docs_anchors.py
36+
37+
- name: Build docs site (strict)
38+
run: mkdocs build --strict --site-dir site
39+
40+
- name: Setup Node
41+
uses: actions/setup-node@v4
42+
with:
43+
node-version: "20"
44+
45+
- name: Install markdownlint-cli2
46+
run: npm install -g markdownlint-cli2
47+
48+
- name: Markdown style check
49+
run: markdownlint-cli2 "README.md" "docs/**/*.md"
50+
51+
- name: External link check
52+
uses: lycheeverse/lychee-action@v2
53+
with:
54+
args: --verbose --no-progress --accept 200,206,429 README.md docs/**/*.md
55+
fail: true
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
58+

.markdownlint-cli2.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
config:
2+
default: true
3+
MD013: false
4+
MD033: false
5+
MD041: false
6+
7+
globs:
8+
- "README.md"
9+
- "docs/**/*.md"
10+
11+
ignores:
12+
- "site/**"
13+
- "dist/**"
14+

README.md

Lines changed: 18 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,129 +1,41 @@
11
# GCBM View
22

3-
GCBM View is a desktop application for configuring, running, and analyzing
4-
Generic Carbon Budget Model (GCBM) simulations with a guided user interface.
3+
GCBM View is a desktop application for configuring, running, compiling, and
4+
analyzing Generic Carbon Budget Model (GCBM) workflows.
55

6-
## What You Can Do
6+
This README is intentionally short. The canonical documentation lives in MkDocs.
77

8-
- Configure simulation inputs from shapefiles and project folders.
9-
- Run simulation workflows with live status and logs.
10-
- Compile model outputs into analysis-ready databases and optional TIFFs.
11-
- Explore results in charts, maps, and standard reporting views.
8+
## Start Here
129

13-
## Table of Contents
14-
15-
1. [Requirements](#requirements)
16-
2. [Install and Run](#install-and-run)
17-
3. [End-to-End Walkthrough](#end-to-end-walkthrough)
18-
4. [Documentation Map](#documentation-map)
19-
5. [Installer and Release Process](#installer-and-release-process)
20-
6. [Developer Notes](#developer-notes)
21-
7. [Troubleshooting](#troubleshooting)
10+
- Docs home: `docs/index.md`
11+
- Simulation playbook: `docs/playbooks/simulation.md`
12+
- Compilation playbook: `docs/playbooks/compilation.md`
13+
- Visualization playbook: `docs/playbooks/visualization.md`
14+
- Troubleshooting matrix: `docs/operations/troubleshooting-matrix.md`
2215

2316
## Requirements
2417

2518
- Python `>=3.10`
26-
- Windows is the primary supported packaging target for the `.exe` installer
27-
- A prepared GCBM project workspace (for example `gcbm_training` outputs)
28-
29-
## Install and Run
19+
- Windows is the primary installer packaging target (`.exe`)
20+
- A prepared GCBM workspace (for example `gcbm_training`)
3021

31-
### Install from source
22+
## Run From Source
3223

3324
```bash
3425
cd gcbm_view
3526
uv pip install -e .
36-
```
37-
38-
### Launch
39-
40-
```bash
4127
gcbm-view
4228
```
4329

44-
or:
30+
Alternative:
4531

4632
```bash
4733
python -m gcbm_view.app
4834
```
4935

50-
## End-to-End Walkthrough
51-
52-
This section mirrors the full user flow from configuration to reporting.
53-
54-
### 1. Configure and run a simulation
55-
56-
- Open the **Simulation** page.
57-
- Select your project directory and confirm discovered input files.
58-
- Map required columns (age, classifiers, and temperature source).
59-
- Validate configuration, then run the simulation.
60-
61-
![Simulation page](docs/images/simulation1.png)
62-
63-
### 2. Compile simulation outputs
64-
65-
- Open the **Compile** page.
66-
- Select the project with generated outputs.
67-
- Set output database name.
68-
- Optionally include spatial TIFF outputs.
69-
70-
![Compilation page](docs/images/compilation1.png)
71-
72-
### 3. Explore visual outputs
73-
74-
- Open the **Visualize** page.
75-
- Load the compiled `.db` file.
76-
- Build charts (line, stacked area, stacked bars, dual axis, and others).
77-
- Enable map mode for spatial outputs when TIFFs are present.
78-
79-
![Visualization page](docs/images/visualization1.png)
80-
81-
### 4. Review generated reports
82-
83-
- Open the **Reports** page after loading a compiled database.
84-
- Export or review standard reporting outputs for analysis workflows.
85-
86-
![Reports page](docs/images/reports1.png)
87-
88-
## Documentation Map
89-
90-
The complete docs are in `docs/` and configured through `mkdocs.yml`.
91-
92-
- Main docs entry: [`docs/index.md`](docs/index.md)
93-
- Full walkthrough: [`docs/WALKTHROUGH.md`](docs/WALKTHROUGH.md)
94-
- User guide: [`docs/USER_GUIDE.md`](docs/USER_GUIDE.md)
95-
- Installation guide: [`docs/guide/installation.md`](docs/guide/installation.md)
96-
- Simulation guide: [`docs/guide/simulation.md`](docs/guide/simulation.md)
97-
- Methodology overview: [`docs/methodology/index.md`](docs/methodology/index.md)
98-
- API notes: [`docs/api.md`](docs/api.md)
99-
100-
## Installer and Release Process
101-
102-
Installer automation and packaging assets live in [`installer/`](installer/README.md).
103-
104-
### Release channels
105-
106-
- Continuous release:
107-
- Trigger: push to `main`
108-
- Output: prerelease tagged `continuous`, updated automatically
109-
- Versioned release:
110-
- Trigger: tag push matching `v*` (for example `v0.6.0`)
111-
- Output: tagged release with installer asset
112-
113-
### CI/CD requirements
114-
115-
- GitHub Actions workflow: `.github/workflows/windows-installer.yml`
116-
- Required secret: `CROSS_REPO_READ_TOKEN` (read access to private component repos)
117-
118-
## Developer Notes
119-
120-
- Entry point script: `gcbm-view` (`gcbm_view.app:main`)
121-
- Source package path: `src/gcbm_view`
122-
- Optional dev tools: `pytest`, `black`, `ruff`
123-
124-
## Troubleshooting
36+
## Installer and CI/CD
12537

126-
- If simulation configuration fails, verify input file paths and required columns.
127-
- If charts are empty, confirm the compiled database has expected views/tables.
128-
- If map mode is blank, verify TIFF outputs were included during compilation.
129-
- If CI checkout fails, check `CROSS_REPO_READ_TOKEN` scope and org approval.
38+
- Installer assets and build notes: `installer/README.md`
39+
- Windows installer workflow: `.github/workflows/windows-installer.yml`
40+
- Docs quality workflow: `.github/workflows/docs-quality.yml`
41+
- Docs pages workflow: `.github/workflows/docs-pages.yml`

0 commit comments

Comments
 (0)