Skip to content

Commit

Permalink
Merge branch 'main' into fix-fds-tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
jafermarq authored Jul 24, 2024
2 parents 181e66a + 00eeed9 commit 3ff581e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion doc/build-versioned-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ cd doc
# Get a list of languages based on the folders in locales
languages="en `find locales/ -mindepth 1 -maxdepth 1 -type d -exec basename '{}' \;`"
# Get a list of tags, excluding those before v1.0.0
versions="`git for-each-ref '--format=%(refname:lstrip=-1)' refs/tags/ | grep -iE '^v((([1-9]|[0-9]{2,}).*\.([5-9]|[0-9]{2,}).*)|([2-9]|[0-9]{2,}).*)$'`"
versions="`git for-each-ref '--format=%(refname:lstrip=-1)' refs/tags/ | grep -iE '^v((([1-9]|[0-9]{2,}).*\.([8-9]|[0-9]{2,}).*)|([2-9]|[0-9]{2,}).*)$'`"

for current_version in ${versions}; do

Expand Down
13 changes: 8 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,14 @@

# Make version list accessible for the html templates
html_context["versions"] = list()
versions = [
tag.name
for tag in repo.tags
if int(tag.name[1]) > 0 and int(tag.name.split(".")[1]) >= 5
]
versions = sorted(
[
tag.name
for tag in repo.tags
if int(tag.name[1]) > 0 and int(tag.name.split(".")[1]) >= 8
],
key=lambda x: [int(part) for part in x[1:].split(".")],
)
versions.append("main")
for version in versions:
html_context["versions"].append({"name": version})
Expand Down

0 comments on commit 3ff581e

Please sign in to comment.