Updated docs to include plugins
This commit is contained in:
parent
2ef6395be2
commit
034a45e400
6 changed files with 21 additions and 3 deletions
|
|
@ -7,6 +7,7 @@ Welcome to OpenFlexure Microscope Software's documentation!
|
|||
|
||||
microscope.rst
|
||||
camera.rst
|
||||
plugins.rst
|
||||
api.rst
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ Microscope class
|
|||
:maxdepth: 2
|
||||
:caption: Contents:
|
||||
|
||||
.. automodule:: openflexure_microscope.microscope
|
||||
.. automodule:: openflexure_microscope
|
||||
:members:
|
||||
11
docs/source/plugins.rst
Normal file
11
docs/source/plugins.rst
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Plugin System
|
||||
=============
|
||||
|
||||
.. automodule:: openflexure_microscope.plugins
|
||||
:members:
|
||||
|
||||
Example Plugin
|
||||
--------------
|
||||
|
||||
.. automodule:: openflexure_microscope.plugins.default.test_plugin
|
||||
:members:
|
||||
|
|
@ -1,3 +1,4 @@
|
|||
from .microscope import Microscope
|
||||
|
||||
__all__ = ['Microscope']
|
||||
__version__ = "0.1.0"
|
||||
|
||||
from .microscope import Microscope
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
__all__ = ['search_plugin_dirs', 'find_plugins', 'load_plugin', 'PluginMount', 'MicroscopePlugin']
|
||||
|
||||
from .loader import search_plugin_dirs, find_plugins, load_plugin, PluginMount, MicroscopePlugin
|
||||
|
|
@ -21,6 +21,9 @@ class OtherPlugin(MicroscopePlugin):
|
|||
An example of a second Microscope plugin, loaded from the same plugin file.
|
||||
"""
|
||||
def run(self):
|
||||
"""
|
||||
Demonstrate access to Microscope.camera, and Microscope.stage
|
||||
"""
|
||||
print("Stage plugin parent stage:")
|
||||
print(self.stage)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue