From 405f98973f5202577fe05476b3df0a22879c41f2 Mon Sep 17 00:00:00 2001 From: John McNamara Date: Sat, 4 Nov 2023 21:28:56 +0000 Subject: [PATCH] docs: try pydata sphinx theme --- dev/docs/requirements.txt | 3 +-- dev/docs/source/conf.py | 28 +++++++++++++++++++--------- 2 files changed, 20 insertions(+), 11 deletions(-) diff --git a/dev/docs/requirements.txt b/dev/docs/requirements.txt index 31cb0e4c4..011f7057c 100644 --- a/dev/docs/requirements.txt +++ b/dev/docs/requirements.txt @@ -1,3 +1,2 @@ -sphinx-bootstrap-theme sphinx_rtd_theme - +pydata-sphinx-theme diff --git a/dev/docs/source/conf.py b/dev/docs/source/conf.py index f09eea465..c55c30c43 100644 --- a/dev/docs/source/conf.py +++ b/dev/docs/source/conf.py @@ -12,19 +12,29 @@ release = version exclude_patterns = [] -pygments_style = 'sphinx' intersphinx_mapping = {'python': ('https://docs.python.org/3', None)} -#sys.path.append(os.path.abspath('_themes')) -#html_theme_path = ['_themes'] -html_theme = 'sphinx_rtd_theme' -#html_theme_options = {'nosidebar': True} -html_title = "XlsxWriter Documentation" -html_static_path = ['_static'] + +html_title = "XlsxWriter" html_show_sphinx = True html_show_copyright = True -htmlhelp_basename = 'XlsxWriterdoc' -html_add_permalinks = "" +#html_static_path = ['_static'] +#html_css_files = ["custom.css"] + +html_theme = 'pydata_sphinx_theme' + + +html_theme_options = { + "navbar_align": "left", + "header_links_before_dropdown": 1, + "secondary_sidebar_items": ["page-toc"], + "navbar_end": [], + "navbar_center": ["navbar-nav"], + + "pygment_light_style": "vs", + "pygment_dark_style": "monokai" +} + latex_elements = { 'pointsize': '11pt',