Skip to content

Commit

Permalink
plugin user API snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Sep 6, 2023
1 parent c8dce87 commit 2344ef3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
'sphinx.ext.napoleon',
'sphinx_automodapi.automodapi',
'sphinx.ext.mathjax',
'sphinx_design']
'sphinx_design',
'sphinx-togglebutton']

# Add any paths that contain templates here, relative to this directory.
# templates_path = ['_templates']
Expand Down
9 changes: 9 additions & 0 deletions docs/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ can be disabled through the plugin settings.
* :meth:`lightkurve.LightCurve.flatten`


.. note::
:class: dropdown

.. code-block:: python
flatten = lcviz.plugins['Flatten']
flatten.open_in_tray()
.. _frequency_analysis:

Frequency Analysis
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ test = [
]
docs = [
"sphinx-astropy[confv2]>=1.9.1",
"sphinx_design"
"sphinx_design",
"sphinx-togglebutton"
]

[build-system]
Expand Down

0 comments on commit 2344ef3

Please sign in to comment.