From f8ab91b40c7340a6f6ddf3efee2efedd0ca9861d Mon Sep 17 00:00:00 2001 From: luisaFelixSalles Date: Tue, 17 Sep 2024 08:45:06 +0200 Subject: [PATCH] changes in the sidebar of the examples section --- doc/source/_templates/custom_examples.html | 36 ++++++++++++++++++++++ doc/source/conf.py | 6 ++-- 2 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 doc/source/_templates/custom_examples.html diff --git a/doc/source/_templates/custom_examples.html b/doc/source/_templates/custom_examples.html new file mode 100644 index 0000000000..7777fd90d0 --- /dev/null +++ b/doc/source/_templates/custom_examples.html @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/doc/source/conf.py b/doc/source/conf.py index 4042e35481..de6d6e861c 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -108,7 +108,7 @@ autodoc_mock_imports = ["ansys.dpf.core.examples.python_plugins"] # Add any paths that contain templates here, relative to this directory. -# templates_path = ['_templates'] +templates_path = ['_templates'] # The suffix(es) of source filenames. # You can specify multiple suffix as a list of string: @@ -237,7 +237,9 @@ def reset_servers(gallery_conf, fname, when): # # html_sidebars = {} -html_sidebars = {"testing": []} +html_sidebars = {"testing": [], + "examples/**": ["custom_examples"], + } # -- Options for HTMLHelp output ---------------------------------------------