X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=dev%2Fcmake%2Fsource%2Fconf.py.in;h=68936645dc0823a34945972f0fc38cb8129fa802;hb=7102f3d33e0a986523e73fef1dc6ca0c415623fa;hp=9c8d1c8209bd1db653c82310df45037fb8aa1d88;hpb=29037b9fb107cb7c884e26a36ea3c2bb7a312082;p=tools%2Fdocumentation.git diff --git a/dev/cmake/source/conf.py.in b/dev/cmake/source/conf.py.in index 9c8d1c8..6893664 100644 --- a/dev/cmake/source/conf.py.in +++ b/dev/cmake/source/conf.py.in @@ -27,6 +27,12 @@ import sphinx # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. extensions = [] +try: + import sphinx_rtd_theme + extensions += ['sphinx_rtd_theme'] + use_rtd_theme = True +except: + use_rtd_theme = False # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -42,7 +48,7 @@ master_doc = 'index' # General information about the project. project = u'CMake build procedure' -copyright = u'2013-2017, Adrien Bruneton (CEA), Anthony Geay (CEA), Nicolas Geimer (EDF), Paul Rascle (EDF)' +copyright = u'2013-2022, Adrien Bruneton (CEA), Anthony Geay (CEA), Nicolas Geimer (EDF), Paul Rascle (EDF)' # The version info for the project you're documenting, acts as replacement for # |version| and |release|, also used in various other places throughout the @@ -92,7 +98,17 @@ pygments_style = 'sphinx' # The theme to use for HTML and HTML Help pages. See the documentation for # a list of builtin themes. -html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' +if use_rtd_theme: + html_theme = 'sphinx_rtd_theme' +else: + html_theme = 'default' if sphinx.version_info[:2] < (1,3) else 'classic' + +themes_options = {} +themes_options['classic'] = { + 'body_max_width':'none', + 'body_min_width':0, +} +html_theme_options = themes_options.get(html_theme, {}) # 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