Skip to content

Commit

Permalink
Merge f787bd3 into 047daf4
Browse files Browse the repository at this point in the history
  • Loading branch information
prjemian committed Apr 5, 2024
2 parents 047daf4 + f787bd3 commit 302301f
Show file tree
Hide file tree
Showing 20 changed files with 246 additions and 142 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
- name: Install Sphinx build requirements
run: |
pip install -r requirements-sphinx.txt setuptools-scm
pip install -r docs/requirements.txt
- name: Install our package
run: |
Expand Down
1 change: 1 addition & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Maintenance

* Code format conforms to 'ruff'.
* Add additional support for APS Data Management API.
* Make the home page more concise.
* Refactor packaging from setup.py to pyproject.toml.

1.6.18
Expand Down
1 change: 1 addition & 0 deletions requirements-sphinx.txt → docs/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ pygments >=2.12
pygments-ipython-console
setuptools-scm
sphinx <6
sphinx-design
9 changes: 4 additions & 5 deletions docs/source/api/_callbacks.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
====================================
Callbacks (includes File Writers)
====================================
.. _callbacks:

=========
Callbacks
------------
=========

.. automodule:: apstools.callbacks.doc_collector
:members:
Expand All @@ -16,4 +15,4 @@ Callbacks
File Writers
------------

See the :ref:`filewriters` section.
:ref:`filewriters` are a specialized type of callback.
3 changes: 2 additions & 1 deletion docs/source/api/_filewriters.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
.. _filewriters:

============
File Writers
------------
============

The file writer callbacks are:

Expand Down
2 changes: 2 additions & 0 deletions docs/source/api/_plans.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _plans:

===========
Plans
===========
Expand Down
2 changes: 2 additions & 0 deletions docs/source/api/_utils.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _utilities:

==========
Utilities
==========
Expand Down
28 changes: 28 additions & 0 deletions docs/source/api/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,34 @@ API Documentation
.. toctree::
:maxdepth: 2
:glob:
:hidden:

_*
synApps/index

.. icons: https://fonts.google.com/icons
.. grid:: 2

.. grid-item-card:: :ref:`callbacks`

Receive *documents* from the bluesky RunEngine.

.. grid-item-card:: :ref:`devices`

Ophyd-style Devices for the APS.

.. grid-item-card:: :ref:`filewriters`

Specialized callbacks to write data in custom formats.

.. grid-item-card:: :ref:`plans`

Customize your measurement procedures.

.. grid-item-card:: :ref:`utilities`

Python code to assist measurement, data exploration, and the user experience.

.. grid-item-card:: :ref:`synApps`

Ophyd-style support for common EPICS structures, including *synApps*.
2 changes: 2 additions & 0 deletions docs/source/changes.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.. _changes:

