Skip to content

Commit d98ce71

Browse files
mwasilewroxell
authored andcommitted
mkdocs_plugin: sort resulting docs alphabetically
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 <milosz.wasilewski@foundries.io>
1 parent 856b7fb commit d98ce71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mkdocs_plugin/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="mkdocs-test-definitions-plugin",
6-
version="1.3",
6+
version="1.4",
77
description="An MkDocs plugin that converts LAVA test definitions to documentation",
88
long_description="",
99
keywords="mkdocs python markdown wiki",

mkdocs_plugin/testdefinitionsmkdocs/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -152,4 +152,4 @@ def on_files(self, files, config):
152152
use_directory_urls=False,
153153
)
154154
files.append(newfile)
155-
return files
155+
return sorted(files, key=lambda x: x.src_pat, reverse=True)

0 commit comments

Comments
 (0)