Skip to content

Commit

Permalink
Merge pull request #1532 from GaloisInc/sort_docversions
Browse files Browse the repository at this point in the history
Add sorting to version/PR on generated documents index.
  • Loading branch information
kquick authored Jun 23, 2023
2 parents ed84e2d + a28fefd commit df10985
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/gen_html_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
bldtgt = lambda n: os.path.join('/', sys.argv[1].split('/')[1], n, 'RefMan.html')

html_context={'current_version': sys.argv[2],
'versions':[(v, bldtgt(v)) for v in d if not v.startswith('PR_')],
'pull_reqs':[(v, bldtgt(v)) for v in d if v.startswith('PR_')]}
'versions':sorted([(v, bldtgt(v)) for v in d if not v.startswith('PR_')]),
'pull_reqs':sorted([(v, bldtgt(v)) for v in d if v.startswith('PR_')])}

if not os.path.isdir('_templates'):
# Older versions of the repo do not have this file present as it was only
Expand Down

0 comments on commit df10985

Please sign in to comment.