Skip to content

Commit

Permalink
mkdocs_plugin: sort resulting docs alphabetically
Browse files Browse the repository at this point in the history
When docs are built in readthedocs the resulting test list is not
sorted. This patch ensures the resulted rendered docs present the list
in alphabetical order.

Signed-off-by: Milosz Wasilewski <[email protected]>
  • Loading branch information
mwasilew authored and roxell committed Feb 6, 2024
1 parent 856b7fb commit d98ce71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkdocs_plugin/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name="mkdocs-test-definitions-plugin",
version="1.3",
version="1.4",
description="An MkDocs plugin that converts LAVA test definitions to documentation",
long_description="",
keywords="mkdocs python markdown wiki",
Expand Down
2 changes: 1 addition & 1 deletion mkdocs_plugin/testdefinitionsmkdocs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,4 +152,4 @@ def on_files(self, files, config):
use_directory_urls=False,
)
files.append(newfile)
return files
return sorted(files, key=lambda x: x.src_pat, reverse=True)

0 comments on commit d98ce71

Please sign in to comment.