Jacob953 commented on PR #22232:
URL: https://github.com/apache/shardingsphere/pull/22232#issuecomment-1318668342
Steps:
1. Read different documents of versions from `content`
```
{{ $versions := slice }}
{{ range os.ReadDir "content" }}
{{ $versions = $versions | append .Name }}
{{ end }}
```
<img width="230" alt="image"
src="https://user-images.githubusercontent.com/64075563/202462553-6d6f487f-5a8a-4ea7-b067-dd05ec23867c.png">
2. Reverse the slice to make sure the newer one is close to the top
```
{{ $versions = partial "reverse.html" $versions -}}
```
3. Range all legacy versions to list them.
<img width="423" alt="image"
src="https://user-images.githubusercontent.com/64075563/202463509-6042c75b-7164-4a72-8328-d35edcf137f4.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]