Skip to content

Commit bba37f4

Browse files
Merge pull request #2349 from Parcels-code/documentation-structure-v4
Change folder structure and navigation to highlight pages for: getting started, user guide, development, and community
2 parents 2a0eb26 + 3f884fd commit bba37f4

File tree

71 files changed

+532
-120
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+532
-120
lines changed

docs/_static/LAdiag-logo.svg

Lines changed: 32 additions & 0 deletions
Loading

docs/_static/clam-full-white-buffer.svg

Lines changed: 103 additions & 0 deletions
Loading

docs/_static/github-logo.svg

Lines changed: 29 additions & 0 deletions
Loading

docs/community/index.md

Lines changed: 95 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,107 @@
11
# Community
22

3-
These sections contain documentation relevant to the Parcels community.
4-
See the sections in the primary sidebar and below to explore.
3+
```{toctree}
4+
:caption: CLAM Community
5+
:maxdepth: 1
6+
:hidden:
7+
8+
Website <https://clam-community.github.io/>
9+
```
510

611
```{toctree}
7-
:caption: User documentation
12+
:caption: GitHub
813
:maxdepth: 1
14+
:hidden:
915
10-
contributing
11-
Versioning Policy <policies>
12-
Release Notes <https://github.com/Parcels-code/Parcels/releases>
13-
Parcels v4.0 Migration Guide <v4-migration>
16+
Discussions <https://github.com/Parcels-code/parcels/discussions>
17+
Issues <https://github.com/Parcels-code/parcels/issues>
1418
```
1519

1620
```{toctree}
17-
:caption: Maintainer documentation
21+
:caption: Community examples
1822
:maxdepth: 1
23+
:hidden:
24+
25+
Repository <https://github.com/Parcels-code/parcels_contributions>
26+
```
27+
28+
Parcels users and developers interact in a vibrant community on a few different platforms. Check out the cards below to see how you can interact with us.
29+
30+
`````{grid} 1 2 2 2
31+
:gutter: 4
32+
:padding: 2 2 0 0
33+
:class-container: sd-text-center
34+
35+
````{grid-item-card} CLAM Community on Zulip
36+
:img-top: https://raw.githubusercontent.com/CLAM-community/CLAM-community.github.io/ca1b93cb79410f7ffbbca7ae6860c5d5e0430d31/docs/assets/branding/svg/clam-full-white-buffer.svg
37+
:shadow: md
38+
39+
If you are doing any kind of Lagrangian modelling and/or analysis check out the CLAM (Computational Lagrangian Analysis and Modelling) Community
40+
41+
```{image} https://img.shields.io/badge/Zulip-50ADFF?style=for-the-badge&logo=Zulip&logoColor=white
42+
:width: 30%
43+
:target: https://clam-community.zulipchat.com/
44+
```
45+
46+
+++
47+
48+
```{button-link} https://clam-community.github.io/
49+
:color: secondary
50+
:expand:
51+
52+
To the CLAM website
53+
```
54+
````
55+
````{grid-item-card} GitHub
56+
:img-top: ../_static/github-logo.svg
57+
:shadow: md
58+
59+
If you need more help with Parcels, try the Discussions page on **GitHub**. If you think you found a bug, please feel free to file an Issue.
60+
61+
+++
62+
63+
```{button-link} https://github.com/Parcels-code/parcels/discussions
64+
:color: secondary
65+
:expand:
66+
67+
Ask a question in the Discussions
68+
```
69+
```{button-link} https://github.com/Parcels-code/parcels/issues
70+
:color: secondary
71+
:expand:
72+
73+
Report a bug with an Issue
74+
```
75+
````
76+
````{grid-item-card} Sharing user code
77+
:shadow: md
78+
79+
Curious to see if someone has already written the custom `Kernel` you are thinking of or runs **Parcels** with the same hydrodynamic data? Check out the parcels_contributions repository and share examples with other users!
80+
81+
+++
82+
83+
```{button-link} https://github.com/Parcels-code/parcels_contributions
84+
:click-parent:
85+
:color: secondary
86+
:expand:
87+
88+
Share custom Parcels code
89+
```
90+
````
91+
````{grid-item-card} Lagrangian Diagnostics
92+
:img-top: ../_static/LAdiag-logo.svg
93+
:shadow: md
94+
95+
Are you interested in advanced analysis and diagnostics of Parcels output or Lagrangian trajectories in general? The Lagrangian Diagnostics project provides code and descriptions of different analyses.
96+
97+
+++
98+
99+
```{button-link} https://github.com/Parcels-code/Lagrangian_diags
100+
:click-parent:
101+
:color: secondary
102+
:expand:
19103
20-
maintainer
104+
Visit Lagrangian Diagnostics
21105
```
106+
````
107+
`````

docs/conf.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"nbsphinx",
4141
"numpydoc",
4242
"sphinxcontrib.mermaid",
43+
"sphinx_design",
4344
]
4445

4546
# Add any paths that contain templates here, relative to this directory.
@@ -113,7 +114,7 @@
113114

114115
# List of patterns, relative to source directory, that match files and
115116
# directories to ignore when looking for source files.
116-
exclude_patterns = ["_build", "**.ipynb_checkpoints"]
117+
exclude_patterns = ["_build", "**.ipynb_checkpoints", "user_guide/examples_v3"]
117118

118119
# The reST default role (used for this markup: `text`) to use for all
119120
# documents.
@@ -205,6 +206,8 @@
205206
}
206207
],
207208
"announcement": "WARNING: This documentation is built for v4 of Parcels, which is unreleased and in active development. Use the version switcher in the bottom right to select your version of Parcels, or see <a href='https://docs.parcels-code.org/'>stable docs</a>.",
209+
"header_links_before_dropdown": 8,
210+
"navbar_align": "left",
208211
}
209212

210213
html_context = {
@@ -520,3 +523,8 @@ def linkcode_resolve(domain, info):
520523

521524
# If false, no index is generated.
522525
# epub_use_index = True
526+
527+
# -- Options for MyST parser ----------------------------------------------
528+
myst_heading_anchors = 3
529+
530+
myst_enable_extensions = ["substitution"]

docs/development/docsguide.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Documentation Notes
2+
3+
## Vision
4+
5+
We believe a clear documentation is important to community building, reproducibility, and transparency in our open-source project. To make it easier to write our documentation in a consistent way, here we outline a brief vision for our documentation based heavily on a few common resources.
6+
7+
```{note}
8+
TODO: outline functions of the documentation based on resources
9+
```
10+
11+
### Resources
12+
13+
- [Divio Documentation System](https://docs.divio.com/documentation-system/)
14+
- [PyOpenSci Documentation Guide](https://www.pyopensci.org/python-package-guide/documentation/index.html#)
15+
- [Write the Docs Guide](https://www.writethedocs.org/guide/)
16+
- [NumPy Documentation Article](https://labs.quansight.org/blog/2020/03/documentation-as-a-way-to-build-community)
17+
18+
## Style guide
19+
20+
- Write documentation in first person plural ("we"). In our open source code, tutorials and guides can be written by any developer or user, so the documentation teaches all of us how to do something with Parcels.

0 commit comments

Comments
 (0)