Skip to content

Commit 2ea6d3f

Browse files
committed
added notebooks in how to section. changed theme
1 parent 9a82966 commit 2ea6d3f

File tree

3 files changed

+61
-28
lines changed

3 files changed

+61
-28
lines changed

docs/conf.py

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,17 @@
4848
'sphinx.ext.doctest',
4949
'sphinx.ext.todo',
5050
'sphinx.ext.coverage',
51-
# 'sphinx.ext.mathjax',
51+
'sphinx.ext.mathjax',
5252
'sphinx.ext.viewcode',
5353
'sphinx.ext.githubpages',
5454
'sphinx.ext.napoleon',
5555
'sphinx.ext.autosectionlabel',
5656
'sphinx.ext.autosummary',
57+
# 'nbsphinx'
58+
'myst_nb',
59+
# 'sphinx.ext.intersphinx',
60+
# 'sphinx_copybutton',
61+
# 'sphinx_design'
5762
]
5863
autosectionlabel_prefix_document = True
5964
autosectionlabel_maxdepth = 2
@@ -111,7 +116,9 @@
111116
# The theme to use for HTML and HTML Help pages. See the documentation for
112117
# a list of builtin themes.
113118
#
114-
html_theme = 'classic'
119+
120+
# html_theme = 'classic'
121+
html_theme = "pydata_sphinx_theme"
115122

116123
# Theme options are theme-specific and customize the look and feel of a theme
117124
# further. For a list of options available for each theme, see the
@@ -120,11 +127,16 @@
120127
'collapse_navigation': False,
121128
'display_version': True,
122129
'logo_only': True,
123-
'navigation_depth': 2,
124-
"rightsidebar": "false",
130+
'navigation_depth': 6,
131+
"rightsidebar": True,
125132
"relbarbgcolor": "black"
126133
}
127134

135+
html_sidebars = {
136+
"index": [],
137+
"common/about": [],
138+
}
139+
128140

129141
# Name of an image file (path relative to the configuration directory)
130142
# that is the logo of the docs, or URL that points an image file for the logo.
@@ -231,4 +243,17 @@
231243
# at building time. Here used to have PyQT mocked.
232244
autodoc_mock_imports = ['PyQt5', 'PyQt5.QtGui', 'PyQt5.QtCore', 'PyQt5.QtWidgets',
233245
"matplotlib.backends.backend_qt5agg",
234-
]
246+
]
247+
248+
# -- Options for the myst markdown parser ------------------------------------
249+
250+
myst_enable_extensions = [
251+
"attrs_inline",
252+
"colon_fence",
253+
"dollarmath",
254+
"replacements",
255+
"deflist",
256+
]
257+
myst_heading_anchors = 3
258+
nb_execution_mode = "off" #"auto"
259+
nb_execution_allow_errors = True

docs/index.rst

Lines changed: 28 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
pyAML documentation
2-
======================================
3-
4-
.. contents:: Table of Contents
5-
:depth: 3
6-
2+
===================
3+
74
Introduction
8-
------------------------
5+
------------
96

107
python Accelerator Middle Layer (pyAML) is a joint technology platform to develop common tools for control, tuning and development of storage rings, beam transport lines and linear accelerators.
118

@@ -20,25 +17,45 @@ With pyAML, it WILL be possible to (the software is at conceptualization stage):
2017
- many more features
2118

2219
Installation
23-
------------------------
20+
------------
2421
pip support will be provided later.
2522
for the time being:
2623

2724
git clone https://github.com/python-accelerator-middle-layer/pyaml.git
2825

2926

27+
Documentation
28+
-------------
29+
30+
.. toctree::
31+
:maxdepth: 1
32+
:caption: How to:
33+
:glob:
34+
35+
Load a configuration file <notebooks/load_configuration>
36+
Switch design live <notebooks/live_design>
37+
Select a control system <notebooks/control_system>
38+
39+
.. toctree::
40+
:caption: Modules:
41+
:maxdepth: 1
42+
:glob:
43+
44+
modules/*
45+
46+
3047
Collaboration community
3148
------------------------
3249

3350
Discussion
34-
~~~~~~~~~~~~~~~~~~~~~~~~
51+
~~~~~~~~~~
3552

3653
`Mattermost <https://mattermost.hzdr.de/accelerator-middle-layer/channels/town-square>`_
3754

3855
(please log in using Helmoltz ID, you will be prompt to access with your own lab/university credentials)
3956

4057
Shared documents
41-
~~~~~~~~~~~~~~~~~~~~~~~~
58+
~~~~~~~~~~~~~~~~
4259

4360
to access the shared documents please ask S.Liuzzo for access rigths.
4461

@@ -48,23 +65,13 @@ https://www.overleaf.com/read/hnrqzhfpbvpp#ef8935
4865
to be added to editors list please write to S.Liuzzo
4966

5067
Mailing list:
51-
~~~~~~~~~~~~~~~~~~~~~~~~
68+
~~~~~~~~~~~~~
5269
to be added to the pyAML mailing list please write to S.Liuzzo
5370

5471

55-
Documentation
56-
----------------------
57-
58-
.. toctree::
59-
:caption: Modules
60-
:maxdepth: 1
61-
:glob:
62-
63-
modules/*
64-
6572

6673
Indices and tables
67-
====================================
74+
==================
6875

6976
* :ref:`genindex`
7077
* :ref:`modindex`

docs/requirements.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@ numpy==2.3.4
1010
pydantic==2.11.0
1111
accelerator-toolbox==0.7.1
1212
matplotlib==3.10.7
13-
nbsphinx==0.9.7
14-
ipykernel==7.1.0
13+
#ipykernel==7.1.0
14+
myst_nb
15+
pydata-sphinx-theme

0 commit comments

Comments
 (0)