update docs release workflow and embed external script for version selector

This commit is contained in:
Samuel Sadok
2022-07-14 22:18:38 +02:00
parent 97d1a871fd
commit dfec6503ef
5 changed files with 106 additions and 23 deletions
+12 -3
View File
@@ -25,9 +25,6 @@ project = 'ODrive Documentation'
copyright = '2021, ODrive Robotics'
author = 'ODrive Robotics'
# The full version, including alpha/beta/rc tags
release = '0.0'
# -- General configuration ---------------------------------------------------
@@ -61,6 +58,11 @@ exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store']
#
# html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
html_theme_options = {
'analytics_id':'UA-93396600-3',
'style_external_links': True,
'display_version': True,
}
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
@@ -72,3 +74,10 @@ fibre_interface_files = ['../Firmware/odrive-interface.yaml']
autosummary_generate = False
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
html_js_files = [
'https://docs.odriverobotics.com/docsInject.js'
]
version = "0.5.4"
release = version