Skip to content

Commit

Permalink
Put categorised examples first
Browse files Browse the repository at this point in the history
  • Loading branch information
hmellor committed Jan 7, 2025
1 parent a2792a4 commit 2149016
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 2149016

Please sign in to comment.