Skip to content

Commit e5f3c94

Browse files
authored
Move the examples folder into the doc folder (#557)
I don't even remember why they didn't live there in the first place. They are mostly used to generate the gallery. Moved them to `doc/gallery_src` since that makes much more sense.
1 parent a7d8629 commit e5f3c94

26 files changed

Lines changed: 3 additions & 7 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PROJECT=harmonica
33
TESTDIR=tmp-test-dir-with-unique-name
44
PYTEST_ARGS=--cov-config=../.coveragerc --cov-report=term-missing --cov=$(PROJECT) --doctest-modules --doctest-continue-on-failure -v --pyargs
55
NUMBATEST_ARGS=--doctest-modules -v --pyargs -m use_numba
6-
STYLE_CHECK_FILES=$(PROJECT) examples doc
6+
STYLE_CHECK_FILES=$(PROJECT) doc
77
GITHUB_ACTIONS=.github/workflows
88

99
.PHONY: build install test test_coverage test_numba format check check-format check-style check-actions clean

doc/conf.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
intersphinx_mapping = {
4646
"python": ("https://docs.python.org/3/", None),
4747
"numpy": ("https://docs.scipy.org/doc/numpy/", None),
48-
"numba": ("https://numba.pydata.org/numba-doc/latest/", None),
48+
"numba": ("https://numba.readthedocs.io/en/stable/", None),
4949
"scipy": ("https://docs.scipy.org/doc/scipy/reference", None),
5050
"pandas": ("http://pandas.pydata.org/pandas-docs/stable/", None),
5151
"xarray": ("http://xarray.pydata.org/en/stable/", None),
@@ -57,10 +57,6 @@
5757
"matplotlib": ("https://matplotlib.org/", None),
5858
"pyproj": ("https://pyproj4.github.io/pyproj/stable/", None),
5959
"pyvista": ("https://docs.pyvista.org", None),
60-
"numba_progress": (
61-
"https://pypi.org/project/numba-progress/",
62-
None,
63-
),
6460
"pygmt": ("https://www.pygmt.org/latest/", None),
6561
}
6662

@@ -93,7 +89,7 @@
9389
# -----------------------------------------------------------------------------
9490
sphinx_gallery_conf = {
9591
# path to your examples scripts
96-
"examples_dirs": ["../examples"],
92+
"examples_dirs": ["gallery_src"],
9793
# path where to save gallery generated examples
9894
"gallery_dirs": ["gallery"],
9995
"filename_pattern": r"\.py",
File renamed without changes.

examples/equivalent_sources/block_averaged_sources.py renamed to doc/gallery_src/equivalent_sources/block_averaged_sources.py

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)