..
CHANGES
=======
Expand Down
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@
sphinx.ext.viewcode
nbsphinx
myst_parser
sphinx_design
""".split()
myst_enable_extensions = ["colon_fence"]

templates_path = ["_templates"]
source_suffix = [".rst", ".md"]
Expand All @@ -81,6 +83,7 @@
]
html_static_path = ["_static"]
html_theme = "pydata_sphinx_theme"
html_title = f"{project} {version}"
# fmt: off
html_theme_options = {
"navbar_start": ["navbar-logo", "version-switcher"],
Expand Down
11 changes: 11 additions & 0 deletions docs/source/examples/device_examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _examples.devices:

===============
Device Examples
===============

.. toctree::
:maxdepth: 2
:glob:

de_*
25 changes: 25 additions & 0 deletions docs/source/examples/download_examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. _examples.downloads:

===============================
File Downloads for the Examples
===============================

Jupyter notebooks and files for the :ref:`examples` are available for download:

* jupyter notebook: :download:`de_0_adsim_hdf5_basic <de_0_adsim_hdf5_basic.ipynb>`
* jupyter notebook: :download:`de_1_adsim_hdf5_custom_names <de_1_adsim_hdf5_custom_names.ipynb>`
* jupyter notebook: :download:`de_2_adsim_hdf5_single_mode <de_2_adsim_hdf5_single_mode.ipynb>`

* jupyter notebook: :download:`pl_excel_scan <pl_excel_scan.ipynb>`

* :download:`sample_example.xlsx <sample_example.xlsx>`

* jupyter notebook: :download:`pl_nscan <pl_nscan.ipynb>`
* jupyter notebook: :download:`pl_tuneaxis <pl_tuneaxis.ipynb>`
* jupyter notebook: :download:`fw_specfile_example <fw_specfile_example.ipynb>`

* :download:`spec1.dat <../resources/spec1.dat>`
* :download:`spec2.dat <../resources/spec2.dat>`
* :download:`spec3.dat <../resources/spec3.dat>`
* :download:`spec_tunes.dat <../resources/spec_tunes.dat>`
* :download:`test_specdata.txt <../resources/test_specdata.txt>`
11 changes: 11 additions & 0 deletions docs/source/examples/filewriter_examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _examples.filewriters:

====================
File Writer Examples
====================

.. toctree::
:maxdepth: 2
:glob:

fw_*
11 changes: 11 additions & 0 deletions docs/source/examples/howto_examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _examples.howto:

====================
How-To Examples
====================

.. toctree::
:maxdepth: 2
:glob:

ho_*
89 changes: 43 additions & 46 deletions docs/source/examples/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,70 +10,67 @@ for the APS. Further, NSLS-II provides online notebooks which can be
`executed online <https://try.nsls2.bnl.gov>`__ (in a web browser).
See the `Bluesky home page <https://blueskyproject.io/>`__ for more details.

.. Consider writing new content in one of these categories:
.. Consider re-organizing and writing new content in one of these categories:
Tutorials
How-to guides
Reference
Explanation
Devices
++++++++++++++++++++++++++++++++++++
.. icons: https://fonts.google.com/icons
.. grid:: 2

.. toctree::
:maxdepth: 2
:glob:
.. grid-item-card:: :material-regular:`precision_manufacturing;3em` Devices
:link: device_examples
:link-type: doc

de_*
.. toctree::
:maxdepth: 1
:glob:
:hidden:

File Writers
++++++++++++++++++++++++++++++++++++
device_examples

.. toctree::
:maxdepth: 2
:glob:
.. grid-item-card:: :material-regular:`save;3em` File Writers
:link: filewriter_examples
:link-type: doc

fw_*
.. toctree::
:maxdepth: 1
:glob:
:hidden:

How-to Guides
++++++++++++++++++++++++++++++++++++
filewriter_examples

.. toctree::
:maxdepth: 2
:glob:
.. grid-item-card:: :material-regular:`how_to_reg;3em` How-To
:link: howto_examples
:link-type: doc

ho_*
.. toctree::
:maxdepth: 1
:glob:
:hidden:

Plans
++++++++++++++++++++++++++++++++++++
howto_examples

.. toctree::
:maxdepth: 2
:glob:
.. grid-item-card:: :material-regular:`task;3em` Plans
:link: plan_examples
:link-type: doc

pl_*
.. toctree::
:maxdepth: 1
:glob:
:hidden:

.. _examples_downloads:
plan_examples

File Downloads for the Examples
++++++++++++++++++++++++++++++++++++
.. grid-item-card:: :material-regular:`download;3em` Downloads
:link: download_examples
:link-type: doc

The jupyter notebooks and files related to this section may be downloaded from the following table.
.. toctree::
:maxdepth: 1
:glob:
:hidden:

* jupyter notebook: :download:`de_0_adsim_hdf5_basic <de_0_adsim_hdf5_basic.ipynb>`
* jupyter notebook: :download:`de_1_adsim_hdf5_custom_names <de_1_adsim_hdf5_custom_names.ipynb>`
* jupyter notebook: :download:`de_2_adsim_hdf5_single_mode <de_2_adsim_hdf5_single_mode.ipynb>`

* jupyter notebook: :download:`pl_excel_scan <pl_excel_scan.ipynb>`

* :download:`sample_example.xlsx <sample_example.xlsx>`

* jupyter notebook: :download:`pl_nscan <pl_nscan.ipynb>`
* jupyter notebook: :download:`pl_tuneaxis <pl_tuneaxis.ipynb>`
* jupyter notebook: :download:`fw_specfile_example <fw_specfile_example.ipynb>`

* :download:`spec1.dat <../resources/spec1.dat>`
* :download:`spec2.dat <../resources/spec2.dat>`
* :download:`spec3.dat <../resources/spec3.dat>`
* :download:`spec_tunes.dat <../resources/spec_tunes.dat>`
* :download:`test_specdata.txt <../resources/test_specdata.txt>`
download_examples
2 changes: 1 addition & 1 deletion docs/source/examples/pl_run_command_list.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ See :func:`~apstools.plans.parse_text_command_file()` for more details.
Spreadsheet Command File
------------------------

Follow the example spreadsheet (in the :ref:`examples_downloads` section)
Follow the example spreadsheet (in the :ref:`examples.downloads` section)
and accompanying Jupyter notebook [#]_ to write your own ``Excel_plan()``.

.. [#] https://github.com/BCDA-APS/apstools/blob/master/docs/source/resources/excel_scan.ipynb
Expand Down
11 changes: 11 additions & 0 deletions docs/source/examples/plan_examples.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.. _examples.plans:

====================
Plan Examples
====================

.. toctree::
:maxdepth: 2
:glob:

pl_*
Loading

0 comments on commit 302301f

Please sign in to comment.