From 7732bb4d7455a2ba72e579f357c860b34f8aa2c6 Mon Sep 17 00:00:00 2001 From: Anji Liu Date: Thu, 15 Feb 2024 10:19:27 +0800 Subject: [PATCH] fix example docs --- docs/source/conf.py | 2 -- examples/train_hmm.py | 4 ++++ examples/train_mnist_hclt.py | 4 ++++ examples/train_mnist_pd.py | 4 ++++ examples/train_mnist_pdhclt.py | 4 ++++ 5 files changed, 16 insertions(+), 2 deletions(-) diff --git a/docs/source/conf.py b/docs/source/conf.py index 0fdc2298..6f183e0b 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -25,8 +25,6 @@ 'examples_dirs': '../../examples', # other configuration options 'gallery_dirs': 'getting-started/tutorials', - # thumbnails - 'default_thumb_file': 'imgs/juice.png' } intersphinx_mapping = { diff --git a/examples/train_hmm.py b/examples/train_hmm.py index f46a415a..83eee436 100644 --- a/examples/train_hmm.py +++ b/examples/train_hmm.py @@ -1,8 +1,12 @@ """ Example ======= + +dddd """ +# sphinx_gallery_thumbnail_path = 'imgs/juice.png' + import pyjuice as juice import torch import torchvision diff --git a/examples/train_mnist_hclt.py b/examples/train_mnist_hclt.py index 2e669ff9..42c0ce6e 100644 --- a/examples/train_mnist_hclt.py +++ b/examples/train_mnist_hclt.py @@ -1,8 +1,12 @@ """ Example ======= + +cccc """ +# sphinx_gallery_thumbnail_path = 'imgs/juice.png' + import pyjuice as juice import torch import torchvision diff --git a/examples/train_mnist_pd.py b/examples/train_mnist_pd.py index 3e9a3e6b..9b3e10af 100644 --- a/examples/train_mnist_pd.py +++ b/examples/train_mnist_pd.py @@ -1,8 +1,12 @@ """ Example ======= + +bbbb """ +# sphinx_gallery_thumbnail_path = 'imgs/juice.png' + import pyjuice as juice import torch import torchvision diff --git a/examples/train_mnist_pdhclt.py b/examples/train_mnist_pdhclt.py index d5a7518a..0187e20a 100644 --- a/examples/train_mnist_pdhclt.py +++ b/examples/train_mnist_pdhclt.py @@ -1,8 +1,12 @@ """ Example ======= + +aaaa """ +# sphinx_gallery_thumbnail_path = 'imgs/juice.png' + import pyjuice as juice import torch import torchvision