Skip to content

Commit 56209bd

Browse files
JessicaS11pre-commit-ci[bot]dcherian
authored
Docs: Add page with figure for navigating help resources (#9147)
* add config to build mermaid diagrams in docs --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Deepak Cherian <deepak@cherian.net>
1 parent 872c1c5 commit 56209bd

File tree

5 files changed

+87
-1
lines changed

5 files changed

+87
-1
lines changed

ci/requirements/doc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,6 @@ dependencies:
4242
- sphinxext-rediraffe
4343
- zarr>=2.10
4444
- pip:
45+
- sphinxcontrib-mermaid
4546
# relative to this file. Needs to be editable to be accepted.
4647
- -e ../..

doc/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
)
6060

6161
nbsphinx_allow_errors = False
62+
nbsphinx_requirejs_path = ""
6263

6364
# -- General configuration ------------------------------------------------
6465

@@ -68,7 +69,9 @@
6869
# Add any Sphinx extension module names here, as strings. They can be
6970
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
7071
# ones.
72+
7173
extensions = [
74+
"sphinxcontrib.mermaid",
7275
"sphinx.ext.autodoc",
7376
"sphinx.ext.autosummary",
7477
"sphinx.ext.intersphinx",
@@ -175,6 +178,8 @@
175178
"pd.NaT": "~pandas.NaT",
176179
}
177180

181+
# mermaid config
182+
mermaid_version = "10.9.1"
178183

179184
# Add any paths that contain templates here, relative to this directory.
180185
templates_path = ["_templates", sphinx_autosummary_accessors.templates_path]

doc/help-diagram.rst

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
Getting Help
2+
============
3+
4+
Navigating the wealth of resources available for Xarray can be overwhelming.
5+
We've created this flow chart to help guide you towards the best way to get help, depending on what you're working towards.
6+
The links to each resource are provided below the diagram.
7+
Regardless of how you interact with us, we're always thrilled to hear from you!
8+
9+
.. mermaid::
10+
:alt: Flowchart illustrating the different ways to access help using or contributing to Xarray.
11+
12+
flowchart TD
13+
intro[Welcome to Xarray! How can we help?]:::quesNodefmt
14+
usage(["fa:fa-chalkboard-user Xarray Tutorials
15+
fab:fa-readme Xarray Docs
16+
fab:fa-google Google/fab:fa-stack-overflow Stack Exchange
17+
fa:fa-robot Ask AI/a Language Learning Model (LLM)"]):::ansNodefmt
18+
API([fab:fa-readme Xarray Docs
19+
fab:fa-readme extension's docs]):::ansNodefmt
20+
help([fab:fa-github Xarray Discussions
21+
fab:fa-discord Xarray Discord
22+
fa:fa-users Xarray Office Hours
23+
fa:fa-globe Pangeo Discourse]):::ansNodefmt
24+
bug([Report and Propose here:
25+
fab:fa-github Xarray Issues]):::ansNodefmt
26+
contrib([fa:fa-book-open Xarray Contributor's Guide]):::ansNodefmt
27+
pr(["fab:fa-github Pull Request (PR)"]):::ansNodefmt
28+
dev([fab:fa-github Comment on your PR
29+
fa:fa-users Developer's Meeting]):::ansNodefmt
30+
report[Thanks for letting us know!]:::quesNodefmt
31+
merged[fa:fa-hands-clapping Your PR was merged.
32+
Thanks for contributing to Xarray!]:::quesNodefmt
33+
34+
35+
intro -->|How do I use Xarray?| usage
36+
usage -->|"with extensions (like Dask)"| API
37+
38+
usage -->|I'd like some more help| help
39+
intro -->|I found a bug| bug
40+
intro -->|I'd like to make a small change| contrib
41+
subgraph bugcontrib[Bugs and Contributions]
42+
bug
43+
contrib
44+
bug -->|I just wanted to tell you| report
45+
bug<-->|I'd like to fix the bug!| contrib
46+
pr -->|my PR was approved| merged
47+
end
48+
49+
50+
intro -->|I wish Xarray could...| bug
51+
52+
53+
pr <-->|my PR is quiet| dev
54+
contrib -->pr
55+
56+
classDef quesNodefmt fill:#9DEEF4,stroke:#206C89
57+
58+
classDef ansNodefmt fill:#FFAA05,stroke:#E37F17
59+
60+
classDef boxfmt fill:#FFF5ED,stroke:#E37F17
61+
class bugcontrib boxfmt
62+
63+
linkStyle default font-size:20pt,color:#206C89
64+
65+
66+
- `Xarray Tutorials <https://tutorial.xarray.dev/>`__
67+
- `Xarray Docs <https://docs.xarray.dev/en/stable/>`__
68+
- `Google/Stack Exchange <https://stackoverflow.com/questions/tagged/python-xarray>`__
69+
- `Xarray Discussions <https://github.com/pydata/xarray/discussions>`__
70+
- `Xarray Discord <https://discord.com/invite/wEKPCt4PDu>`__
71+
- `Xarray Office Hours <https://github.com/pydata/xarray/discussions/categories/office-hours>`__
72+
- `Pangeo Discourse <https://discourse.pangeo.io/>`__
73+
- `Xarray Issues <https://github.com/pydata/xarray/issues>`__
74+
- `Xarray Contributors Guide <https://docs.xarray.dev/en/stable/contributing.html>`__
75+
- `Developer's Meeting <https://docs.xarray.dev/en/stable/developers-meeting.html>`__

doc/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ efficient, and fun!
1414
`Releases <https://github.com/pydata/xarray/releases>`__ |
1515
`Stack Overflow <https://stackoverflow.com/questions/tagged/python-xarray>`__ |
1616
`Mailing List <https://groups.google.com/g/xarray>`__ |
17-
`Blog <https://xarray.dev/blog>`__
17+
`Blog <https://xarray.dev/blog>`__ |
18+
`Tutorials <https://tutorial.xarray.dev/>`__
1819

1920

2021
.. grid:: 1 1 2 2
@@ -65,6 +66,7 @@ efficient, and fun!
6566
Tutorials & Videos <tutorials-and-videos>
6667
API Reference <api>
6768
How do I ... <howdoi>
69+
Getting Help <help-diagram>
6870
Ecosystem <ecosystem>
6971

7072
.. toctree::

doc/whats-new.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,12 @@ Bug fixes
4040
Documentation
4141
~~~~~~~~~~~~~
4242

43+
- Adds a flow-chart diagram to help users navigate help resources (`Discussion #8990 <https://github.com/pydata/xarray/discussions/8990>`_).
44+
By `Jessica Scheick <https://github.com/jessicas11>`_.
4345
- Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`)
4446
By `Maximilian Roos <https://github.com/max-sixty>`_
4547

48+
4649
Internal Changes
4750
~~~~~~~~~~~~~~~~
4851

0 commit comments

Comments
 (0)