diff --git a/_config.yml b/_config.yml index f3023e0499..f6a6f946a8 100644 --- a/_config.yml +++ b/_config.yml @@ -21,6 +21,28 @@ compose_version: "1.16.1" machine_version: "0.12.2" distribution_version: "2.6" +ucp_versions: + - version: "2.2" + latest: true + path: /datacenter/ucp/2.2/guides/ + - version: "2.1" + path: /datacenter/ucp/2.1/guides/ + - version: "2.0" + path: /datacenter/ucp/2.0/guides/ + - version: "1.1" + path: /datacenter/ucp/1.1/overview/ + +dtr_versions: + - version: "2.3" + latest: true + path: /datacenter/dtr/2.3/guides/ + - version: "2.2" + path: /datacenter/dtr/2.2/guides/ + - version: "2.1" + path: /datacenter/dtr/2.1/guides/ + - version: "2.0" + path: /datacenter/dtr/2.0/ + collections: samples: output: true @@ -111,6 +133,7 @@ defaults: values: ucp_latest_image: "docker/ucp:2.2.3" dtr_latest_image: "docker/dtr:2.3.4" + enterprise: true - scope: path: "datacenter/dtr/2.3" values: diff --git a/_includes/ee_dropdown.html b/_includes/ee_dropdown.html new file mode 100644 index 0000000000..63416a055a --- /dev/null +++ b/_includes/ee_dropdown.html @@ -0,0 +1,33 @@ +{% if page.path contains "ucp" %} + {% capture currentDoc %}UCP version {{ page.ucp_version }}{% endcapture %} + {% capture dropdown %} + + {% endcapture %} +{% endif %} +{% if page.path contains "dtr" %} + {% capture currentDoc %}DTR version {{ page.dtr_version }}{% endcapture %} + {% capture dropdown %} + + {% endcapture %} +{% endif %} + +

These are the docs for {{ currentDoc }}

+

To select a different version, use the selector below.

+

{{ dropdown }}

+
diff --git a/_layouts/docs.html b/_layouts/docs.html index 5145eccfa2..6613c91ccb 100644 --- a/_layouts/docs.html +++ b/_layouts/docs.html @@ -96,8 +96,9 @@ - {% seo %} {% if page.hide_from_sitemap %} - {% endif %} + + {% seo %} + {% if page.hide_from_sitemap %}{% endif %}
@@ -115,7 +116,9 @@ {% else %} {% if page.title %}

{{ page.title }}

{% endif %} {% if page.advisory %} -
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false %}{% include read_time.html %}{% endunless %}{{ content }} +
{{ site.data.advisories.texts[page.advisory] | markdownify }}
{% endif %}{% endif %} {% unless page.tree == false %}{% include read_time.html %}{% endunless %} + {% if page.enterprise %}{% include ee_dropdown.html %}{% endif %} + {{ content }} {% unless page.notags == true %} {% assign keywords = page.keywords | split:"," %}