Skip to content

Commit

Permalink
replaced ipynb with py in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
veenstrajelmer committed Mar 13, 2024
1 parent 9e8015f commit 7bad111
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
4 changes: 1 addition & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx_mdinclude',
'nbsphinx', 'nb2plots'
]
extensions = ['sphinx.ext.autodoc', 'sphinx.ext.viewcode', 'sphinx_mdinclude']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ddlpy documentation
:hidden:

installation
measurements
usage
modules
contributing
history
8 changes: 8 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Usage
===========

.. literalinclude:: ../examples/minimal_example.py
:language: python
:linenos:


7 changes: 0 additions & 7 deletions examples/minimal_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@
end_date = dt.datetime(2015, 6, 1)
measurements = ddlpy.measurements(location, start_date=start_date, end_date=end_date)


if (len(measurements) > 0):
print('Data was found in Waterbase')
#measurements.to_csv("%s_%s_%s.csv"%(location.Code, code, unit), index= False)
measurements.plot(y="Meetwaarde.Waarde_Numeriek")
else:
print('No Data!')






1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ docs = [
"sphinx>=1.8.1",
"sphinx_mdinclude",
"nbsphinx",
"pandoc",
"pydata-sphinx-theme",
]
examples = [
Expand Down

0 comments on commit 7bad111

Please sign in to comment.