Skip to content

Commit

Permalink
fix formatting + add requirements for docs build
Browse files Browse the repository at this point in the history
  • Loading branch information
nikolasibalic committed May 19, 2024
1 parent c0aa6a7 commit 475a9cc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
3 changes: 1 addition & 2 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ sphinx:

python:
install:
- method: pip
path: .
- requirements: doc/requirements.txt
6 changes: 3 additions & 3 deletions doc/AC_Stark_primer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
" lmax,\n",
" edN=1,\n",
" progressOutput=False,\n",
" debugOutput=False\n",
" debugOutput=False,\n",
" )\n",
" m.defineShirleyHamiltonian(fn=1)\n",
" m.diagonalise(Efields, freq, progressOutput=True)\n",
Expand Down Expand Up @@ -348,7 +348,7 @@
" lmax,\n",
" edN=1,\n",
" progressOutput=False,\n",
" debugOutput=False\n",
" debugOutput=False,\n",
")\n",
"calc.defineShirleyHamiltonian(fn=1)\n",
"calc.diagonalise(Efields, freqs, progressOutput=True)"
Expand Down Expand Up @@ -962,7 +962,7 @@
" lmax,\n",
" edN=1,\n",
" progressOutput=False,\n",
" debugOutput=False\n",
" debugOutput=False,\n",
")\n",
"calc_rwa.findDipoleCoupledStates(debugOutput=True)\n",
"calc_rwa.makeRWA(eField, freqs)"
Expand Down
12 changes: 5 additions & 7 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@

import sys
import os

from mock import Mock as MagicMock

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

matplotlib.use("agg")

html_extra_path = ["./_static/"]

from mock import Mock as MagicMock


class Mock(MagicMock):
@classmethod
Expand Down Expand Up @@ -172,7 +170,7 @@ def __getattr__(cls, name):

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
##html_theme = 'alabaster'
# html_theme = 'alabaster'

# import sphinx_rtd_theme

Expand Down Expand Up @@ -316,9 +314,9 @@ def __getattr__(cls, name):
# The paper size ('letterpaper' or 'a4paper').
"papersize": "a4paper",
# The font size ('10pt', '11pt' or '12pt').
#'pointsize': '10pt',
# 'pointsize': '10pt',
# Additional stuff for the LaTeX preamble.
#'preamble': '',
# 'preamble': '',
# Latex figure (float) alignment
"figure_align": "htbp",
}
Expand Down
3 changes: 2 additions & 1 deletion doc/math_and_io_primitives.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ as well as commonly used input/output functions.
:maxdepth: 2

numerics_and_io
angular_algebra
angular_algebra

0 comments on commit 475a9cc

Please sign in to comment.