From 9b7055d41ce749540f24bd62baafe31e7912396a Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 14 Jul 2019 15:31:04 +0200 Subject: [PATCH] update to bootstrap theme --- docs/source/conf.py | 9 ++++++++- fittrackee_api/Pipfile | 1 + fittrackee_api/Pipfile.lock | 9 ++++++++- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 8e88f64f..388cec07 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -13,6 +13,8 @@ import os import sys +import sphinx_bootstrap_theme + sys.path.insert(0, os.path.abspath('../../fittrackee_api')) # -- Project information ----------------------------------------------------- @@ -48,9 +50,14 @@ exclude_patterns = [] # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' +html_theme = 'bootstrap' +html_theme_path = sphinx_bootstrap_theme.get_html_theme_path() # 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_theme_options = { + 'bootswatch_theme': 'flatly', +} diff --git a/fittrackee_api/Pipfile b/fittrackee_api/Pipfile index 27dbbae6..cbe7c78b 100644 --- a/fittrackee_api/Pipfile +++ b/fittrackee_api/Pipfile @@ -25,6 +25,7 @@ pytest-isort = "*" codacy-coverage = "*" sphinx = "*" sphinxcontrib-httpdomain = "*" +sphinx-bootstrap-theme = "*" [requires] python_version = "3.7" diff --git a/fittrackee_api/Pipfile.lock b/fittrackee_api/Pipfile.lock index e908ddf6..a12501ab 100644 --- a/fittrackee_api/Pipfile.lock +++ b/fittrackee_api/Pipfile.lock @@ -1,7 +1,7 @@ { "_meta": { "hash": { - "sha256": "134c25ea1e934b2758ea7da371fcf16b4b9a8399e1f051988160b924848fc1db" + "sha256": "a74a823223e2e48a35a7f08bfddcf89689a23448852fb7748c91fdd62d6ef35b" }, "pipfile-spec": 6, "requires": { @@ -684,6 +684,13 @@ "index": "pypi", "version": "==2.1.2" }, + "sphinx-bootstrap-theme": { + "hashes": [ + "sha256:571e43ccb76d4c6c06576aa24a826b6ebc7adac45a5b54985200128806279d08" + ], + "index": "pypi", + "version": "==0.7.1" + }, "sphinxcontrib-applehelp": { "hashes": [ "sha256:edaa0ab2b2bc74403149cb0209d6775c96de797dfd5b5e2a71981309efab3897",