Skip to content

Commit dbb13f2

Browse files
committed
TCR-500 small fixes + TCR-520
1 parent 175ce8e commit dbb13f2

3 files changed

Lines changed: 23 additions & 5 deletions

File tree

docs/.vuepress/headFunctions.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,16 @@ export default [
2929
(function() {
3030
var routes = ${JSON.stringify(routes)};
3131
32-
// Function to normalize a URL by removing a trailing slash
32+
// Function to normalize a URL by removing a trailing slash and leading characters
3333
function normalizeUrl(url) {
34-
return url.endsWith('/') ? url.slice(0, -1) : url;
34+
url = url.endsWith('/') ? url.slice(0, -1) : url;
35+
url = url.startsWith('/') ? url.slice(1) : url;
36+
url = url.startsWith('?') ? url.slice(1) : url;
37+
return url;
3538
}
3639
37-
var currentPath = normalizeUrl(window.location.pathname + window.location.hash);
40+
var currentPath = window.location.pathname + window.location.search + window.location.hash;
41+
currentPath = normalizeUrl(currentPath);
3842
3943
for (var route_url in routes) {
4044
if (normalizeUrl(route_url) === currentPath) {
@@ -68,4 +72,5 @@ export default [
6872
`,
6973
]
7074
];
75+
7176

docs/.vuepress/routes.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,6 @@
4848
"/python_selector/#installation":"/cloudlinuxos/cloudlinux_os_components/#installation-1",
4949
"/user-docs/user-docs-shared-cloudlinux/#acceleratewp":"/user-docs/user-docs-shared-pro-cloudlinux/#acceleratewp",
5050
"/cloudlinux-os-plus":"/cloudlinuxos/shared-pro/",
51-
"/cloudlinuxos": "/cloudlinuxos/cloudlinux_installation/#installation"
51+
"/cloudlinuxos": "/cloudlinuxos/cloudlinux_installation/#installation",
52+
"/shared": "/cloudlinuxos/"
5253
}

docs/cloudlinuxos/cloudlinux_os_components/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5604,7 +5604,19 @@ OpenLiteSpeed is not compatible with Python Selector due to lack of `.htaccess`
56045604
56055605
### Supported versions
56065606
5607-
![](/images/cloudlinuxos/cloudlinux_os_components/Python_supported_versions.webp)
5607+
| CloudLinux 6 | CloudLinux 7 | CloudLinux 8 | CloudLinux 9 |
5608+
|---------------|---------------|---------------|---------------|
5609+
| alt-python 2.7 | alt-python 2.7 | alt-python 2.7 | alt-python 2.7 |
5610+
| alt-python 3.3 | alt-python 3.3 | alt-python 3.3 | alt-python 3.3 |
5611+
| alt-python 3.4 | alt-python 3.4 | alt-python 3.4 | alt-python 3.4 |
5612+
| alt-python 3.5 | alt-python 3.5 | alt-python 3.5 | alt-python 3.5 |
5613+
| alt-python 3.6 | alt-python 3.6 | alt-python 3.6 | alt-python 3.6 |
5614+
| alt-python 3.7 | alt-python 3.7 | alt-python 3.7 | alt-python 3.7 |
5615+
| alt-python 3.8 | alt-python 3.8 | alt-python 3.8 | alt-python 3.8 |
5616+
| alt-python 3.9 | alt-python 3.9 | alt-python 3.9 | alt-python 3.9 |
5617+
| alt-python 3.11| alt-python 3.10| alt-python 3.10| alt-python 3.10|
5618+
| | alt-python 3.11| alt-python 3.11| alt-python 3.11|
5619+
| | alt-python 3.12| alt-python 3.12| alt-python 3.12|
56085620
56095621
### Installation
56105622

0 commit comments

Comments
 (0)