Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(framework) Remove docs before 1.8.0 #3906

Merged
merged 2 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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