diff --git a/docs/CNAME b/docs/CNAME deleted file mode 100644 index 1cddf7cd7..000000000 --- a/docs/CNAME +++ /dev/null @@ -1 +0,0 @@ -docs.edgexfoundry.org \ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index d6cf9e788..000000000 --- a/docs/index.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - Redirecting - - - - - \ No newline at end of file diff --git a/docs/versions.json b/docs/versions.json deleted file mode 100644 index a25a9f541..000000000 --- a/docs/versions.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - {"version": "1.1", "title": "1.1-Fuji", "aliases": []}, - {"version": "1.2", "title": "1.2-Geneva", "aliases": []} -] \ No newline at end of file diff --git a/docs_src/assets/javascripts/version-select.js b/docs_src/assets/javascripts/version-select.js index 0fdd90ec7..3dc99017d 100644 --- a/docs_src/assets/javascripts/version-select.js +++ b/docs_src/assets/javascripts/version-select.js @@ -57,7 +57,8 @@ window.addEventListener("DOMContentLoaded", function () { if (this.value === '1.1') { window.location.href = "https://fuji-docs.edgexfoundry.org" } else { - window.location.href = "/" + this.value; + // replace version in the beginning of path with selected version + window.location.pathname = window.location.pathname.replace(/^\/(\d.\d)\//, `/${this.value}/`); } }); diff --git a/versions.json b/versions.json deleted file mode 100644 index a25a9f541..000000000 --- a/versions.json +++ /dev/null @@ -1,4 +0,0 @@ -[ - {"version": "1.1", "title": "1.1-Fuji", "aliases": []}, - {"version": "1.2", "title": "1.2-Geneva", "aliases": []} -] \ No newline at end of file