Skip to content

Commit

Permalink
Merge pull request #9 from lisajulia/feature/sort-docstrings
Browse files Browse the repository at this point in the history
Sort the docstrings before creating the documentation
  • Loading branch information
hakonhagland authored Jan 9, 2025
2 parents 892f35c + 30fb2fc commit 12db73a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ def read_doc_strings(directive, docstrings_path):
print(docstrings_path)
with open(docstrings_path, 'r') as file:
docstrings = json.load(file)
sorted_docstrings = sorted(docstrings.items(), key=lambda item: item[1].get('signature', item[0]))
result = []
for name, item in docstrings.items():
for name, item in sorted_docstrings:
# Create a ViewList instance for the function signature and docstring
rst = ViewList()

Expand Down

0 comments on commit 12db73a

Please sign in to comment.