[
https://issues.apache.org/jira/browse/TINKERPOP-1003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15299495#comment-15299495
]
ASF GitHub Bot commented on TINKERPOP-1003:
-------------------------------------------
Github user dkuppitz commented on the pull request:
https://github.com/apache/incubator-tinkerpop/pull/317#issuecomment-221477985
Oh right, I didn't think about snapshot and parallel release lines. Now I
also remember how I wanted to solve it: we actually shouldn't get rid of the
version directories altogether. We should keep doing that but then add a bit of
extra logic that makes a recursive copy of the latest version directory (maybe
symlinks would work as well?).
```
rm -rf current/
cp -R ${LATEST} current/
```
Determining `LATEST` is easy once you have all the version directories:
```
daniel@cube /tmp/test $ mkdir 3.1.1 3.1.2 3.1.2-SNAPSHOT
daniel@cube /tmp/test $ mkdir 3.2.0 3.2.1 3.2.2 3.2.3-SNAPSHOT
daniel@cube /tmp/test $ ls
3.1.1 3.1.2 3.1.2-SNAPSHOT 3.2.0 3.2.1 3.2.2 3.2.3-SNAPSHOT
daniel@cube /tmp/test $ ls | grep -v SNAPSHOT | sort -rV | head -n1
3.2.2
daniel@cube /tmp/test $
```
> Setting up latest/current links for bins and docs.
> --------------------------------------------------
>
> Key: TINKERPOP-1003
> URL: https://issues.apache.org/jira/browse/TINKERPOP-1003
> Project: TinkerPop
> Issue Type: Improvement
> Components: documentation
> Affects Versions: 3.1.0-incubating
> Reporter: Dylan Millikin
> Priority: Minor
>
> It would be good to have {{/latest}} URLs for doc and bins. As well as
> getting old docs dereferenced from search engins
> More info can be found in this thread:
> https://pony-poc.apache.org/thread.html/Zv6yx0dr64pliar
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)