Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 864e249

Browse files
authored
Add RTD docs (#242)
1 parent 3654178 commit 864e249

File tree

4 files changed

+64
-0
lines changed

4 files changed

+64
-0
lines changed

.readthedocs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
mkdocs: {} # tell readthedocs to use mkdocs
3+
python:
4+
version: 3.7
5+
install:
6+
- method: pip
7+
path: .
8+
- requirements: docs/requirements.txt

docs/.readthedocs-custom-steps.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
steps:
2+
- |
3+
pydoc-markdown --build --site-dir "$PWD/_build/html"

docs/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
readthedocs-custom-steps==0.5.1
2+
pydoc-markdown

pydoc-markdown.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
loaders:
2+
- type: python
3+
search_path: [nowcasting_dataset/]
4+
processors:
5+
- type: filter
6+
- type: smart
7+
# - type: crossref
8+
renderer:
9+
type: mkdocs
10+
pages:
11+
- title: Home
12+
name: index
13+
source: README.md
14+
- title: API Documentation
15+
children:
16+
- title: Config
17+
children:
18+
- title: Overview
19+
source: nowcasting_dataset/config/README.md
20+
- title: API
21+
contents: [config, config.*]
22+
- title: Data sources
23+
children:
24+
- title: Overview
25+
source: nowcasting_dataset/data_sources/README.md
26+
- title: Datetime
27+
contents: [data_sources.datetime, data_sources.datetime.*]
28+
- title: Grid Supply Point (GSP)
29+
contents: [data_sources.gsp, data_sources.gsp.*]
30+
- title: Metadata
31+
contents: [data_sources.metadata, data_sources.metadata.*]
32+
- title: Numerical Weather Predictions (NWP)
33+
contents: [data_sources.nwp, data_sources.nwp.*]
34+
- title: Satellite
35+
contents: [data_sources.satellite, data_sources.satellite.*]
36+
- title: Sun
37+
contents: [data_sources.sun, data_sources.sun.*]
38+
- title: Topographic
39+
contents: [data_sources.topographic, data_sources.topographic.*]
40+
- title: Dataset
41+
children:
42+
- title: Overview
43+
source: nowcasting_dataset/dataset/README.md
44+
- title: API
45+
contents: [dataset, dataset.*]
46+
- title: Filesystem
47+
contents: [filesystem, filesystem.*]
48+
mkdocs_config:
49+
site_name: Nowcasting Dataset
50+
theme: readthedocs
51+
repo_url: https://github.com/openclimatefix/nowcasting-dataset

0 commit comments

Comments
 (0)