File tree 6 files changed +47
-11
lines changed
6 files changed +47
-11
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
3
build :
4
- os : " ubuntu-20 .04"
4
+ os : " ubuntu-22 .04"
5
5
tools :
6
- python : " 3.8 "
6
+ python : " 3.12 "
7
7
8
8
python :
9
9
# Install our python package before building the docs
@@ -12,4 +12,10 @@ python:
12
12
path : .
13
13
14
14
sphinx :
15
+ configuration : docs/conf.py
15
16
fail_on_warning : true
17
+
18
+ versions :
19
+ only :
20
+ - master
21
+ - /^v\d+\.\d+/
Original file line number Diff line number Diff line change 4
4
# You can set these variables from the command line, and also
5
5
# from the environment for the first two.
6
6
SPHINXOPTS ?=
7
- SPHINXBUILD ?= sphinx-build
7
+ SPHINXBUILD ?= sphinx-multiversion
8
+ # SPHINXBUILD ?= sphinx-build
8
9
SOURCEDIR = .
9
10
BUILDDIR = _build
10
11
Original file line number Diff line number Diff line change
1
+ {%- if current_version %}
2
+ < div class ="rst-versions " data-toggle ="rst-versions " role ="note " aria-label ="versions ">
3
+ < span class ="rst-current-version " data-toggle ="rst-current-version ">
4
+ < span class ="fa fa-book "> Other Versions</ span >
5
+ v: {{ current_version.name }}
6
+ < span class ="fa fa-caret-down "> </ span >
7
+ </ span >
8
+ < div class ="rst-other-versions ">
9
+ {%- if versions.tags %}
10
+ < dl >
11
+ < dt > Tags</ dt >
12
+ {%- for item in versions.tags %}
13
+ < dd > < a href ="{{ item.url }} "> {{ item.name }}</ a > </ dd >
14
+ {%- endfor %}
15
+ </ dl >
16
+ {%- endif %}
17
+ {%- if versions.branches %}
18
+ < dl >
19
+ < dt > Branches</ dt >
20
+ {%- for item in versions.branches %}
21
+ < dd > < a href ="{{ item.url }} "> {{ item.name }}</ a > </ dd >
22
+ {%- endfor %}
23
+ </ dl >
24
+ {%- endif %}
25
+ </ div >
26
+ </ div >
27
+ {%- endif %}
Original file line number Diff line number Diff line change 24
24
'sphinx.ext.autodoc' ,
25
25
'sphinx.ext.napoleon' ,
26
26
'sphinx.ext.autosummary' ,
27
- 'sphinx_rtd_theme'
27
+ 'sphinx_rtd_theme' ,
28
+ 'sphinx_multiversion'
28
29
]
29
30
30
31
templates_path = ['_templates' ]
31
32
exclude_patterns = ['_build' , 'Thumbs.db' , '.DS_Store' ]
32
-
33
-
33
+ html_sidebars = {
34
+ '**' : [
35
+ 'versions.html' ,
36
+ ],
37
+ }
38
+ smv_default_ref = 'master'
34
39
35
40
# -- Options for HTML output -------------------------------------------------
36
41
# https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-html-output
Original file line number Diff line number Diff line change @@ -42,10 +42,6 @@ The package have some of the same features as the `MSS Toolbox <https://se.mathw
42
42
43
43
getting_started
44
44
modules/simulator
45
- modules/control
46
- modules/guidance
47
- modules/thrust_allocation
48
- modules/observer
49
45
modules/waves
50
46
modules/utils
51
47
Original file line number Diff line number Diff line change 1
1
sphinx == 7.1.2
2
- sphinx-rtd-theme == 1.3.0rc1
2
+ sphinx-rtd-theme == 3.0.2
3
+ sphinx-multiversion
You can’t perform that action at this time.
0 commit comments