Skip to content

Commit

Permalink
add bmnist example
Browse files Browse the repository at this point in the history
  • Loading branch information
fehiepsi committed Apr 5, 2024
1 parent 3ce8c3d commit 13bab04
Show file tree
Hide file tree
Showing 8 changed files with 174 additions and 138 deletions.
Binary file added docs/_static/bmnist.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/dmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/_static/dmm_oryx.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 6 additions & 4 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,13 @@
):
toctree_path = "notebooks/" if src_file.endswith("ipynb") else "examples/"
filename = os.path.splitext(src_file.split("/")[-1])[0]
png_path = "_static/" + filename + ".png"
img_path = "_static/" + filename + ".png"
# use Coix logo if not exist png file
if not os.path.exists(png_path):
png_path = "_static/coix_logo.png"
nbsphinx_thumbnails[toctree_path + filename] = png_path
if not os.path.exists(img_path):
img_path = "_static/" + filename + ".gif"
if not os.path.exists(img_path):
img_path = "_static/coix_logo.png"
nbsphinx_thumbnails[toctree_path + filename] = img_path


# -- Options for HTML output -------------------------------------------------
Expand Down
Loading

0 comments on commit 13bab04

Please sign in to comment.