wiki:ReStructuredText

Version 2 (modified by mitar, 4 years ago) (diff)

Examples

Add list of base classes

  .. autoclass:: Orange.network.Network
     :members:
     :show-inheritance:

Hyperlink inside documentation text:

   `name of the link <http://...>`_

References to objects within the same documentation page:

   Calls methods for :obj:`Solver` for training.

Indexing:

  .. index:: naive Bayes classifier, k-nearest neighbors
  .. index::
     single: classification; support vector machines (SVM)
  .. index::
     pair: sorting; bubble

Admonitions (attention, caution, danger, error, hint, important, note, tip, warning):

  .. note::
     Python list indexes start with 0!

 Latex equations, inline or stand-alone:

  A famous formula :math:`E=mc^2` is faulty! See:
  .. math::
     \nabla \cdot E = \frac{1}{\epsilon_0} \rho

Code:

  .. literalinclude:: code/kmeans-silhouette.py

  .. literalinclude:: code/example.py
      :lines: 1,3,5-10,20-

Titles not appearing in the table of contents:

  .. rubric:: Examples

Images:

  .. image:: python_win.*
     :alt: Orange in PythonWin

Exclude methods:

  .. autoclass:: Orange.network.NetworkOptimization
     :members:
     :exclude-members: collapse