Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ameily committed Apr 4, 2017
1 parent 091bdfe commit bbab146
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 60 deletions.
6 changes: 3 additions & 3 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
# serve to show the default.

import sys, os
import sphinx_rtd_theme
#import sphinx_rtd_theme

html_theme = "sphinx_rtd_theme"
html_theme = "bizstyle"

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
#html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

sys.path.append(os.path.join(os.path.dirname(__file__), '../../'))

Expand Down
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ API Documentation
pypsi.commands.rst
pypsi.plugins.rst
pypsi.shell.rst
pypsi.completers.rst
pypsi.core.rst
pypsi.cmdline.rst
pypsi.namespace.rst
Expand Down
4 changes: 0 additions & 4 deletions docs/source/pypsi.ansi.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pypsi.ansi - ANSI Escape Code Support
=====================================

.. toctree::
:numbered:


.. automodule:: pypsi.ansi
:members:
4 changes: 0 additions & 4 deletions docs/source/pypsi.cmdline.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
pypsi.cmdline - User input processing
=====================================

.. toctree::
:numbered:
:maxdepth: 2

.. automodule:: pypsi.cmdline


Expand Down
7 changes: 0 additions & 7 deletions docs/source/pypsi.commands.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@ Pypsi Builtin Commands

Pypsi ships with several commands that would be useful for any shell.

.. toctree::
:numbered:
:maxdepth: 2




.. autoclass:: pypsi.commands.echo.EchoCommand
:members:

Expand Down
5 changes: 5 additions & 0 deletions docs/source/pypsi.completers.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pypsi.completers - Core tab completion functions
=================================================

.. automodule:: pypsi.completers
:members:
4 changes: 0 additions & 4 deletions docs/source/pypsi.core.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
pypsi.core - Core classes for pluggable features
================================================

.. toctree::
:numbered:


.. automodule:: pypsi.core


Expand Down
4 changes: 0 additions & 4 deletions docs/source/pypsi.format.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pypsi.format - Stream output formatting
=======================================

.. toctree::
:numbered:


.. automodule:: pypsi.format
:members:
4 changes: 0 additions & 4 deletions docs/source/pypsi.namespace.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pypsi.namespace - Arbitrary attribute storage classes
=====================================================

.. toctree::
:numbered:


.. automodule:: pypsi.namespace
:members:
4 changes: 0 additions & 4 deletions docs/source/pypsi.plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ Pypsi Builtin Plugins

Pypsi ships with several useful plugins that enhance the shell.

.. toctree::
:numbered:
:maxdepth: 2

.. automodule:: pypsi.plugins


Expand Down
6 changes: 0 additions & 6 deletions docs/source/pypsi.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/source/pypsi.shell.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
pypsi.shell - Pypsi Shell
=========================

.. toctree::
:numbered:


.. automodule:: pypsi.shell
:members:

4 changes: 0 additions & 4 deletions docs/source/pypsi.utils.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pypsi.utils - Utility functions
===============================

.. toctree::
:numbered:


.. automodule:: pypsi.utils
:members:
4 changes: 0 additions & 4 deletions docs/source/pypsi.wizard.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
pypsi.wizard - Prompt Wizards
=============================

.. toctree::
:numbered:


.. automodule:: pypsi.wizard
:members:
4 changes: 2 additions & 2 deletions pypsi/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,8 @@ def __call__(self, shell):
def should_continue(self, prev_rc):
'''
:returns: whether this invocation is chained and, using the previous
invocation's return code, determine if the next command in the chain
should be executed.
invocation's return code, determine if the next command in the
chain should be executed.
'''

return (
Expand Down
12 changes: 7 additions & 5 deletions pypsi/completers.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,18 @@ def command_completer(parser, shell, args, prefix, case_sensitive=False):
'''
Completion function that can tab complete options, options' values,
and positional parameters. Shell, args, and prefix should be the same
params as passed to the pypsi.core.Command.complete() function
:param parser: A PypsiArgParser object OR an action object returned
from PypsiArgParser.add_subparsers()
:param pypsi.shell.Shell shell: The current Shell object
params as passed to the :meth:`pypsi.core.Command.complete` function
:param parser: A PypsiArgParser object or an action object returned
from :meth:`PypsiArgParser.add_subparsers`
:param pypsi.shell.Shell shell: The current Shell object
:param list args: The full list of current CLI args
:param str prefix: The partial arg being completed
:param bool case_sensitive: Whether the prefix will be completed
in a case sensitive manner
in a case sensitive manner
:return list: A list of possible options based on the prefix
'''

cmd_parser = None
offset = 0
completions = []
Expand Down
2 changes: 1 addition & 1 deletion pypsi/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def pypsi_print(*args, sep=' ', end='\n', file=None, flush=True, width=None,
'''
Wraps the functionality of the Python builtin `print` function. The
:meth:`pypsi.shell.Shell.bootstrap` overrides the Python :meth:`print`
function with :meth:`pypsi_print`.
function with ``pypsi_print``.
:param str sep: string to print between arguments
:param str end: string to print at the end of the output
Expand Down
1 change: 1 addition & 0 deletions pypsi/shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ def on_tokenize(self, tokens, origin):
def include(self, file):
'''
Read commands from a file and execute them line by line
:param file file: File object to read commands from
:return int: 0 if error free; 1 if an error occurred
'''
Expand Down

0 comments on commit bbab146

Please sign in to comment.