Skip to content

Commit e330bd4

Browse files
committed
Convert RST syntax to Markdown syntax
1 parent 78e13d8 commit e330bd4

File tree

7 files changed

+132
-126
lines changed

7 files changed

+132
-126
lines changed

docs/community/contributing.md

Lines changed: 56 additions & 66 deletions
Large diffs are not rendered by default.

docs/community/index.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,19 @@
33
These sections contain documentation relevant to the Parcels community.
44
See the sections in the primary sidebar and below to explore.
55

6-
.. toctree::
6+
```{toctree}
77
:caption: User documentation
88
:maxdepth: 1
99
10-
contributing
11-
Versioning Policy <policies>
12-
Release Notes <https://github.com/OceanParcels/Parcels/releases>
13-
Parcels v4.0 Migration Guide <v4-migration>
10+
contributing
11+
Versioning Policy <policies>
12+
Release Notes <https://github.com/OceanParcels/Parcels/releases>
13+
Parcels v4.0 Migration Guide <v4-migration>
14+
```
1415

15-
.. toctree::
16+
```{toctree}
1617
:caption: Maintainer documentation
1718
:maxdepth: 1
1819
19-
maintainer
20+
maintainer
21+
```

docs/documentation/additional_examples.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,70 @@
22

33
## example_brownian.py
44

5-
.. literalinclude:: ../examples/example_brownian.py
5+
```{literalinclude} ../examples/example_brownian.py
66
:language: python
77
:linenos:
8+
```
89

910
## example_decaying_moving_eddy.py
1011

11-
.. literalinclude:: ../examples/example_decaying_moving_eddy.py
12+
```{literalinclude} ../examples/example_decaying_moving_eddy.py
1213
:language: python
1314
:linenos:
15+
```
1416

1517
## example_globcurrent.py
1618

17-
.. literalinclude:: ../examples/example_globcurrent.py
19+
```{literalinclude} ../examples/example_globcurrent.py
1820
:language: python
1921
:linenos:
22+
```
2023

2124
## example_mitgcm.py
2225

23-
.. literalinclude:: ../examples/example_mitgcm.py
26+
```{literalinclude} ../examples/example_mitgcm.py
2427
:language: python
2528
:linenos:
29+
```
2630

2731
## example_moving_eddies.py
2832

29-
.. literalinclude:: ../examples/example_moving_eddies.py
33+
```{literalinclude} ../examples/example_moving_eddies.py
3034
:language: python
3135
:linenos:
36+
```
3237

3338
## example_nemo_curvilinear.py
3439

35-
.. literalinclude:: ../examples/example_nemo_curvilinear.py
40+
```{literalinclude} ../examples/example_nemo_curvilinear.py
3641
:language: python
3742
:linenos:
43+
```
3844

3945
## example_ofam.py
4046

41-
.. literalinclude:: ../examples/example_ofam.py
47+
```{literalinclude} ../examples/example_ofam.py
4248
:language: python
4349
:linenos:
50+
```
4451

4552
## example_peninsula.py
4653

47-
.. literalinclude:: ../examples/example_peninsula.py
54+
```{literalinclude} ../examples/example_peninsula.py
4855
:language: python
4956
:linenos:
57+
```
5058

5159
## example_radial_rotation.py
5260

53-
.. literalinclude:: ../examples/example_radial_rotation.py
61+
```{literalinclude} ../examples/example_radial_rotation.py
5462
:language: python
5563
:linenos:
64+
```
5665

5766
## example_stommel.py
5867

59-
.. literalinclude:: ../examples/example_stommel.py
68+
```{literalinclude} ../examples/example_stommel.py
6069
:language: python
6170
:linenos:
71+
```

docs/documentation/index.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
# Documentation and Tutorials
22

