Skip to content

Commit 475a9cc

Browse files
committed
fix formatting + add requirements for docs build
1 parent c0aa6a7 commit 475a9cc

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.readthedocs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,4 @@ sphinx:
1111

1212
python:
1313
install:
14-
- method: pip
15-
path: .
14+
- requirements: doc/requirements.txt

doc/AC_Stark_primer.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
" lmax,\n",
187187
" edN=1,\n",
188188
" progressOutput=False,\n",
189-
" debugOutput=False\n",
189+
" debugOutput=False,\n",
190190
" )\n",
191191
" m.defineShirleyHamiltonian(fn=1)\n",
192192
" m.diagonalise(Efields, freq, progressOutput=True)\n",
@@ -348,7 +348,7 @@
348348
" lmax,\n",
349349
" edN=1,\n",
350350
" progressOutput=False,\n",
351-
" debugOutput=False\n",
351+
" debugOutput=False,\n",
352352
")\n",
353353
"calc.defineShirleyHamiltonian(fn=1)\n",
354354
"calc.diagonalise(Efields, freqs, progressOutput=True)"
@@ -962,7 +962,7 @@
962962
" lmax,\n",
963963
" edN=1,\n",
964964
" progressOutput=False,\n",
965-
" debugOutput=False\n",
965+
" debugOutput=False,\n",
966966
")\n",
967967
"calc_rwa.findDipoleCoupledStates(debugOutput=True)\n",
968968
"calc_rwa.makeRWA(eField, freqs)"

doc/conf.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,17 @@
1414

1515
import sys
1616
import os
17-
17+
from mock import Mock as MagicMock
1818

1919
sys.path.insert(0, os.path.abspath(".."))
2020
# resolve problem with not having _tkinter on server used for documentation building
2121
autodoc_mock_imports = ["_tkinter"]
22-
import matplotlib
22+
import matplotlib # noqa: E402
2323

2424
matplotlib.use("agg")
2525

2626
html_extra_path = ["./_static/"]
2727

28-
from mock import Mock as MagicMock
29-
3028

3129
class Mock(MagicMock):
3230
@classmethod
@@ -172,7 +170,7 @@ def __getattr__(cls, name):
172170

173171
# The theme to use for HTML and HTML Help pages. See the documentation for
174172
# a list of builtin themes.
175-
##html_theme = 'alabaster'
173+
# html_theme = 'alabaster'
176174

177175
# import sphinx_rtd_theme
178176

@@ -316,9 +314,9 @@ def __getattr__(cls, name):
316314
# The paper size ('letterpaper' or 'a4paper').
317315
"papersize": "a4paper",
318316
# The font size ('10pt', '11pt' or '12pt').
319-
#'pointsize': '10pt',
317+
# 'pointsize': '10pt',
320318
# Additional stuff for the LaTeX preamble.
321-
#'preamble': '',
319+
# 'preamble': '',
322320
# Latex figure (float) alignment
323321
"figure_align": "htbp",
324322
}

doc/math_and_io_primitives.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ as well as commonly used input/output functions.
99
:maxdepth: 2
1010

1111
numerics_and_io
12-
angular_algebra
12+
angular_algebra
13+

0 commit comments

Comments
 (0)