Skip to content

Commit a7d81b7

Browse files
euronionlkstrp
authored andcommitted
Migrate docs to mkdocs
1 parent 8caae31 commit a7d81b7

35 files changed

+653
-630
lines changed

.github/pull_request_template.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Closes # (if applicable).
55

66
## Checklist
77

8-
- [ ] Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in `doc`.
8+
- [ ] Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in `docs`.
99
- [ ] Unit tests for new features were added (if applicable).
10-
- [ ] A note for the release notes `doc/release_notes.rst` of the upcoming release is included.
10+
- [ ] A note for the release notes `doc/release_notes.md` of the upcoming release is included.
1111
- [ ] I consent to the release of this PR's code under the MIT license and have added my name to the `doc/contributors.md`.

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ repos:
99
rev: v5.0.0
1010
hooks:
1111
- id: check-yaml
12+
args: ['--unsafe'] # required for mkdocs.yaml -> pymdownx.emoji (see https://github.com/pre-commit/pre-commit-hooks/issues/552)
1213
- id: end-of-file-fixer
1314
- id: trailing-whitespace
1415
- id: check-merge-conflict

.readthedocs.yaml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,20 @@
99

1010
version: 2
1111

12-
build:
13-
os: ubuntu-22.04
14-
tools:
15-
python: "3.11"
1612

13+
mkdocs:
14+
configuration: mkdocs.yaml
1715

18-
# Build documentation in the docs/ directory with Sphinx
19-
sphinx:
20-
configuration: doc/conf.py
16+
build:
17+
os: ubuntu-24.04
18+
tools:
19+
python: "3.13"
2120

21+
jobs:
22+
pre_system_dependencies:
23+
- git fetch --unshallow # Needed to get version tags
24+
pre_install:
25+
- pip install mkdocs-material
2226

2327
python:
2428
install:

README.md

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,13 @@ and/or the current release stored on Zenodo with a release-specific DOI:
104104
## Licence
105105

106106
`powerplantmatching` is released as free software under the [MIT](LICENSES/MIT.txt) license.
107-
The default output data generated by the package is released under [CC BY 4.0](LICENSES/CC-BY-4.0.txt).
108-
Parts of the repository may be licensed under different licenses, please see the header information of the respective files and [REUSE.toml](REUSE.toml) for details.
107+
The default output data [powerplants.csv](powerplants.csv) generated by the package is released under [CC BY 4.0](LICENSES/CC-BY-4.0.txt).
108+
Parts of the repository may be licensed under different licenses, especially dependent package binaries for `duke` being licensed under [Apache 2.0 license](https://github.com/PyPSA/powerplantmatching/tree/master/LICENSES/Apache-2.0.txt).
109109

110110
This repository uses the [REUSE](https://reuse.software/) conventions to indicate the licenses that apply to individual files and parts of the repository.
111+
For details on the licenses that apply, see the the header information of the respective files and [REUSE.toml](REUSE.toml) for details.
111112

112-
(c) Contributors to powerplantmatching <https://github.com/pypsa/powerplantmatching>
113-
You can find a list of contributors in the [contributors page](https://github.com/PyPSA/powerplantmatching/graphs/contributors).
113+
Copyright 2018-2024 Fabian Gotzens (FZ Jülich), Jonas Hörsch (KIT), Fabian Hofmann (FIAS)
114+
Copyright 2025- Contributors to powerplantmatching <https://github.com/pypsa/powerplantmatching>
115+
116+
You can find a list of contributors in the [contributors page](https://github.com/PyPSA/powerplantmatching/graphs/contributors) and in the [contributors file](docs/contributors.md).

REUSE.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ SPDX-PackageDownloadLocation = "https://github.com/pypsa/powerplantmatching"
66
[[annotations]]
77
path = [
88
"powerplants.csv",
9-
"doc/**",
9+
"docs/assets/images/powerplants.png",
10+
"docs/examples/example.ipynb",
1011
]
1112
SPDX-FileCopyrightText = "Contributors to powerplantmatching <https://github.com/pypsa/powerplantmatching>"
1213
SPDX-License-Identifier = "CC-BY-4.0"

docs/Makefile

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs/api-core.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 Contributors to powerplantmatching <https://github.com/pypsa/powerplantmatching>
3+
4+
SPDX-License-Identifier: MIT
5+
-->
6+
7+
# Core Modules
8+
9+
::: powerplantmatching.core
10+
11+
::: powerplantmatching.duke
12+
13+
::: powerplantmatching.accessor

docs/api-core.rst

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/api-data.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<!--
2+
SPDX-FileCopyrightText: 2025 Contributors to powerplantmatching <https://github.com/pypsa/powerplantmatching>
3+
4+
SPDX-License-Identifier: MIT
5+
-->
6+
7+
# Data Processing Modules
8+
9+
::: powerplantmatching.data
10+
11+
::: powerplantmatching.cleaning
12+
13+
::: powerplantmatching.matching
14+
15+
::: powerplantmatching.collection

docs/api-data.rst

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)