From 554d7ccbfcb8d4d49db62896e7918bc40b91d7b5 Mon Sep 17 00:00:00 2001 From: "Rodney, Tiara" Date: Sun, 23 Mar 2025 01:49:03 +0100 Subject: [PATCH] refactor(conf): migrate to toml --- src/sphinx_theme_ref/theme.conf | 16 ---------------- src/sphinx_theme_ref/theme.toml | 24 ++++++++++++++++++++++++ 2 files changed, 24 insertions(+), 16 deletions(-) delete mode 100644 src/sphinx_theme_ref/theme.conf create mode 100644 src/sphinx_theme_ref/theme.toml diff --git a/src/sphinx_theme_ref/theme.conf b/src/sphinx_theme_ref/theme.conf deleted file mode 100644 index bf9f5f5..0000000 --- a/src/sphinx_theme_ref/theme.conf +++ /dev/null @@ -1,16 +0,0 @@ -[theme] -inherit = none -stylesheet = main.css -pygments_style = none -sidebars = localtoc.html, relations.html, sourcelink.html, searchbox.html - -[options] -nosidebar = false -sidebarwidth = 230 -body_min_width = 360 -body_max_width = 800 -navigation_with_keys = False -enable_search_shortcuts = True -globaltoc_collapse = true -globaltoc_includehidden = false -globaltoc_maxdepth = diff --git a/src/sphinx_theme_ref/theme.toml b/src/sphinx_theme_ref/theme.toml new file mode 100644 index 0000000..a9ad9f9 --- /dev/null +++ b/src/sphinx_theme_ref/theme.toml @@ -0,0 +1,24 @@ +[theme] +inherit = "basic" +stylesheets = [ + "style/main.css", +] +sidebars = [ + "localtoc.html", + "relations.html", + "sourcelink.html", + "searchbox.html", +] +# Style names from https://pygments.org/styles/ +pygments_style = { default = "style_name", dark = "dark_style" } + +[options] +nosidebar = false +sidebarwidth = 230 +body_min_width = 360 +body_max_width = 800 +navigation_with_keys = False +enable_search_shortcuts = True +globaltoc_collapse = true +globaltoc_includehidden = false +globaltoc_maxdepth =