Skip to content

Commit 2ef8525

Browse files
committed
embed executable code for demo
1 parent c15c661 commit 2ef8525

File tree

7 files changed

+17
-137
lines changed

7 files changed

+17
-137
lines changed

docs/source/conf.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# https://www.sphinx-doc.org/en/master/usage/configuration.html
55
from __future__ import annotations
66

7+
import plotly.io as pio
78
from sphinx_gallery.sorting import FileNameSortKey
89

910

@@ -39,14 +40,20 @@
3940
html_logo = "_static/optuna-logo.png"
4041
html_css_files = ["css/custom.css"]
4142

43+
# -- Sphinx Gallery configuration -------------------------------------------
44+
pio.renderers.default = "sphinx_gallery"
45+
4246
sphinx_gallery_conf = {
4347
"examples_dirs": [
44-
"../../recipes",
48+
"../../recipes/contributors",
49+
"../../recipes/users",
4550
],
4651
"gallery_dirs": [
47-
"generated/recipes",
52+
"generated/contributors_recipes",
53+
"generated/users_recipes",
4854
],
4955
"within_subsection_order": FileNameSortKey,
5056
"filename_pattern": r"/*\.py",
5157
"first_notebook_cell": None,
58+
"image_scrapers": ("matplotlib", "plotly.io._sg_scraper.plotly_sg_scraper"),
5259
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
Tutorials for Contributors
22
==========================
3-
- :doc:`generated/recipes/001_first`
4-
- :doc:`generated/recipes/002_registration`
5-
- :doc:`generated/recipes/003_pruner`
6-
- :doc:`generated/recipes/004_visualization`
7-
- :doc:`generated/recipes/005_debugging`
8-
- :doc:`generated/recipes/006_benchmarks_basic`
9-
- :doc:`generated/recipes/007_benchmarks_advanced`
3+
- :doc:`generated/contributors_recipes/001_first`
4+
- :doc:`generated/contributors_recipes/002_registration`
5+
- :doc:`generated/contributors_recipes/003_pruner`
6+
- :doc:`generated/contributors_recipes/004_visualization`
7+
- :doc:`generated/contributors_recipes/005_debugging`
8+
- :doc:`generated/contributors_recipes/006_benchmarks_basic`
9+
- :doc:`generated/contributors_recipes/007_benchmarks_advanced`

docs/source/tutorials_for_users/how_to_use_benchmarks.rst

Lines changed: 0 additions & 127 deletions
This file was deleted.
-104 KB
Binary file not shown.
Binary file not shown.
-135 KB
Binary file not shown.

docs/source/tutorials_for_users/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Tutorials for Users
55
:maxdepth: 1
66

77
plot-in-optuna-dashboard
8-
how_to_use_benchmarks
8+
../generated/users_recipes/001_how_to_use_benchmarks

0 commit comments

Comments
 (0)