Merge pull request #128 from negz/v1.5-is-best-version

Use release-1.5 branch as latest docs
This commit is contained in:
Nic Cope 2021-10-26 16:05:36 -07:00 committed by GitHub
commit c2a194cdce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -7,8 +7,8 @@
{% assign podcastLink = "https://www.youtube.com/playlist?list=PL510POnNVaaYFuK-B_SIUrpIonCtLVOzT" %} {% assign podcastLink = "https://www.youtube.com/playlist?list=PL510POnNVaaYFuK-B_SIUrpIonCtLVOzT" %}
{% assign blogLink = "https://blog.crossplane.io/" %} {% assign blogLink = "https://blog.crossplane.io/" %}
{% assign communityMeetingLink = "https://github.com/crossplane/crossplane/#get-involved" %} {% assign communityMeetingLink = "https://github.com/crossplane/crossplane/#get-involved" %}
{% assign latestDocs = "/docs/v1.4" | append: '/' | relative_url %} {% assign latestDocs = "/docs/v1.5" | append: '/' | relative_url %}
{% assign cncfLink = "https://www.cncf.io/" %} {% assign cncfLink = "https://www.cncf.io/" %}
{% assign prodFormLink = "https://docs.google.com/forms/d/e/1FAIpQLSev-5clADSdkwi_wiFqBCAECeIoAQDE91chBbeWbvyTjRCeYg/viewform" %} {% assign prodFormLink = "https://docs.google.com/forms/d/e/1FAIpQLSev-5clADSdkwi_wiFqBCAECeIoAQDE91chBbeWbvyTjRCeYg/viewform" %}
{% assign infoMailToLink = "mailto:info@crossplane.io" %} {% assign infoMailToLink = "mailto:info@crossplane.io" %}
{% assign upboundGithubLink = "https://github.com/upbound" %} {% assign upboundGithubLink = "https://github.com/upbound" %}

View File

@ -4,7 +4,7 @@
{% assign currentVersion = url[2] %} {% assign currentVersion = url[2] %}
{% assign currentVersionBranch = currentVersion | replace: 'v', 'release-' %} {% assign currentVersionBranch = currentVersion | replace: 'v', 'release-' %}
{% assign currentVersionPath = '/docs/' | append: currentVersion | append: '/' %} {% assign currentVersionPath = '/docs/' | append: currentVersion | append: '/' %}
{% assign latestVersion = "v1.4" %} {% assign latestVersion = "v1.5" %}
{% assign filepath = page.url | replace: currentVersionPath %} {% assign filepath = page.url | replace: currentVersionPath %}
{% assign repopath = 'docs/' | append: filepath | remove: '.html' | append: '.md' %} {% assign repopath = 'docs/' | append: filepath | remove: '.html' | append: '.md' %}
{% if repopath == 'docs/.md' %}{% assign repopath = 'docs/README.md' %}{% endif %} {% if repopath == 'docs/.md' %}{% assign repopath = 'docs/README.md' %}{% endif %}