From: Christophe Bourcier Date: Tue, 25 Feb 2020 08:20:59 +0000 (+0100) Subject: Change sphinx theme to use read the docs X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fcbr%2Fsphinx_rtd_theme;p=modules%2Fsmesh.git Change sphinx theme to use read the docs --- diff --git a/doc/salome/gui/SMESH/conf.py.in b/doc/salome/gui/SMESH/conf.py.in index d11dbd5c4..e6418ab36 100644 --- a/doc/salome/gui/SMESH/conf.py.in +++ b/doc/salome/gui/SMESH/conf.py.in @@ -98,7 +98,7 @@ exclude_patterns = ['**/CVS'] #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'default' # Options for HTML output @@ -106,7 +106,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' +html_theme = 'sphinx_rtd_theme' themes_options = {} themes_options['classic'] = { 'body_max_width':'none', diff --git a/src/Tools/MGCleanerPlug/doc/conf.py.in b/src/Tools/MGCleanerPlug/doc/conf.py.in index 560450bf1..c2d192ba9 100644 --- a/src/Tools/MGCleanerPlug/doc/conf.py.in +++ b/src/Tools/MGCleanerPlug/doc/conf.py.in @@ -75,7 +75,7 @@ release = '@SALOMESMESH_VERSION@' #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'default' # Options for HTML output @@ -83,7 +83,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' +html_theme = 'sphinx_rtd_theme' themes_options = {} themes_options['classic'] = { 'body_max_width':'none', diff --git a/src/Tools/Verima/Doc/conf.py.in b/src/Tools/Verima/Doc/conf.py.in index d4b53b638..fd5b7d477 100644 --- a/src/Tools/Verima/Doc/conf.py.in +++ b/src/Tools/Verima/Doc/conf.py.in @@ -75,7 +75,7 @@ release = '@SALOMESMESH_VERSION@' #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'default' # Options for HTML output @@ -83,7 +83,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' +html_theme = 'sphinx_rtd_theme' themes_options = {} themes_options['classic'] = { 'body_max_width':'none', diff --git a/src/Tools/YamsPlug/doc/conf.py.in b/src/Tools/YamsPlug/doc/conf.py.in index 2a4b99286..adefe21f6 100644 --- a/src/Tools/YamsPlug/doc/conf.py.in +++ b/src/Tools/YamsPlug/doc/conf.py.in @@ -75,7 +75,7 @@ release = '@SALOMESMESH_VERSION@' #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'default' # Options for HTML output @@ -83,7 +83,7 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. Major themes that come with # Sphinx are currently 'default' and 'sphinxdoc'. -html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' +html_theme = 'sphinx_rtd_theme' themes_options = {} themes_options['classic'] = { 'body_max_width':'none', diff --git a/src/Tools/blocFissure/doc/conf.py.in b/src/Tools/blocFissure/doc/conf.py.in index d6db7e5ce..d4f8670a2 100644 --- a/src/Tools/blocFissure/doc/conf.py.in +++ b/src/Tools/blocFissure/doc/conf.py.in @@ -74,7 +74,7 @@ release = '@SALOMESMESH_VERSION@' #show_authors = False # The name of the Pygments (syntax highlighting) style to use. -pygments_style = 'sphinx' +pygments_style = 'default' # Options for HTML output @@ -84,7 +84,7 @@ pygments_style = 'sphinx' # must exist either in Sphinx' static/ path, or in one of the custom paths # given in html_static_path. #html_style = 'default' -html_theme = 'default' +html_theme = 'sphinx_rtd_theme' # The name for this set of Sphinx documents. If None, it defaults to # " v documentation".