Skip to content

Commit 628629e

Browse files
authored
Fix readthedocs deployment (#52)
* Add .readthedocs.yaml * Add badges for docs and build-CI
1 parent 7f4ff87 commit 628629e

4 files changed

Lines changed: 25 additions & 2 deletions

File tree

.readthedocs.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Read the Docs configuration file for Sphinx projects
2+
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
3+
4+
version: 2
5+
6+
build:
7+
os: ubuntu-22.04
8+
tools:
9+
python: "3.12"
10+
jobs:
11+
pre_build:
12+
- doxygen
13+
14+
sphinx:
15+
configuration: doc/conf.py
16+
17+
python:
18+
install:
19+
- requirements: doc/requirements.txt

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# mppnccombine-fast
22
[![DOI](https://zenodo.org/badge/131938571.svg)](https://zenodo.org/badge/latestdoi/131938571)
33

4+
[![Build](https://github.com/ACCESS-NRI/mppnccombine-fast/actions/workflows/ci.yml/badge.svg)](https://github.com/ACCESS-NRI/mppnccombine-fast/actions/workflows/ci.yml)
5+
[![Docs](https://app.readthedocs.org/projects/mppnccombine-fast/badge/)](https://mppnccombine-fast.readthedocs.io/en/latest/)
6+
47
An accelerated version of the `mppnccombine` post-processing tool for MOM
58

69
Uses HDF5's raw IO functions to speed up collating large datasets - a 0.1

doc/conf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#
7070
# This is also used if you do content translation via gettext catalogs.
7171
# Usually you set "language" from the command line for these cases.
72-
language = None
72+
language = 'en'
7373

7474
# List of patterns, relative to source directory, that match files and
7575
# directories to ignore when looking for source files.
@@ -87,7 +87,7 @@
8787
# The theme to use for HTML and HTML Help pages. See the documentation for
8888
# a list of builtin themes.
8989
#
90-
# html_theme = 'alabaster'
90+
html_theme = "sphinx_rtd_theme"
9191

9292
# Theme options are theme-specific and customize the look and feel of a theme
9393
# further. For a list of options available for each theme, see the

doc/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
breathe
2+
sphinx_rtd_theme

0 commit comments

Comments
 (0)