Skip to content

Commit

Permalink
DOC: Fill holes, simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed May 20, 2018
1 parent 20ee17c commit 201a23f
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 24 deletions.
1 change: 1 addition & 0 deletions datalad_container/containers_add.py
@@ -1,3 +1,4 @@
"""Add a container environment to a dataset"""

__docformat__ = 'restructuredtext'

Expand Down
1 change: 1 addition & 0 deletions datalad_container/containers_list.py
@@ -1,3 +1,4 @@
"""List known container environments of a dataset"""

__docformat__ = 'restructuredtext'

Expand Down
1 change: 1 addition & 0 deletions datalad_container/containers_remove.py
@@ -1,3 +1,4 @@
"""Remove a container environment from a dataset"""

__docformat__ = 'restructuredtext'

Expand Down
1 change: 1 addition & 0 deletions datalad_container/containers_run.py
@@ -1,3 +1,4 @@
"""Drop-in replacement for `datalad run` for command execution in a container"""

__docformat__ = 'restructuredtext'

Expand Down
20 changes: 17 additions & 3 deletions docs/source/index.rst
Expand Up @@ -7,15 +7,29 @@ DataLad extension module for containerized environments
changelog
acknowledgements

API
===
Command manuals
===============

.. toctree::
:maxdepth: 1

generated/man/datalad-containers-add
generated/man/datalad-containers-remove
generated/man/datalad-containers-list
modref
generated/man/datalad-containers-run


Python module reference
=======================

.. currentmodule:: datalad_container
.. autosummary::
:toctree: generated

containers_add
containers_remove
containers_list
containers_run


Indices and tables
Expand Down
20 changes: 0 additions & 20 deletions docs/source/modref.rst

This file was deleted.

8 changes: 7 additions & 1 deletion setup_support.py
Expand Up @@ -14,6 +14,12 @@
import datetime
import formatters as fmt

cmdline_command_names = (
'containers-list',
'containers-add',
'containers-remove',
'containers-run',
)

def _path_rel2file(p):
return opj(dirname(__file__), p)
Expand Down Expand Up @@ -91,7 +97,7 @@ def run(self):
(fmt.RSTManPageFormatter, self.rstpath, 'rst')):
if not os.path.exists(opath):
os.makedirs(opath)
for cmdname in ('containers-list', 'containers-add'):
for cmdname in cmdline_command_names:
p = self._parser[cmdname]
cmdname = "{0}{1}".format(
'datalad-' if cmdname != 'datalad' else '',
Expand Down

0 comments on commit 201a23f

Please sign in to comment.