Skip to content

Commit

Permalink
Merge pull request #109 from marrink-lab/sphinx1.8
Browse files Browse the repository at this point in the history
Update sphinx to 1.8.0
  • Loading branch information
jbarnoud committed Sep 13, 2018
2 parents 358876e + 258d79a commit 4544415
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
Empty file.
6 changes: 4 additions & 2 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# import sys
# sys.path.insert(0, os.path.abspath('.'))
# Do not generate APIdocs for members missing docstrings (undoc-members)
os.environ['APIDOC_OPTIONS'] = 'members,show-inheritence'
os.environ['APIDOC_OPTIONS'] = 'members,show-inheritence,inherited-members'

# Set APIDOC options
#os.environ['SPHINX_APIDOC_OPTIONS'] = 'members,undoc-members,show-inheritance,special-members'
Expand Down Expand Up @@ -180,7 +180,9 @@
apidoc_excluded_paths = ['tests', 'redistributed']

autoclass_content = 'both'
autodoc_default_flags = ['members', 'undoc-members', 'show-inheritance']
autodoc_default_options = {'members': None,
'undoc-members': None,
'show-inheritance': None}

# -- Options for intersphinx extension ---------------------------------------
# Example configuration for intersphinx: refer to the Python standard library.
Expand Down
2 changes: 1 addition & 1 deletion requirements-docs.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sphinx
sphinx >= 1.8.0
sphinxcontrib-apidoc
pbr
setuptools >= 30.3.0
Expand Down
8 changes: 7 additions & 1 deletion vermouth/molecule.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,12 @@ class attribute to the number of required keys. If the
instance will be validated against that number; else, the user can pass an
arbitrary number of keys without validation.
Attributes
----------
n_keys_asked: int
Class attribute describing the number of keys required.
.. automethod:: __call__
.. automethod:: _apply
"""
Expand Down Expand Up @@ -660,7 +666,7 @@ class Block(Molecule):
----------
name: str or None
The name of the residue. Set to `None` if undefined.
atoms: iterator of dict
atoms: collections.abc.Iterator[dict]
The atoms in the residue. Each atom is a dict with *a minima* a key
'name' for the name of the atom, and a key 'atype' for the atom type.
An atom can also have a key 'charge', 'charge_group', 'comment', or any
Expand Down

0 comments on commit 4544415

Please sign in to comment.