Skip to content

Commit

Permalink
Merge pull request #1366 from ddebrunner/toc_docs_1
Browse files Browse the repository at this point in the history
Remove toc from modules and signatures from autosummaries.
  • Loading branch information
ddebrunner committed Dec 21, 2017
2 parents c4fda97 + e4013f7 commit d3b900b
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 51 deletions.
5 changes: 0 additions & 5 deletions com.ibm.streamsx.topology/opt/python/packages/streamsx/ec.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"""
Access to the IBM Streams execution context.
.. toctree::
:maxdepth: 4
streamsx.ec
Overview
########
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Copyright IBM Corp. 2016,2017

"""
Python API that wraps the REST apis for IBM® Streams
& IBM Streaming Analytics service on IBM Bluemix®.
REST API bindings for IBM® Streams
& IBM Streaming Analytics service on IBM Cloud.
Streams REST API
################
Expand Down Expand Up @@ -36,6 +36,9 @@
`Streaming Analytics REST API <https://console.ng.bluemix.net/apidocs/220-streaming-analytics?&language=node#introduction>`_
Reference documentation for the Streaming Analytics service REST API.
Module contents
###############
"""

import os
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
# coding=utf-8
# Licensed Materials - Property of IBM
# Copyright IBM Corp. 2016,2017

"""
Primitive objects for REST bindings.
Overview
########
Contains classes representing primitive Streams objects, such as
:py:class:`Instance`, :py:class:`Job`, :py:class:`PE`, etc.
Module contents
###############
"""

import logging
import requests
import queue
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"""
Integration of SPL operators.
.. toctree::
:maxdepth: 4
streamsx.spl.op
Invoking SPL Operators
++++++++++++++++++++++
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"""
SPL Python primitive operators.
.. toctree::
:maxdepth: 4
streamsx.spl.spl
Overview
========
SPL primitive operators that call a Python function or
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
"""
SPL toolkit integration.
.. toctree::
:maxdepth: 4
streamsx.spl.toolkit
Overview
########
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"""
SPL type definitions.
.. toctree::
:maxdepth: 4
streamsx.spl.types
Overview
########
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
Context for submission of applications.
.. toctree::
:maxdepth: 4
streamsx.topology.context
Overview
========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
"""
Schemas for streams.
.. toctree::
:maxdepth: 4
streamsx.topology.schema
Overview
========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@
Testing support for streaming applications.
.. toctree::
:maxdepth: 4
streamsx.topology.tester
Overview
========
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
"""
Streaming application definition.
.. toctree::
:maxdepth: 4
streamsx.topology.topology
Overview
########
Expand Down
2 changes: 1 addition & 1 deletion python/sphinx/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build
source/generated
source/streamsx.*.rst
40 changes: 40 additions & 0 deletions python/sphinx/source/_templates/streamsx_module.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{{ fullname | escape | underline}}

.. automodule:: {{ fullname }}

{% block functions %}
{% if functions %}
.. rubric:: Functions

.. autosummary::
:nosignatures:
{% for item in functions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block classes %}
{% if classes %}
.. rubric:: Classes

.. autosummary::
:nosignatures:
{% for item in classes %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

{% block exceptions %}
{% if exceptions %}
.. rubric:: Exceptions

.. autosummary::
:nosignatures:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}

9 changes: 6 additions & 3 deletions python/sphinx/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ use of existing IBM Streams toolkits.
See :py:mod:`~streamsx.topology`

.. autosummary::
:toctree: generated
:toctree: .
:template: streamsx_module.rst

streamsx.topology
streamsx.topology.topology
Expand All @@ -51,7 +52,8 @@ SPL (Streams Processing Language) is a domain specific language for streaming
analytics supported by Streams.

.. autosummary::
:toctree: generated
:toctree: .
:template: streamsx_module.rst

streamsx.spl.spl

Expand All @@ -65,7 +67,8 @@ service through HTTPS REST APIs.
========

.. autosummary::
:toctree: generated
:toctree: .
:template: streamsx_module.rst

streamsx.rest
streamsx.rest_primitives
Expand Down

0 comments on commit d3b900b

Please sign in to comment.