-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from BCDA-APS/30-prettify-the-docs
Make home page of docs prettier
- Loading branch information
Showing
10 changed files
with
128 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
.. _bss_dm: | ||
|
||
APS DM interface to APS IS Scheduling System | ||
============================================ | ||
APS DM interface | ||
================ | ||
|
||
This interface does not require credentials for its use at APS. Fewer proposal | ||
details are available than the :ref:`direct IS interface <bss_is>`. | ||
This APS DM interface to the APS IS Scheduling System does not require | ||
credentials for its use at APS. Fewer proposal details are available than the | ||
:ref:`direct IS interface <bss_is>`. | ||
|
||
.. automodule:: apsbss.bss_dm | ||
:members: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
.. _beamtime_source_docs: | ||
.. _api: | ||
|
||
API | ||
=== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.. _changes: | ||
|
||
.. | ||
CHANGES | ||
======= | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,30 +10,51 @@ apsbss | |
Read-only interface to information from APS Proposal and ESAF (experiment safety | ||
approval form) databases. | ||
|
||
Package Information | ||
------------------- | ||
.. icons: https://fonts.google.com/icons | ||
:full version: |release| | ||
:published: |today| | ||
:copyright: 2017-2025, UChicago Argonne, LLC | ||
:license: ANL OPEN SOURCE LICENSE (see LICENSE.txt file) | ||
:author: Pete R. Jemian <[email protected]> | ||
.. grid:: 2 | ||
|
||
.. grid-item-card:: :material-regular:`install_desktop;3em` :ref:`Install <install>` | ||
|
||
Install the ``apsbss`` package and get started. | ||
|
||
.. grid-item-card:: :material-regular:`apps;3em` :ref:`apsbss_application` | ||
|
||
``apsbss``, the command-line program. | ||
|
||
.. grid-item-card:: :material-regular:`precision_manufacturing;3em` :ref:`apsbss_ioc` | ||
|
||
(optional) The local EPICS IOC. | ||
|
||
.. grid-item-card:: :material-regular:`subscriptions;3em` :ref:`api` | ||
|
||
Source-code documentation. | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:caption: Contents: | ||
:glob: | ||
:hidden: | ||
|
||
install | ||
apsbss | ||
ioc | ||
api/index | ||
|
||
changes | ||
license | ||
|
||
Indices and tables | ||
================== | ||
About | ||
----- | ||
|
||
:home: https://bcda-aps.github.io/apsbss | ||
:source: https://github.com/bcda-aps/apsbss | ||
:full version: |release| | ||
:published: |today| | ||
:revisions: :ref:`History of code changes <changes>` | ||
:copyright: 2017-2025, UChicago Argonne, LLC | ||
:license: :ref:`ANL OPEN SOURCE LICENSE <license>` (see LICENSE.txt file) | ||
:author: Pete R. Jemian <[email protected]> | ||
:index: :ref:`genindex` | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` | ||
.. * :ref:`genindex` | ||
.. * :ref:`modindex` | ||
.. * :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,23 @@ | ||
[build-system] | ||
requires = ["setuptools>=64", "setuptools_scm[toml]>=8"] | ||
build-backend = "setuptools.build_meta" | ||
requires = [ | ||
"setuptools_scm[toml]>=8", | ||
"setuptools>=64", | ||
] | ||
|
||
[project] | ||
name = "apsbss" | ||
description = "Get information from APS Beamline Scheduling System." | ||
authors = [{ name = "Pete Jemian", email = "[email protected]" }] | ||
maintainers = [{ name = "Pete Jemian", email = "[email protected]" }] | ||
dynamic = ["version"] | ||
description = "Get information from APS Beamline Scheduling System." | ||
authors = [ | ||
{ name = "Pete Jemian", email = "[email protected]" } | ||
] | ||
maintainers = [ | ||
{ name = "Pete Jemian", email = "[email protected]" } | ||
] | ||
readme = "README.md" | ||
requires-python = ">=3.9" | ||
keywords = ["APS", "BSS", "ESAF", "Proposal"] | ||
keywords = ["APS", "BSS", "ESAF", "Proposal", "EPICS"] | ||
# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/?highlight=license | ||
license = { file = "LICENSE.txt" } | ||
# https://pypi.org/classifiers/ | ||
|
@@ -58,11 +65,13 @@ dependencies = [ | |
[project.optional-dependencies] | ||
dev = [ | ||
"build", | ||
"caproto", | ||
"coverage", | ||
"ipython", | ||
"isort", | ||
"mypy", | ||
"pre-commit", | ||
"pyepics", | ||
"pytest", | ||
"ruff", | ||
] | ||
|
@@ -80,28 +89,42 @@ doc = [ | |
|
||
all = ["apsbss[dev,doc]"] | ||
|
||
[project.scripts] | ||
apsbss = "apsbss.apsbss:main" | ||
apsbss_makedb = "apsbss.apsbss_makedb:main" | ||
# TODO apsbss_ioc.sh | ||
|
||
[project.urls] | ||
"Homepage" = "https://BCDA-APS.github.io/apsbss" | ||
"Bug Tracker" = "https://github.com/BCDA-APS/apsbss/issues" | ||
|
||
[project.scripts] | ||
apsbss = "apsbss.apsbss:main" | ||
|
||
[tool.black] | ||
line-length = 115 | ||
target-version = ['py311'] | ||
include = '\.pyi?$' | ||
|
||
[tool.copyright] | ||
copyright = "2017-2025, UChicago Argonne, LLC" | ||
|
||
[tool.flake8] | ||
max-line-length = 115 | ||
extend-ignore = ["E226", "E402", "E501", "E741", "F401", "F403", "W503", "W504"] | ||
extend-ignore = [ | ||
"E226", | ||
"E402", # module level import not at top of file (for cansas.py) | ||
"E501", | ||
"E741", | ||
"F401", # imported but unused | ||
"F403", | ||
"W503", | ||
"W504", | ||
] | ||
|
||
[tool.isort] | ||
force_single_line = true | ||
# multi_line_output = 1 | ||
line_length = 115 | ||
force_single_line = "True" | ||
include_trailing_comma = true | ||
multi_line_output = "NOQA" | ||
profile = "black" | ||
src_paths = ["apsbss"] | ||
|
||
[tool.pytest.ini_options] | ||
addopts = ["--import-mode=importlib", "-x"] | ||
|
@@ -137,6 +160,19 @@ indent-width = 4 | |
# Assume Python 3.11 | ||
target-version = "py311" | ||
|
||
[tool.ruff.format] | ||
# Like Black, use double quotes for strings. | ||
quote-style = "double" | ||
|
||
# Like Black, indent with spaces, rather than tabs. | ||
indent-style = "space" | ||
|
||
# Like Black, respect magic trailing commas. | ||
skip-magic-trailing-comma = false | ||
|
||
# Like Black, automatically detect the appropriate line ending. | ||
line-ending = "auto" | ||
|
||
[tool.ruff.lint] | ||
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. | ||
select = [ | ||
|
@@ -195,23 +231,12 @@ dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$" | |
[tool.ruff.lint.isort] | ||
force-single-line = true # Enforces single-line imports | ||
|
||
[tool.ruff.format] | ||
# Like Black, use double quotes for strings. | ||
quote-style = "double" | ||
|
||
# Like Black, indent with spaces, rather than tabs. | ||
indent-style = "space" | ||
|
||
# Like Black, respect magic trailing commas. | ||
skip-magic-trailing-comma = false | ||
|
||
# Like Black, automatically detect the appropriate line ending. | ||
line-ending = "auto" | ||
|
||
[tool.setuptools] | ||
package-dir = { "apsbss" = "apsbss" } | ||
# package-dir = { "apsbss" = "apsbss" } | ||
py-modules = ["apsbss"] | ||
|
||
[tool.setuptools.package-data] | ||
"*" = ["*.yml"] | ||
|
||
[tool.setuptools_scm] | ||
write_to = "apsbss/_version.py" |