# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
-# import os
-# import sys
-# sys.path.insert(0, os.path.abspath('.'))
+import os
+import sys
+sys.path.insert(0, os.path.abspath('web'))
# -- General configuration ------------------------------------------------
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
-extensions = []
+extensions = ['sphinxcontrib.autohttp.flask']
# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
-Welcome to seepark's documentation!
-===================================
-
-Contents:
-
-.. toctree::
- :maxdepth: 2
+Seepark API documentation
+=========================
+.. autoflask:: seepark_web:app
+ :undoc-static:
Indices and tables
==================
-* :ref:`genindex`
-* :ref:`modindex`
* :ref:`search`
@app.route('/report/<int:year>-<int:month>')
def report(year, month):
+ """Report for given year and month
+ """
paper_size = (29.7 / 2.54, 21. / 2.54) # A4
begin = datetime.datetime(year, month, 1)