Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Put categorised examples first
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
  • Loading branch information
hmellor committed Jan 7, 2025
commit 141bfbcb2d6a0e14ac6433ad0a6d32bf2cffe2c4
2 changes: 1 addition & 1 deletion docs/source/generate_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ def generate_examples():
# Generate the index files
for category_index in category_indices.values():
if category_index.documents:
examples_index.documents.append(category_index.path.name)
examples_index.documents.insert(0, category_index.path.name)
with open(category_index.path, "w+") as f:
f.write(category_index.generate())

Expand Down