Skip to content

Commit

Permalink
Sort transformations list in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
streino committed Nov 5, 2024
1 parent 7ac0a64 commit 02341a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion isomorphe/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def documentation():
abort(404)
index_content = index_page.read_text()
tdocs_toc = ""
for tdoc in app.config["TRANSFORMATIONS_PATH"].glob("*.md"):
for tdoc in sorted(app.config["TRANSFORMATIONS_PATH"].glob("*.md")):
tdocs_toc += f'<li><a href="{url_for("documentation_transformation", transformation=tdoc.stem)}">{tdoc.stem}</a></li>'
index_content = index_content.replace("<!-- insert:transformations_docs -->", tdocs_toc)
return render_template("documentation.html.j2", content=markdown.markdown(index_content))
Expand Down

0 comments on commit 02341a4

Please sign in to comment.