Skip to content

Commit ffd11d4

Browse files
committed
Fix documentation glitches
1 parent d8e4fc8 commit ffd11d4

File tree

3 files changed

+16
-30
lines changed

3 files changed

+16
-30
lines changed

CONTRIBUTING.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ So all code changes happen through Pull Requests (PRs).
2424

2525
Before adding your contribution, please take a moment to read through the following sections:
2626

27-
- The :ref:`Installation for contributors <installation_contributor>` help you to set up the developing environment and the pre-commit hooks.
27+
- The `Installation for contributors <https://disdrodb.readthedocs.io/en/latest/installation.html#installation-for-contributors>`__ help you to set up the developing environment and the pre-commit hooks.
2828
- The section `Contributing process <#contributing-process>`__ provides you with a brief overview of the steps that each DISDRODB developer must follow to contribute to the repository.
2929
- The `Code review checklist <#code-review-checklist>`__ enable to speed up the code review process.
3030
- The `Code of conduct <https://github.com/ltelab/disdrodb/blob/main/CODE_OF_CONDUCT.md>`__ details the expected behavior of all contributors.
@@ -80,15 +80,15 @@ Here is a brief overview of the steps that each DISDRODB developer must follow t
8080
6. Create a new Pull Request in GitHub.
8181

8282

83-
.. image:: /static/collaborative_process.png
83+
.. image:: https://github.com/ltelab/disdrodb/blob/main/docs/source/static/collaborative_process.png?raw=true
8484

8585

8686
1. Fork the repository and install the development environment
8787
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8888

8989
If you do not have a GitHub account yet, please create one `here <https://github.com/join>`__.
9090
If you do not have yet Git installed on your computer, please install it following `these instructions <https://github.com/git-guides/install-git>`__.
91-
Then, please follow the guidelines in the :ref:`Installation for contributors <installation_contributor>` section
91+
Then, please follow the guidelines in the `Installation for contributors <https://disdrodb.readthedocs.io/en/latest/installation.html#installation-for-contributors>`__ section
9292
to create the local copy of the disdrodb repository, set up the developing environment and the pre-commit hooks.
9393

9494
Once you have have a local copy of the disdrodb repository on your machine, you are ready to
@@ -184,9 +184,9 @@ extension to automatically create such preformatted docstring.
184184

185185
You should configure VS code as follow :
186186

187-
188-
.. image:: /static/vs_code_settings.png
189-
187+
.. image:: https://github.com/ltelab/disdrodb/blob/main/docs/source/static/vs_code_settings.png?raw=true
188+
:alt: VS Code Settings
189+
:align: center
190190

191191
The convention we adopt for our docstrings is the numpydoc string convention.
192192

@@ -267,7 +267,7 @@ The following tools are used:
267267

268268
For contributors interested in running the tests locally:
269269

270-
1. Ensure you have the :ref:`development environment <installation_standard>` correctly set up.
270+
1. Ensure you have the `development environment <https://disdrodb.readthedocs.io/en/latest/installation.html#installation-for-contributors>`__ correctly set up.
271271
2. Navigate to the disdrodb root directory.
272272
3. Execute the following command to run the entire test suite:
273273

README.md

Lines changed: 8 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,7 @@ Let's start by travel to the directory where you want to store the DISDRODB Data
5050
Then clone the DISDRODB Metadata Archive repository with:
5151

5252
```bash
53-
54-
git clone https://github.com/ltelab/disdrodb-data.git
55-
53+
git clone https://github.com/ltelab/disdrodb-data.git
5654
```
5755

5856
This will create a directory called ``disdrodb-data``, which is ready to be filled with data from the DISDRODB Decentralized Data Archive.
@@ -62,37 +60,29 @@ But before starting to download some data, we need to specify the location of th
6260
You can specify once forever the default DISDRODB Local Archive directory by running in python:
6361

6462
```python
65-
66-
import disdrodb
67-
base_dir = "<path_to>/disdrodb-data/DISDRODB>"
68-
disdrodb.define_configs(base_dir=base_dir)
69-
63+
import disdrodb
64+
base_dir = "<path_to>/disdrodb-data/DISDRODB>"
65+
disdrodb.define_configs(base_dir=base_dir)
7066
```
7167

7268
or set up the (temporary) environment variable `DISDRODB_BASE_DIR` in your terminal with:
7369

7470
```bash
75-
76-
export DISDRODB_BASE_DIR="<path_to>/disdrodb-data/DISDRODB>"
77-
71+
export DISDRODB_BASE_DIR="<path_to>/disdrodb-data/DISDRODB>"
7872
```
7973

8074
### 📥 Download the DISDRODB raw data
8175

8276
To download all data stored into the DISDRODB Decentralized Data Archive, you just have to run the following command:
8377

8478
```bash
85-
86-
disdrodb_download_archive
87-
79+
disdrodb_download_archive
8880
```
8981

9082
If you aims to download data from a specific data source (i.e. EPFL), type:
9183

9284
```bash
93-
94-
disdrodb_download_archive --data-sources EPFL
95-
85+
disdrodb_download_archive --data-sources EPFL
9686
```
9787

9888
Type `disdrodb_download_archive --help` to see further options.
@@ -102,9 +92,7 @@ Type `disdrodb_download_archive --help` to see further options.
10292
If you want to convert all stations raw data into standardized netCDF4 files, run the following command in the terminal:
10393

10494
```bash
105-
106-
disdrodb_run_l0
107-
95+
disdrodb_run_l0
10896
```
10997

11098
Type `disdrodb_run_l0 --help` to see further options.
@@ -124,9 +112,7 @@ is hosted on GitHub at [https://github.com/ltelab/disdrodb-data](https://github.
124112
DISDRODB can be installed from PyPI with pip:
125113

126114
```bash
127-
128115
pip install disdrodb
129-
130116
```
131117

132118
## 💭 Feedback and Contributing Guidelines

docs/source/installation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ Install the disdrodb package in editable mode by executing the following command
143143

144144
.. code-block:: bash
145145
146-
pip install -e ".[dev]
146+
pip install -e ".[dev]"
147147
148148
149149
Install pre-commit code quality checks

0 commit comments

Comments
 (0)