Skip to content

Commit e0834cb

Browse files
authored
Updated Documentation (#14)
* Updated Gitignore * Big Documentation Update * New doc test github action * Update sphinx packages * Update github action * Another githuh action fix
1 parent 4d04417 commit e0834cb

26 files changed

Lines changed: 1185 additions & 25 deletions

.github/workflows/Build_Deploy_Docs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
run: poetry run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
2929
- name: Upload build log
3030
uses: actions/upload-artifact@v4.6.2
31+
if: always()
3132
with:
3233
name: sphinx-build-log
3334
path: sphinx_build.log
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Test Build Docs
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
- main
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.12'
22+
23+
- name: Install Poetry
24+
run: |
25+
curl -sSL https://install.python-poetry.org | python -
26+
echo "${HOME}/.local/bin" >> $GITHUB_PATH
27+
28+
- name: Install dependencies
29+
run: poetry install --with doc
30+
31+
- name: Build documentation
32+
run: poetry run sphinx-build -b html docsrc/ docsrc/_build/html > sphinx_build.log 2>&1
33+
- name: Upload build log
34+
uses: actions/upload-artifact@v4.6.2
35+
if: always()
36+
with:
37+
name: sphinx-build-log
38+
path: sphinx_build.log
39+

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ venv/
105105
ENV/
106106
env.bak/
107107
venv.bak/
108+
.venv*
108109

109110
# Spyder project settings
110111
.spyderproject
@@ -125,3 +126,7 @@ dmypy.json
125126
.pyre/
126127

127128
.DS_Store
129+
130+
poetry.lock
131+
132+
docsrc/auto_examples/

citation.rst

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
Citation
2+
--------
3+
4+
Citation of scientific software is important to give credit to the developers and to help track the impact of the software in research.
5+
6+
To cite PyEPR in publications, please currently use the Zenodo general DOI:
7+
8+
.. image:: https://zenodo.org/badge/888368760.svg
9+
:target: https://doi.org/10.5281/zenodo.17107010
10+
:alt: DOI
11+
12+
Specific PyEPR versions will also have uniquie DOIs that can be found on the respective Zenodo release page.
13+
The associated Zotero entry is available `here <https://doi.org/10.5281/zenodo.17107010>`_.
14+
15+
A paper describing PyEPR is currently in preparation and will be linked here once published.
16+
17+
Bibtex Entry
18+
++++++++++++
19+
20+
.. code-block:: bibtex
21+
22+
@software{pyepr_2025,
23+
author = {Hugo, Karas and
24+
Jeschke, Gunnar and
25+
Stoll, Stefan},
26+
title = {JeschkeLab/PyEPR: Version 1.0},
27+
month = sep,
28+
year = 2025,
29+
publisher = {Zenodo},
30+
version = {v1.0},
31+
doi = {10.5281/zenodo.17107011},
32+
url = {https://doi.org/10.5281/zenodo.17107011},
33+
swhid = {swh:1:dir:d3ae7fdd8041eb365003ea3e40db8bbb31a6c741
34+
;origin=https://doi.org/10.5281/zenodo.17107010;vi
35+
sit=swh:1:snp:5c1894da8cabcaf89397959130c3ff4badea
36+
5b87;anchor=swh:1:rel:316cb6fc9c055bd7058460f5559a
37+
8342d326ebd4;path=JeschkeLab-PyEPR-c194a75
38+
},
39+
}

docsrc/API_docs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ Analysis Modules
1919
.. autoapisummary::
2020

2121
pyepr.FieldSweepAnalysis
22+
pyepr.HahnEchoRelaxationAnalysis
2223
pyepr.ResonatorProfileAnalysis
2324
pyepr.CarrPurcellAnalysis
2425
pyepr.ReptimeAnalysis
@@ -29,7 +30,7 @@ Sequences
2930
.. autoapisummary::
3031

3132
pyepr.sequences.HahnEchoSequence
32-
pyepr.sequences.T2RelaxationSequence
33+
pyepr.sequences.HahnEchoRelaxationSequence
3334
pyepr.sequences.FieldSweepSequence
3435
pyepr.sequences.ReptimeScan
3536
pyepr.sequences.CarrPurcellSequence
@@ -44,7 +45,6 @@ Pulses
4445

4546
pyepr.pulses.Pulse
4647
pyepr.pulses.Detection
47-
pyepr.pulses.Delay
4848
pyepr.pulses.RectPulse
4949
pyepr.pulses.GaussianPulse
5050
pyepr.pulses.HSPulse

docsrc/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
To build the documentation and serve it with live reloading, run:
4+
```
5+
sphinx-autobuild docsrc docsrc/_build/html
6+
```

docsrc/_static/Hardware_Interface_Diagram.svg

Lines changed: 583 additions & 0 deletions
Loading

docsrc/citation.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.. include:: ../citation.rst

docsrc/conf.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,16 @@
2121
# https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
2222

2323
extensions = ['sphinx.ext.viewcode',
24+
'sphinx_design',
25+
'myst_parser',
2426
'sphinx.ext.intersphinx',
2527
'autoapi.extension',
2628
'sphinx_toolbox.collapse',
2729
'sphinx_toolbox.code',
2830
'sphinx_copybutton',
2931
'numpydoc',
30-
'sphinx_favicon']
32+
'sphinx_favicon',
33+
'sphinx_gallery.gen_gallery']
3134

3235
templates_path = ['_templates']
3336
exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
@@ -44,6 +47,10 @@
4447
autoapi_python_use_implicit_namespaces = True
4548
autoapi_own_page_level = 'class'
4649

50+
sphinx_gallery_conf = {
51+
'examples_dirs': 'examples', # path to your example scripts
52+
'gallery_dirs': 'auto_examples', # path to where to save gallery generated output
53+
}
4754

4855
# -- Options for HTML output -------------------------------------------------
4956
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output

docsrc/dataset.rst

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)