mirror of
https://github.com/RYDE-WORK/ballistica.git
synced 2026-01-26 00:47:10 +08:00
Changed theme
This commit is contained in:
parent
c0a49d5304
commit
640565cdf8
2
.github/workflows/cd.yml
vendored
2
.github/workflows/cd.yml
vendored
@ -219,7 +219,7 @@ jobs:
|
||||
- name: Install typing_extensions (temp)
|
||||
run: python3.11 -m pip install typing_extensions
|
||||
- name: Install sphinx
|
||||
run: python3.11 -m pip install sphinx sphinx-rtd-theme
|
||||
run: python3.11 -m pip install sphinx furo
|
||||
- name: Install pip requirements
|
||||
run: tools/pcommand install_pip_reqs
|
||||
- name: Make the build
|
||||
|
||||
@ -5,30 +5,23 @@
|
||||
# https://www.sphinx-doc.org/en/master/usage/configuration.html
|
||||
|
||||
# -- Path setup --------------------------------------------------------------
|
||||
|
||||
# If extensions (or modules to document with autodoc) are in another directory,
|
||||
# add these directories to sys.path here. If the directory is relative to the
|
||||
# documentation root, use os.path.abspath to make it absolute, like shown here.
|
||||
#
|
||||
import os
|
||||
import sys
|
||||
|
||||
ba_root = os.getenv('BALLISTICA_ROOT') + '/'
|
||||
ballistica_root = os.getenv('BALLISTICA_ROOT') + '/'
|
||||
assets_dirs : dict = {'ba_data':'src/assets/ba_data/python/',
|
||||
'dummy_modules':'build/dummymodules/',
|
||||
'efro_tools':'tools/', # for efro and bacommon package
|
||||
}
|
||||
|
||||
sys.path.append(os.path.abspath(ba_root+assets_dirs['ba_data']))
|
||||
sys.path.append(os.path.abspath(ba_root+assets_dirs['dummy_modules']))
|
||||
sys.path.append(os.path.abspath(ba_root+assets_dirs['efro_tools']))
|
||||
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['efro_tools']))
|
||||
|
||||
# -- Options for HTML output -------------------------------------------------
|
||||
|
||||
# The theme to use for HTML and HTML Help pages. See the documentation for
|
||||
# a list of builtin themes.
|
||||
#
|
||||
html_theme = 'sphinx_rtd_theme' #'python_docs_theme' #"groundwork"
|
||||
html_theme = 'furo' # python_docs_theme, groundwork, furo
|
||||
# html_logo = ballistica_root + 'build/assets/ba_data/textures/logo_preview.png' # need a smaller img
|
||||
|
||||
|
||||
# -- Project information -----------------------------------------------------
|
||||
@ -44,7 +37,6 @@ author = 'Efroemling'
|
||||
version = '1.7.33'
|
||||
release = '43241'
|
||||
|
||||
|
||||
# -- General configuration ---------------------------------------------------
|
||||
|
||||
# Add any Sphinx extension module names here, as strings. They can be
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user