Skip to content

Commit ff97fd8

Browse files
Merge pull request #26 from EcoExtreML/docs_setup
Setting up readthedocs
2 parents 7f38686 + e9a369a commit ff97fd8

6 files changed

Lines changed: 59 additions & 31 deletions

File tree

CONTRIBUTING.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# processing
1+
# Contributing Guide
22

33
This repositary includes python modules for running the STEMMUS-SCOPE model in a
4-
notebook.
4+
notebook.
55

66
The workflow is executed using python and MATLAB on a Unix-like system.
77
The python packages are listed in the
@@ -17,7 +17,7 @@ Run the commands below in a terminal:
1717
```sh
1818
# Download and install Conda
1919
wget https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-pypy3-Linux-x86_64.sh
20-
bash Mambaforge-pypy3-Linux-x86_64.sh
20+
bash Mambaforge-pypy3-Linux-x86_64.sh
2121
-b -p ~/mamba
2222

2323
# Update base environment
@@ -51,7 +51,7 @@ Snellius, see the script
5151
on how to load the module.
5252
</details>
5353

54-
# Run jupyter notebook
54+
## Run jupyter notebook
5555

5656
**On Snellius:**
5757

@@ -69,18 +69,18 @@ interactively.
6969
"InputPath" and "OutputPath".
7070
3. click on the `Remote Desktop` in the
7171
Launcher. Click on the `Applications`. You will find the 'MATLAB' software under
72-
the `Research`.
72+
the `Research`.
7373
4. After clicking on 'MATLAB', it asks for your account information that is
7474
connected to a MATLAB license.
7575
5. Open the file `run_model_in_matlab_dev.m` and set the paths inside the script.
7676
6. Then, run the main script `run_model_in_matlab_dev.m`.
7777

78-
# Recipe of model execution
78+
## Recipe of model execution
7979

8080
The execution of the model includes following steps:
8181

8282
- Update/set config files
83-
- Create input directories, prepare input files
83+
- Create input directories, prepare input files
8484
- Run the model
8585
- Create output directories, prepare output files
8686
- Create exe file

README.md

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# STEMMUS SCOPE Processing
21

32
<!-- (Customize these badges with your own links, and check https://shields.io/ or https://badgen.net/ to see which other badges are available.) -->
43

@@ -8,18 +7,18 @@
87
[![fair-software badge](https://img.shields.io/badge/fair--software.eu-%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8F%20%20%E2%97%8B-yellow)](https://fair-software.eu)
98
[![sonarcloud](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/sonarcloud.yml/badge.svg)](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/sonarcloud.yml)
109
[![github license badge](https://img.shields.io/github/license/EcoExtreML/stemmus_scope_processing)](https://github.com/EcoExtreML/stemmus_scope_processing)
10+
[![Documentation Status](https://readthedocs.org/projects/pystemmusscope/badge/?version=latest)](https://pystemmusscope.readthedocs.io/en/latest/?badge=latest)
1111

12-
<!-- [![RSD](https://img.shields.io/badge/rsd-pystemmusscope-00a3e3.svg)](https://www.research-software.nl/software/pystemmusscope)
13-
[![workflow pypi badge](https://img.shields.io/pypi/v/pystemmusscope.svg?colorB=blue)](https://pypi.python.org/project/pystemmusscope/)
12+
<!-- [![RSD](https://img.shields.io/badge/rsd-pystemmusscope-00a3e3.svg)](https://www.research-software.nl/software/pystemmusscope)
13+
[![workflow pypi badge](https://img.shields.io/pypi/v/pystemmusscope.svg?colorB=blue)](https://pypi.python.org/project/pystemmusscope/)
1414
[![DOI](https://zenodo.org/badge/DOI/<replace-with-created-DOI>.svg)](https://doi.org/<replace-with-created-DOI>)
1515
[![workflow cii badge](https://bestpractices.coreinfrastructure.org/projects/<replace-with-created-project-identifier>/badge)](https://bestpractices.coreinfrastructure.org/projects/<replace-with-created-project-identifier>)
1616
[![workflow scc badge](https://sonarcloud.io/api/project_badges/measure?project=EcoExtreML_stemmus_scope_processing&metric=coverage)](https://sonarcloud.io/dashboard?id=EcoExtreML_stemmus_scope_processing)
17-
[![Documentation Status](https://readthedocs.org/projects/stemmus_scope_processing/badge/?version=latest)](https://stemmus_scope_processing.readthedocs.io/en/latest/?badge=latest)
18-
[![cffconvert](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/cffconvert.yml/badge.svg)](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/cffconvert.yml)
17+
[![cffconvert](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/cffconvert.yml/badge.svg)](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/cffconvert.yml)
1918
[![markdown-link-check](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/markdown-link-check.yml/badge.svg)](https://github.com/EcoExtreML/stemmus_scope_processing/actions/workflows/markdown-link-check.yml) -->
2019

21-
22-
This repositary includes python modules for running the STEMMUS-SCOPE model in a notebook.
20+
This repositary includes python modules for running the STEMMUS-SCOPE model in a jupyter
21+
notebook.
2322

2423
The workflow is executed using python and MATLAB Runtime on a Unix-like system.
2524
The python packages are listed in the
@@ -65,7 +64,7 @@ In a terminal:
6564
# Download MATLAB Runtime for Linux
6665
wget https://ssd.mathworks.com/supportfiles/downloads/R2021a/Release/6/deployment_files/installer/complete/glnxa64/MATLAB_Runtime_R2021a_Update_6_glnxa64.zip
6766

68-
# Unzip the file
67+
# Unzip the file
6968
unzip MATLAB_Runtime_R2021a_Update_6_glnxa64.zip
7069

7170
# Install it
@@ -86,7 +85,7 @@ Snellius, see the script
8685
on how to load the module.
8786
</details>
8887

89-
# Run jupyter notebook
88+
## Run jupyter notebook
9089

9190
Open a terminal and run:
9291

@@ -109,12 +108,12 @@ interactively.
109108
Currently, running the notebook on CRIB is not supported because MATLAB Runtime
110109
can not be installed there.
111110

112-
# Recipe of model execution
111+
## Recipe of model execution
113112

114113
The execution of the model includes following steps:
115114

116115
- Update/set config files
117-
- Create input directories, prepare input files
116+
- Create input directories, prepare input files
118117
- Run the model
119118
- Create output directories, prepare output files
120119

docs/conf.py

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717

1818
# -- Project information -----------------------------------------------------
1919

20-
project = u"PyStemmusScope"
21-
copyright = u"2022, Netherlands eScience Center"
22-
author = u"Sarah Alidoost"
20+
project = "PyStemmusScope"
21+
copyright = "2022, Netherlands eScience Center"
22+
author = "Sarah Alidoost"
2323

2424
# The version info for the project you're documenting, acts as replacement for
2525
# |version| and |release|, also used in various other places throughout the
@@ -76,6 +76,20 @@
7676
#
7777
# html_theme_options = {}
7878

79+
# Custom sidebar templates, must be a dictionary that maps document names
80+
# to template names.
81+
#
82+
# This is required for the alabaster theme
83+
# refs: http://alabaster.readthedocs.io/en/latest/installation.html#sidebars
84+
html_sidebars = {
85+
"**": [
86+
'globaltoc.html',
87+
"relations.html", # needs 'show_related': True theme option to display
88+
"searchbox.html",
89+
]
90+
}
91+
92+
7993
# -- Options for Intersphinx
8094

8195
intersphinx_mapping = {'python': ('https://docs.python.org/3', None),

docs/contributing_link.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. include:: ../CONTRIBUTING.md
2+
:parser: myst_parser.sphinx_

docs/index.rst

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,25 @@
33
You can adapt this file completely to your liking, but it should at least
44
contain the root `toctree` directive.
55
6-
Welcome to PyStemmusScope's documentation!
7-
==========================================================
6+
PyStemmusScope documentation
7+
****************************
88

9-
.. toctree::
10-
:maxdepth: 2
11-
:caption: Contents:
9+
Welcome to the documentation of PyStemmusScope, a python package that enables researchers
10+
to use the MATLAB-based STEMMUS-SCOPE model.
11+
12+
`STEMMUS-SCOPE <https://gmd.copernicus.org/articles/14/1379/2021/>`_ is an integrated
13+
soil-plant-atmosphere continuum model based on the models
14+
`SCOPE <https://github.com/Christiaanvandertol/SCOPE/>`_ and
15+
`STEMMUS <https://blog.utwente.nl/stemmus/introduction/>`_, and models
16+
canopy photosynthesis, fluorescence, and the transfer of energy, mass, and momentum.
1217

13-
Indices and tables
14-
==================
18+
For a guide on how to setup and run the model, see the :doc:`user guide <readme_link>`.
19+
If you are interested in contributing to the PyStemmusScope code, see the
20+
:doc:`contributing guide <contributing_link>`.
21+
22+
.. toctree::
23+
:maxdepth: 0
24+
:hidden:
1525

16-
* :ref:`genindex`
17-
* :ref:`modindex`
18-
* :ref:`search`
26+
User guide <readme_link>
27+
Contributing guide <contributing_link>

docs/readme_link.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
User Guide
2+
**********
3+
.. include:: ../README.md
4+
:parser: myst_parser.sphinx_

0 commit comments

Comments
 (0)