Skip to content

Commit

Permalink
updating docs conf
Browse files Browse the repository at this point in the history
  • Loading branch information
raamana committed Apr 6, 2023
1 parent 66a22ef commit 240ee38
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@


import visualqc
import sphinx_rtd_theme

# -- General configuration ---------------------------------------------

# If your documentation needs a minimal Sphinx version, state it here.
Expand Down Expand Up @@ -74,10 +74,17 @@
# for |version| and |release|, also used in various other places throughout
# the built documents.
#
# The short X.Y version.
version = visualqc.__version__
# The full version, including alpha/beta/rc tags.
release = visualqc.__version__

from importlib.metadata import version
version = version(project)

# from setuptools_scm import get_version
# version = get_version(root="..", relative_to=__file__)

print(f'version is {version}')

# version = "0.6.3" # # The short X.Y version.
release = version # The full version, including alpha/beta/rc tags.

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -123,10 +130,14 @@

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# html_theme = 'alabaster'
html_theme = "sphinx_rtd_theme"
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# html_theme_name = 'alabaster'
# html_theme_name = "sphinx_rtd_theme"
# html_theme_name = "sphinx-bernard-theme"

import importlib
# html_theme = importlib.import_module(html_theme_name)
# html_theme_path = [html_theme.get_html_theme_path()]
html_theme = 'sizzle'

# Theme options are theme-specific and customize the look and feel of a
# theme further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -158,14 +169,16 @@
# static files, so a file named "default.css" will overwrite the builtin
# "default.css".

html_static_path = ['_static']
html_static_path = ['../_static']

html_context = {
'css_files': [
'_static/theme_overrides.css', # override wide tables in RTD theme
],
}

def setup(app):
app.add_css_file("custom.css")

# If not '', a 'Last updated on:' timestamp is inserted at every page
# bottom, using the given strftime format.
Expand Down

0 comments on commit 240ee38

Please sign in to comment.