mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-08 08:45:43 +08:00
readded sidebar logo
This commit is contained in:
parent
62c35b3255
commit
6c0f1bdce0
@ -22,11 +22,12 @@ sys.path.append(os.path.abspath(ballistica_root + assets_dirs['dummy_modules']))
|
|||||||
sys.path.append(os.path.abspath(ballistica_root + assets_dirs['efro_tools']))
|
sys.path.append(os.path.abspath(ballistica_root + assets_dirs['efro_tools']))
|
||||||
|
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
|
# for more themes visit https://sphinx-themes.org/
|
||||||
html_theme = 'furo' # python_docs_theme, groundwork, furo, sphinx_rtd_theme
|
html_theme = 'furo' # python_docs_theme, groundwork, furo, sphinx_rtd_theme
|
||||||
html_title = sphinx_settings['project_name'] + ' ' + str(sphinx_settings['version']) + ' documentation'
|
html_title = sphinx_settings['project_name'] + ' ' + str(sphinx_settings['version']) + ' documentation'
|
||||||
# for more themes visit https://sphinx-themes.org/
|
|
||||||
|
|
||||||
html_logo = 'https://camo.githubusercontent.com/25021344ceaa7def6fa6523f79115f7ffada8d26b4768bb9a0cf65fc33304f45/68747470733a2f2f66696c65732e62616c6c6973746963612e6e65742f62616c6c6973746963615f6d656469612f62616c6c6973746963615f6c6f676f5f68616c662e706e67'
|
# do not remove, sets the logo on side panel
|
||||||
|
html_logo = sphinx_settings['ballistica_logo']
|
||||||
|
|
||||||
if html_theme == 'furo':
|
if html_theme == 'furo':
|
||||||
html_theme_options = {
|
html_theme_options = {
|
||||||
|
|||||||
@ -268,10 +268,10 @@ def _run_sphinx(
|
|||||||
'copyright': copyright_text,
|
'copyright': copyright_text,
|
||||||
'version': version,
|
'version': version,
|
||||||
'buildnum': buildnum,
|
'buildnum': buildnum,
|
||||||
|
'ballistica_logo': 'https://camo.githubusercontent.com/25021344ceaa7def6fa6523f79115f7ffada8d26b4768bb9a0cf65fc33304f45/68747470733a2f2f66696c65732e62616c6c6973746963612e6e65742f62616c6c6973746963615f6d656469612f62616c6c6973746963615f6c6f676f5f68616c662e706e67', # pylint: disable=line-too-long
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
file_loader = FileSystemLoader(paths['template_dir'])
|
file_loader = FileSystemLoader(paths['template_dir'])
|
||||||
env = Environment(loader=file_loader)
|
env = Environment(loader=file_loader)
|
||||||
index_template = env.get_template('index.rst_t')
|
index_template = env.get_template('index.rst_t')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user