Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import sys

import pytorch_sphinx_theme2
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey

# Add the source directory to Python path so modules can be imported
sys.path.insert(0, os.path.abspath("../../src/forge"))
Expand Down Expand Up @@ -82,7 +83,12 @@ def get_version_path():
"_templates",
os.path.join(os.path.dirname(pytorch_sphinx_theme2.__file__), "templates"),
]
exclude_patterns = ["tutorials/index.rst", "tutorials/template_tutorial.rst"]
exclude_patterns = [
"tutorials/index.rst",
"tutorials/template_tutorial.rst",
"tutorials/**/index.rst",
"tutorial_sources/**/README.md",
]

html_static_path = ["_static"]
html_css_files = ["custom.css"]
Expand Down Expand Up @@ -204,14 +210,16 @@ def get_version_path():
sphinx_gallery_conf = {
"examples_dirs": "tutorial_sources", # Path to examples directory
"gallery_dirs": "tutorials", # Path to generate gallery
"filename_pattern": ".*", # Include all files
"filename_pattern": ".*", # Match all Python files
"download_all_examples": False,
"first_notebook_cell": "%matplotlib inline",
"plot_gallery": "True",
"promote_jupyter_magic": True,
"backreferences_dir": None,
"show_signature": False,
"write_computation_times": False,
"subsection_order": ExplicitOrder(["tutorial_sources/zero-to-forge"]),
"within_subsection_order": FileNameSortKey,
}


Expand Down
5 changes: 0 additions & 5 deletions docs/source/tutorial_sources/README.txt
Original file line number Diff line number Diff line change
@@ -1,5 +0,0 @@
Tutorials
=========

This gallery contains tutorials and examples to help you get started with Forge.
Each tutorial demonstrates specific features and use cases with practical examples.
Loading
Loading