Skip to content

Commit

Permalink
Merge 4e1a6eb into 5cb1edf
Browse files Browse the repository at this point in the history
  • Loading branch information
jirikuncar committed Jun 26, 2017
2 parents 5cb1edf + 4e1a6eb commit 63164d6
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 8 deletions.
1 change: 1 addition & 0 deletions docs/authors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.. include:: ../AUTHORS.rst
33 changes: 29 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def process_base(app, objtype, membername, member, skip, options):

def setup(app):
app.connect('autodoc-skip-member', process_base)
app.add_autodocumenter(BaseDocumenter)
AutoDirective._registry['base_expression'] = BaseDocumenter

def get_attr(obj, value, *args, **kwargs):
return getattr(obj.definition, value)
Expand All @@ -84,6 +84,9 @@ def get_attr(obj, value, *args, **kwargs):
#
# needs_sphinx = '1.0'

# Do not warn on external images.
suppress_warnings = ['image.nonlocal_uri', 'ref.citation']

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
Expand Down Expand Up @@ -162,13 +165,35 @@ def get_attr(obj, value, *args, **kwargs):
# further. For a list of options available for each theme, see the
# documentation.
#
# html_theme_options = {}
html_theme_options = {
'description': 'This package contains helpers to deal with physical variables '
'and units in SageMath.',
'github_user': 'environmentalscience',
'github_repo': 'essm',
'github_button': False,
'github_banner': True,
'show_powered_by': False,
'extra_nav_links': {
'essm@GitHub': 'https://github.com/environmentalscience/essm',
'essm@PyPI': 'https://pypi.python.org/pypi/essm/',
}
}

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']

# html_static_path = ['_static']

# Custom sidebar templates, maps document names to template names.
html_sidebars = {
'**': [
'about.html',
'navigation.html',
'relations.html',
'searchbox.html',
'donate.html',
]
}

# -- Options for HTMLHelp output ------------------------------------------

Expand Down
3 changes: 2 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ interested.
:maxdepth: 1

license
../AUTHORS
authors

References
==========

.. bibliography:: refs.bib
:cited:

Indices and tables
==================
Expand Down
2 changes: 0 additions & 2 deletions docs/refs.bib
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ @Book{monteith_principles_2007
ISBN = {0-12-505103-4}
}

}
@Article{schymanski_leaf-scale_2017,
Title = {Leaf-scale experiments reveal an important omission in the {Penman}{\textendash}{Monteith} equation},
Author = {Schymanski, S. J. and Or, D.},
Expand Down
2 changes: 1 addition & 1 deletion essm/equations/chamber/insulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
class eq_Qi(Equation):
"""Calculate ....
:cite:`schymanski_leaf-scale_2016`
:cite:`schymanski_leaf-scale_2017`
"""

expr = Q_i == dT_i * lambda_i * A_i / L_i
Expand Down
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
test = pytest

[build_sphinx]
# Set warning-is-error = false if you want to force building documentation
warning-is-error = true
source-dir = docs/
build-dir = docs/_build
all_files = 1
Expand Down

0 comments on commit 63164d6

Please sign in to comment.