3-
Parcels has several documentation and tutorial Jupyter notebooks and scripts which go through various aspects of Parcels. Static versions of the notebooks are available below via the gallery in the site, with the interactive notebooks being available either completely online at the following `Binder link <https://mybinder.org/v2/gh/OceanParcels/parcels/main?labpath=docs%2Fexamples%2Fparcels_tutorial.ipynb>`\_. Following the gallery of notebooks is a list of scripts which provide additional examples to users. You can work with the example notebooks and scripts locally by downloading :download:`parcels_tutorials.zip </_downloads/parcels_tutorials.zip>` and running with your own Parcels installation.
3+
Parcels has several documentation and tutorial Jupyter notebooks and scripts which go through various aspects of Parcels. Static versions of the notebooks are available below via the gallery in the site, with the interactive notebooks being available either completely online at the following [Binder link](https://mybinder.org/v2/gh/OceanParcels/parcels/main?labpath=docs%2Fexamples%2Fparcels_tutorial.ipynb). Following the gallery of notebooks is a list of scripts which provide additional examples to users. You can work with the example notebooks and scripts locally by downloading {download}`parcels_tutorials.zip </_downloads/parcels_tutorials.zip>` and running with your own Parcels installation.
44

5-
.. nbgallery::
5+
```{nbgallery}
66
:caption: Overview
77
:name: tutorial-overview
88
99
../examples/tutorial_parcels_structure.ipynb
1010
../examples/parcels_tutorial.ipynb
1111
../examples/tutorial_output.ipynb
12+
```
1213

13-
.. nbgallery::
14+
```{nbgallery}
1415
:caption: Setting up FieldSets
1516
:name: tutorial-fieldsets
1617
@@ -22,14 +23,16 @@ Parcels has several documentation and tutorial Jupyter notebooks and scripts whi
2223
../examples/tutorial_periodic_boundaries.ipynb
2324
../examples/tutorial_interpolation.ipynb
2425
../examples/tutorial_unitconverters.ipynb
26+
```
2527

26-
.. nbgallery::
28+
```{nbgallery}
2729
:caption: Creating ParticleSets
2830
:name: tutorial-particlesets
2931
3032
../examples/tutorial_delaystart.ipynb
33+
```
3134

32-
.. nbgallery::
35+
```{nbgallery}
3336
:caption: Writing kernels to be executed on each particle
3437
:name: tutorial-kernels
3538
@@ -39,8 +42,9 @@ Parcels has several documentation and tutorial Jupyter notebooks and scripts whi
3942
../examples/tutorial_interaction.ipynb
4043
../examples/tutorial_analyticaladvection.ipynb
4144
../examples/tutorial_kernelloop.ipynb
45+
```
4246

43-
.. nbgallery::
47+
```{nbgallery}
4448
:caption: Other tutorials
4549
:name: tutorial-other
4650
@@ -51,16 +55,18 @@ Parcels has several documentation and tutorial Jupyter notebooks and scripts whi
5155
../examples/documentation_LargeRunsOutput.ipynb
5256
../examples/documentation_geospatial.ipynb
5357
../examples/documentation_advanced_zarr.ipynb
58+
```
5459

55-
.. nbgallery::
60+
```{nbgallery}
5661
:caption: Worked examples
5762
:name: tutorial-examples
5863
5964
../examples/tutorial_Argofloats.ipynb
6065
../examples/documentation_homepage_animation.ipynb
66+
```
6167

6268
## Python Example Scripts
6369

64-
.. toctree::
65-
70+
```{toctree}
6671
additional_examples
72+
```

docs/index.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# Parcels documentation
22

3-
Welcome to the documentation of Parcels. **Parcels** provides a set of Python classes and methods to create customisable particle tracking simulations using gridded output from (ocean) circulation models. Parcels can be used to track passive and active particulates such as water, plankton, `plastic <http://www.topios.org/>`_ and `fish <https://github.com/Jacketless/IKAMOANA>`_.
3+
Welcome to the documentation of Parcels. **Parcels** provides a set of Python classes and methods to create customisable particle tracking simulations using gridded output from (ocean) circulation models. Parcels can be used to track passive and active particulates such as water, plankton, [plastic](http://www.topios.org/) and [fish](https://github.com/Jacketless/IKAMOANA).
44

5-
.. figure:: \_static/homepage.gif
5+
```{figure} _static/homepage.gif
66
:class: dark-light
7+
```
78

8-
_Animation of virtual particles carried by ocean surface flow in the global oceans. The particles are advected with Parcels in data from the_ `NEMO Ocean Model <https://www.nemo-ocean.eu/>`\_.
9+
_Animation of virtual particles carried by ocean surface flow in the global oceans. The particles are advected with Parcels in data from the_ [NEMO Ocean Model](https://www.nemo-ocean.eu/).
910

10-
Here you'll find `installation instructions <installation.rst>`_, `tutorials and documentation <documentation/index.rst>`_, and the `API reference <reference.rst>`\_ for Parcels. You can browse the documentation for older versions by using the version switcher in the left sidebar.
11+
Here you'll find [installation instructions](installation.md), [tutorials and documentation](documentation/index.md), and the [API reference](reference.md) for Parcels. You can browse the documentation for older versions by using the version switcher in the left sidebar.
1112

12-
If you need more help with Parcels, try the `Discussions page on GitHub <https://github.com/OceanParcels/parcels/discussions>`_. If you think you found a bug, file an `Issue on GitHub <https://github.com/OceanParcels/parcels/issues>`_. If you want to help improve Parcels, see the `Contributing <community/contributing.rst>`\_ page.
13+
If you need more help with Parcels, try the [Discussions page on GitHub](https://github.com/OceanParcels/parcels/discussions). If you think you found a bug, file an [Issue on GitHub](https://github.com/OceanParcels/parcels/issues). If you want to help improve Parcels, see the [Contributing](community/contributing.md) page.
1314

14-
.. toctree::
15+
```{toctree}
1516
:maxdepth: 2
1617
:hidden:
1718
@@ -22,3 +23,4 @@ Tutorials & Documentation <documentation/index>
2223
API reference <reference>
2324
Contributing, Release Notes and more <community/index>
2425
OceanParcels website <https://oceanparcels.org/>
26+
```

docs/installation.md

Lines changed: 22 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,50 @@
11
# Basic installation
22

3-
The simplest way to install the Parcels code is to use Anaconda and the `Parcels conda-forge package <https://anaconda.org/conda-forge/parcels>`\_ with the latest release of Parcels. This package will automatically install all the requirements for a fully functional installation of Parcels. This is the batteries-included solution probably suitable for most users. Note that we support Python 3.10 and higher.
3+
The simplest way to install the Parcels code is to use Anaconda and the [Parcels conda-forge package](https://anaconda.org/conda-forge/parcels) with the latest release of Parcels. This package will automatically install all the requirements for a fully functional installation of Parcels. This is the "batteries-included" solution probably suitable for most users. Note that we support Python 3.10 and higher.
44

5-
If you want to install the latest development version of Parcels and work with features that have not yet been officially released, you can follow the instructions for a `developer installation <#installation-for-developers>`\_.
5+
If you want to install the latest development version of Parcels and work with features that have not yet been officially released, you can follow the instructions for a [developer installation](#installation-for-developers).
66

77
The steps below are the installation instructions for Linux, macOS and Windows.
88

9-
.. \_step 1 above:
9+
(step-1-above)=
1010

1111
**Step 1:** Install Anaconda's Miniconda following the steps at https://docs.anaconda.com/miniconda/. If you're on Linux /macOS, the following assumes that you installed Miniconda to your home directory.
1212

1313
**Step 2:** Start a terminal (Linux / macOS) or the Anaconda prompt (Windows). Activate the `base` environment of your Miniconda and create an environment containing Parcels, all its essential dependencies, `trajan` (a trajectory plotting dependency used in the notebooks) and the nice-to-have cartopy and jupyter packages:
1414

15-
.. code-block:: bash
15+
```bash
16+
conda activate base
17+
conda create -n parcels -c conda-forge parcels trajan cartopy jupyter
18+
```
1619

17-
conda activate base
18-
conda create -n parcels -c conda-forge parcels trajan cartopy jupyter
19-
20-
.. note::
21-
22-
For some of the examples, ``pytest`` also needs to be installed. This can be quickly done with ``conda install -n parcels pytest`` which installs ``pytest`` directly into the newly created ``parcels`` environment.
20+
```{note}
21+
For some of the examples, `pytest` also needs to be installed. This can be quickly done with `conda install -n parcels pytest` which installs `pytest` directly into the newly created `parcels` environment.
22+
```
2323

2424
**Step 3:** Activate the newly created Parcels environment:
2525

26-
.. code-block:: bash
26+
```bash
27+
conda activate parcels
28+
```
2729

28-
conda activate parcels
29-
30-
**Step 4:** Download `a zipped copy <https://docs.oceanparcels.org/en/latest/_downloads/307c382eb1813dc691e8a80d6c0098f7/parcels_tutorials.zip>`\_ of the Parcels tutorials and examples and unzip it.
30+
**Step 4:** Download [a zipped copy](https://docs.oceanparcels.org/en/latest/_downloads/307c382eb1813dc691e8a80d6c0098f7/parcels_tutorials.zip) of the Parcels tutorials and examples and unzip it.
3131

3232
**Step 5:** Go to the unzipped folder and run one of the examples to validate that you have a working Parcels setup:
3333

34-
.. code-block:: bash
35-
34+
```bash
3635
python example_peninsula.py --fieldset 100 100
36+
```
3737

3838
_Optionally:_ if you want to run all the examples and tutorials, start Jupyter and open the tutorial notebooks:
3939

40-
.. code-block:: bash
41-
40+
```bash
4241
jupyter notebook
42+
```
4343

44-
.. note::
45-
46-
The next time you start a terminal and want to work with Parcels, activate the environment with:
47-
48-
.. code-block:: bash
49-
50-
conda activate parcels
44+
```{note}
45+
The next time you start a terminal and want to work with Parcels, activate the environment with `conda activate parcels`.
46+
```
5147

5248
# Installation for developers
5349

54-
See the `development section in our contributing guide <./community/contributing.rst#development>`\_ for development instructions.
50+
See the [development section in our contributing guide](./community/contributing.md#development) for development instructions.

docs/reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Parcels API
22

3-
.. note::
4-
3+
```{note}
54
This section is a work in progress.
5+
```

0 commit comments

Comments
 (0)