[Docs] Fix plugin authors example urls on older branches#28530
[Docs] Fix plugin authors example urls on older branches#28530cbuescher merged 1 commit intoelastic:6.2from
Conversation
|
@tlrx since you created those two new example projects, could you check if linking to those from older 6.x branches looks okay to you? I was suprised that we seem to link to master most previous versions of this doc, maybe we should link to the appropriate minor version instead? This doesn't seem to happen in most of the rest of the documentation though. Thoughts? |
|
@cbuescher Thanks, I didn't see these links were wrong!
I still need to backport #28339 to 6.2/6.1/6.0 branches. It think the best it to change the links to point to each corresponding version, I can do it when I backport the PR. |
|
@tlrx great, I didn't know there were plans to backport the example split. In that case changing the links to the current branch might be the best option. I see most external links to some repost in the docs going to ".../tree/master/..." though, so maybe we should quickly check with the docs team what the desired behaviour is here. Maybe @clintongormley has an opinion here. |
I think we should use a link reference for the github repository, something like:
and for all non master branch:
I think it should work. |
A problem with that is that {version} includes the patch version, so it would be 6.2.0 but for the links to the repo we would need only the major and minor (6.2). Not sure where that would be added to the docs build. |
|
There is a |
037b6ae to
cefa90b
Compare
|
@cbuescher Is there anything preventing this from being merged? |
Follow up to elastic#28528. The example page links to a project on master which has been split into two projects.
cefa90b to
2747d00
Compare
| * a https://github.com/elastic/elasticsearch/tree/{branch}/plugins/examples/script-expert-scoring[Java plugin] | ||
| which contains a script plugin. | ||
| * a https://github.com/elastic/elasticsearch/tree/master/plugins/examples/meta-plugin[Java plugin] | ||
| * a https://github.com/elastic/elasticsearch/tree/{branch}/plugins/examples/meta-plugin[Java plugin] |
There was a problem hiding this comment.
Note: this must be removed when backporting to 6.1 and 6.0
| * a https://github.com/elastic/elasticsearch/tree/{branch}/plugins/jvm-example[Java plugin] | ||
| which contains Java code. | ||
| * a https://github.com/elastic/elasticsearch/tree/master/plugins/examples/rescore[Java plugin] | ||
| * a https://github.com/elastic/elasticsearch/tree/{branch}/plugins/examples/rescore[Java plugin] |
There was a problem hiding this comment.
Note: this must be removed when backporting to 6.0
|
@tlrx thanks, will remove the above mentioned bullet point when porting this back. |
Follow up to #28528. The example page links to a project on master which has been split into two projects.
Follow up to #28528. The example page links to a project on master which has been split into two projects.
Follow up to #28528. The example page links to a project on master which has been
split into two projects.