Skip to content

Commit

Permalink
add version to docs.comma.ai (commaai#23260)
Browse files Browse the repository at this point in the history
* update conf:
* add logo and favicon from connect.comma.ai
* add version

* proper version extract

* v

* Update docs/conf.py

Co-authored-by: Willem Melching <[email protected]>
  • Loading branch information
tecandrew and pd0wm authored Dec 29, 2021
1 parent c95202b commit c86ca38
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Binary file added docs/_static/favicon.ico
Binary file not shown.
16 changes: 14 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,19 @@
#
import os
import sys
from selfdrive.version import get_version
sys.path.insert(0, os.path.abspath('.'))
sys.path.insert(0, os.path.abspath('..'))

VERSION = get_version()


# -- Project information -----------------------------------------------------

project = 'openpilot'
project = 'openpilot docs'
copyright = '2021, comma.ai'
author = 'comma.ai'
version = VERSION
release = VERSION
language = 'en'


Expand Down Expand Up @@ -81,9 +84,18 @@
# a list of builtin themes.
#
html_theme = 'sphinx_rtd_theme'
html_show_copyright = 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,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
html_logo = '_static/logo.png'
html_favicon = '_static/favicon.ico'
html_theme_options = {
'logo_only': False,
'display_version': True,
'vcs_pageview_mode': 'blob',
'style_nav_header_background': '#000000',
}
html_extra_path = ['_static']

0 comments on commit c86ca38

Please sign in to comment.