mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-02-04 14:33:28 +08:00
Added ballistica logo to every page
This commit is contained in:
parent
ef2bb8574a
commit
842c0bb158
@ -21,10 +21,20 @@ sys.path.append(os.path.abspath(ballistica_root + assets_dirs['ba_data']))
|
|||||||
sys.path.append(os.path.abspath(ballistica_root + assets_dirs['dummy_modules']))
|
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']))
|
||||||
|
|
||||||
|
# -- Project information -----------------------------------------------------
|
||||||
|
project = sphinx_settings['project_name']
|
||||||
|
copyright = sphinx_settings['copyright']
|
||||||
|
author = sphinx_settings['project_author']
|
||||||
|
# The full version, including alpha/beta/rc tags
|
||||||
|
version = str(sphinx_settings['version'])
|
||||||
|
release = str(sphinx_settings['buildnum'])
|
||||||
|
|
||||||
|
|
||||||
# -- Options for HTML output -------------------------------------------------
|
# -- Options for HTML output -------------------------------------------------
|
||||||
# for more themes visit https://sphinx-themes.org/
|
# 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 = project + ' ' + version + ' documentation'
|
||||||
|
html_show_sphinx = False
|
||||||
|
|
||||||
# do not remove, sets the logo on side panel
|
# do not remove, sets the logo on side panel
|
||||||
html_logo = sphinx_settings['ballistica_logo']
|
html_logo = sphinx_settings['ballistica_logo']
|
||||||
@ -55,23 +65,17 @@ if html_theme == 'furo':
|
|||||||
'navigation_with_keys': True,
|
'navigation_with_keys': True,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# -- Project information -----------------------------------------------------
|
|
||||||
project = sphinx_settings['project_name']
|
|
||||||
copyright = sphinx_settings['copyright']
|
|
||||||
author = sphinx_settings['project_author']
|
|
||||||
# The full version, including alpha/beta/rc tags
|
|
||||||
version = str(sphinx_settings['version'])
|
|
||||||
release = str(sphinx_settings['buildnum'])
|
|
||||||
|
|
||||||
# -- General configuration ---------------------------------------------------
|
# -- General configuration ---------------------------------------------------
|
||||||
|
|
||||||
# Add any Sphinx extension module names here, as strings. They can be
|
# append to pages
|
||||||
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
|
rst_epilog = """
|
||||||
# ones.
|
"""
|
||||||
|
# prepend to pages
|
||||||
|
rst_prolog = f"""
|
||||||
|
.. image:: {html_logo}
|
||||||
|
:target: index.html
|
||||||
|
:alt: Ballistica Logo
|
||||||
|
"""
|
||||||
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
|
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}
|
||||||
autosummary_generate = True
|
autosummary_generate = True
|
||||||
extensions = [
|
extensions = [
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
contain the root `toctree` directive.
|
contain the root `toctree` directive.
|
||||||
|
|
||||||
see https://pradyunsg.me/furo/reference/ and https://en.wikipedia.org/wiki/ReStructuredText for formatting help
|
see https://pradyunsg.me/furo/reference/ and https://en.wikipedia.org/wiki/ReStructuredText for formatting help
|
||||||
.. image:: {{data.ballistica_image_url}}
|
|
||||||
|
|
||||||
Welcome to ballistica-bombsquad's documentation!
|
Welcome to ballistica-bombsquad's documentation!
|
||||||
================================================
|
================================================
|
||||||
|
|||||||
@ -280,7 +280,7 @@ def _run_sphinx(
|
|||||||
paths['sphinx_cache_dir'] + 'index.rst', 'w', encoding='utf-8'
|
paths['sphinx_cache_dir'] + 'index.rst', 'w', encoding='utf-8'
|
||||||
) as index_rst:
|
) as index_rst:
|
||||||
data = {
|
data = {
|
||||||
'ballistica_image_url': 'https://camo.githubusercontent.com/25021344ceaa7def6fa6523f79115f7ffada8d26b4768bb9a0cf65fc33304f45/68747470733a2f2f66696c65732e62616c6c6973746963612e6e65742f62616c6c6973746963615f6d656469612f62616c6c6973746963615f6c6f676f5f68616c662e706e67', # pylint: disable=line-too-long
|
# 'ballistica_image_url': 'https://camo.githubusercontent.com/25021344ceaa7def6fa6523f79115f7ffada8d26b4768bb9a0cf65fc33304f45/68747470733a2f2f66696c65732e62616c6c6973746963612e6e65742f62616c6c6973746963615f6d656469612f62616c6c6973746963615f6c6f676f5f68616c662e706e67', # pylint: disable=line-too-long
|
||||||
'version_no': version,
|
'version_no': version,
|
||||||
'build_no': str(buildnum),
|
'build_no': str(buildnum),
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user