diff --git a/docs/assets/plugins/metadata/metadata.js b/docs/assets/plugins/metadata/metadata.js index 11983dadb..e62a5836b 100644 --- a/docs/assets/plugins/metadata/metadata.js +++ b/docs/assets/plugins/metadata/metadata.js @@ -1,4 +1,6 @@ (() => { + const isDev = location.hostname === 'localhost'; + const isNext = location.hostname === 'next.shoelace.style'; const customElements = fetch('/dist/custom-elements.json') .then(res => res.json()) .catch(err => console.error(err)); @@ -280,7 +282,7 @@ // Add version const version = document.createElement('div'); version.classList.add('sidebar-version'); - version.textContent = metadata.package.version; + version.textContent = isDev ? 'Development' : isNext ? 'Next' : metadata.package.version; target.appendChild(version); // Add repo buttons