Skip to content

Commit

Permalink
Reformat library reference (etingof#19)
Browse files Browse the repository at this point in the history
* refactor and update api docs

* examples added to docs
  • Loading branch information
etingof authored Nov 12, 2017
1 parent d608898 commit a602b43
Show file tree
Hide file tree
Showing 47 changed files with 594 additions and 294 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Revision 0.2.2, XX-11-2017
--------------------------

No changes yet
- Library documentation refactored and updated

Revision 0.2.1, 11-11-2017
--------------------------
Expand Down
4 changes: 2 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,8 +315,8 @@
autoclass_content = 'both'

# Napoleon settings
napoleon_google_docstring = False
napoleon_numpy_docstring = True
napoleon_google_docstring = True
napoleon_numpy_docstring = False
napoleon_include_private_with_doc = False
napoleon_include_special_with_doc = True
napoleon_use_admonition_for_examples = False
Expand Down
179 changes: 0 additions & 179 deletions docs/source/developer-documentation.rst

This file was deleted.

8 changes: 4 additions & 4 deletions docs/source/documentation.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

Documentation
=============
PySMI documentation
===================

PySMI library is highly modular. The top-level component is called
*compiler* and it acts as main user-facing object. Most of other
Expand Down Expand Up @@ -41,5 +41,5 @@ chosen and configured to compiler.
.. toctree::
:maxdepth: 2

/user-perspective
/developer-documentation
/mibdump
/library-reference
11 changes: 11 additions & 0 deletions docs/source/examples/always-borrow-precompiled-pysnmp-files.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/always-borrow-precompiled-pysnmp-files.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/always-borrow-precompiled-pysnmp-files.py
:start-after: """#
:language: python

:download:`Download</../../examples/always-borrow-precompiled-pysnmp-files.py>` script.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/borrow-precompiled-pysnmp-files-on-failure.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/borrow-precompiled-pysnmp-files-on-failure.py
:start-after: """#
:language: python

:download:`Download</../../examples/borrow-precompiled-pysnmp-files-on-failure.py>` script.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/compile-smistar-mibs-into-pysnmp-files-if-needed.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/compile-smistar-mibs-into-pysnmp-files-if-needed.py
:start-after: """#
:language: python

:download:`Download</../../examples/compile-smistar-mibs-into-pysnmp-files-if-needed.py>` script.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/compile-smiv2-mibs-from-text-into-pysnmp-code.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/compile-smiv2-mibs-from-text-into-pysnmp-code.py
:start-after: """#
:language: python

:download:`Download</../../examples/compile-smiv2-mibs-from-text-into-pysnmp-code.py>` script.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/download-and-compile-smistar-mibs-into-json.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/download-and-compile-smistar-mibs-into-json.py
:start-after: """#
:language: python

:download:`Download</../../examples/download-and-compile-smistar-mibs-into-json.py>` script.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

.. include:: /../../examples/download-and-compile-smistar-mibs-into-pysnmp-files.py
:start-after: """
:end-before: """#

.. literalinclude:: /../../examples/download-and-compile-smistar-mibs-into-pysnmp-files.py
:start-after: """#
:language: python

:download:`Download</../../examples/download-and-compile-smistar-mibs-into-pysnmp-files.py>` script.

Loading

0 comments on commit a602b43

Please sign in to comment.