-
Notifications
You must be signed in to change notification settings - Fork 578
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
[feat] docs versioning #10
Conversation
@@ -0,0 +1,18 @@ | |||
--- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops.
For how to hadle versions in the URL I propose to have the latest alias in addition to all the versions, similar to how elasticsearch does it. http://www.elastic.co/guide/en/elasticsearch/reference/1.3/search-aggregations.html (older version) |
I agree. Though I don't see a way to do that yet with Jekyll, without the help of a custom plugin again. Because what we want is to duplicate the content of, say Otherwise we could not do an alias but rather a redirection using something like jekyll-redirect-from but this is how redirection is done https://github.com/jekyll/jekyll-redirect-from/blob/master/lib/jekyll-redirect-from/redirect_page.rb and the URI will be rewritten from For now, I see no other choice but to duplicate the generated content to have a real alias. |
A 302 redirect might actually be better for SEO, because with an alias we would have to add a canonical tag, but that would change as we release new versions. Also what do you think is better, |
+1 for downloads and screencasts (and articles / tutorials...) being versioned as well. Having the url be under |
But we cannot do that with a Github Pages website afaik. And the example I posted does use the canonical tag. If we want a proper redirect we need to host the website ourselves behind some nginx and configure it for each release to update the I prefer |
this might not be a smooth way of getting 302s, but: you could (in fact you should, for many other reasons) have the entire site behind Cloudflare, there you can setup redirect rules, with custom redirect status codes. |
Mhhh yep, works too I guess
|
It'll be a pain to update the redirect settings at every new version. |
…age (#10) * docs(managing-devs) Update images & link auto auth on to references page * docs(managing-devs) Move images to konghq.com * docs(overview) Move image to konghq.com
This PR has a little Jekyll plugin which injects some versioning infos into variables:
page.kong_version
(into documentation pages only)site.data.kong_versions
a list of all versions availablesite.data.kong_latest
the latest version of Kongversions.yml
is just YAML so we could extend it later to add properties to versions such asstable: true
etc...This versioning raises some questions:
For example with two versions
0.1.0
and0.2.0
:or
or
Have to see if those are possible and how to implement it ^
If yes to 2. and 3., then what is their URI? URIs are versioned only under
/docs/
, so it would be: