From d786be4f7d6a15b626e0878bc319810422f000da Mon Sep 17 00:00:00 2001 From: Victor Date: Fri, 6 Oct 2017 18:55:27 +0200 Subject: [PATCH] WIP theme, justify paragraphs not working on the top one above the main title --- doc/sphinx/conf.py | 6 +++++- doc/sphinx/index.rst | 2 +- doc/sphinx/theme/static/style.css | 5 +++++ doc/sphinx/theme/theme.conf | 5 +++++ 4 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 doc/sphinx/theme/static/style.css create mode 100644 doc/sphinx/theme/theme.conf diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index 08cf940..f4dd9c4 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -83,7 +83,8 @@ todo_include_todos = False # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. # -html_theme = 'alabaster' +html_theme = 'theme' # use the theme in subdir 'theme' +html_theme_path = ['.'] # make sphinx search for themes in current dir # 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 @@ -102,6 +103,9 @@ html_static_path = ['_static'] # Output file base name for HTML help builder. htmlhelp_basename = 'UEABSforacceleratorsdoc' +html_sidebars = { '**': ['localtoc.html', 'globaltoc.html', 'relations.html', 'sourcelink.html', 'searchbox.html'], } + + # -- Options for LaTeX output --------------------------------------------- diff --git a/doc/sphinx/index.rst b/doc/sphinx/index.rst index b3c5ab2..8e91a0e 100644 --- a/doc/sphinx/index.rst +++ b/doc/sphinx/index.rst @@ -20,7 +20,7 @@ The following timeline will be followed to lead this task: .. toctree:: :maxdepth: 2 - :caption: Table of Contents: + :caption: General Table of Contents: :glob: ms33 diff --git a/doc/sphinx/theme/static/style.css b/doc/sphinx/theme/static/style.css new file mode 100644 index 0000000..c898021 --- /dev/null +++ b/doc/sphinx/theme/static/style.css @@ -0,0 +1,5 @@ +@import url("alabaster.css"); /* make sure to sync this with the base theme's css filename */ + +.section { + text-align:justify; +} diff --git a/doc/sphinx/theme/theme.conf b/doc/sphinx/theme/theme.conf new file mode 100644 index 0000000..e7c85b6 --- /dev/null +++ b/doc/sphinx/theme/theme.conf @@ -0,0 +1,5 @@ +[theme] +inherit = alabaster +stylesheet = style.css +pygments_style = pygments.css + -- GitLab