Skip to content

Commit 0d692f7

Browse files
Add user stories (#81)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent faf67eb commit 0d692f7

File tree

7 files changed

+425
-4
lines changed

7 files changed

+425
-4
lines changed

ci/docs.yml

+4
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ dependencies:
88
- numpydoc
99
- numpy_groupies
1010
- toolz
11+
- matplotlib-base
1112
- myst-parser
13+
- myst-nb
1214
- sphinx
1315
- furo
16+
- ipykernel
17+
- jupyter
1418
- pip:
1519
- git+https://github.com/dcherian/flox

docs/source/_static/style.css

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.xr-wrap {
2+
font-size: 0.85em;
3+
margin-left: 1.25em;
4+
padding-left: 1.25em;
5+
border-left: thin var(--color-foreground-muted) solid;
6+
}
7+
.xr-array-wrap, .xr-var-data, .xr-var-preview {
8+
font-size: 0.9em;
9+
}
10+
.gp {
11+
color: darkorange;
12+
}

docs/source/api.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ Aggregation Objects
4040
:toctree: generated/
4141

4242
aggregations.Aggregation
43-
aggregations.sum
43+
aggregations.sum_
4444
aggregations.nansum

docs/source/conf.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
import sys
1717

1818
import flox
19+
import flox.aggregations
20+
import flox.visualize
21+
import flox.xarray
1922

2023
# If extensions (or modules to document with autodoc) are in another directory,
2124
# add these directories to sys.path here. If the directory is relative to the
@@ -29,14 +32,14 @@
2932

3033
# -- General configuration -----------------------------------------------------
3134
extensions = [
32-
"myst_parser",
3335
"sphinx.ext.autodoc",
3436
"sphinx.ext.viewcode",
3537
"sphinx.ext.autosummary",
3638
"sphinx.ext.intersphinx",
3739
"sphinx.ext.extlinks",
3840
"numpydoc",
3941
"sphinx.ext.napoleon",
42+
"myst_nb",
4043
]
4144

4245
extlinks = {
@@ -45,7 +48,7 @@
4548
}
4649

4750
templates_path = ["_templates"]
48-
source_suffix = [".rst", ".md"]
51+
source_suffix = [".rst"]
4952
master_doc = "index"
5053
language = "en"
5154

@@ -117,7 +120,8 @@
117120
# Add any paths that contain custom static files (such as style sheets) here,
118121
# relative to this directory. They are copied after the builtin static files,
119122
# so a file named "default.css" will overwrite the builtin "default.css".
120-
# html_static_path = ["_static"]
123+
html_static_path = ["_static"]
124+
html_css_files = ["style.css"]
121125

122126
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
123127
# using the given strftime format.

docs/source/index.md

+1
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,5 @@ It was motivated by many discussions in the [Pangeo](https://pangeo.io) communit
5050
implementation.md
5151
custom.md
5252
api.rst
53+
user-stories.md
5354
```

docs/source/user-stories.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# User Stories
2+
3+
```{eval-rst}
4+
.. toctree::
5+
:maxdepth: 1
6+
7+
user-stories/climatology.ipynb
8+
```

0 commit comments

Comments
 (0)