From 03e3fce37fb9450730f78735e8866de84d225a82 Mon Sep 17 00:00:00 2001 From: Miki Date: Wed, 6 Oct 2021 09:09:49 -0700 Subject: [PATCH] Add `.x` suffix to versions selector Signed-off-by: Miki --- assets/js/_version-selector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/_version-selector.js b/assets/js/_version-selector.js index 0198ef15..71e073d2 100644 --- a/assets/js/_version-selector.js +++ b/assets/js/_version-selector.js @@ -143,10 +143,10 @@ class VersionSelector extends HTMLElement { const {shadowRoot} = this; const frag = this._makeFragment(tpl); - frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}`; + frag.querySelector('#selected').textContent = `${PREFIX}${this.getAttribute('selected')}.x`; const pathName = location.pathname.replace(/\/docs(\/((latest|\d+\.\d+)\/?)?)?/, ''); - const versionsDOMText = DOC_VERSIONS.map((v, idx) => `${PREFIX}${v}`) + const versionsDOMText = DOC_VERSIONS.map((v, idx) => `${PREFIX}${v}.x`) .join(''); frag.querySelector('#dropdown').appendChild(this._makeFragment(versionsDOMText));