Skip to content

Commit 2e7b477

Browse files
committed
Update VitePress documentation assets
1 parent 7176e00 commit 2e7b477

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

assets/css/vitepress-documentation.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ a img {
44
display: inline !important;
55
}
66

7+
/* Sticky footer */
8+
footer {
9+
display: flex !important;
10+
}
11+
712
:root {
813
--ct-banner-height: 40px;
914
}

assets/js/vitepress-documentation.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,26 @@
3838
inject();
3939
}
4040
}());
41+
42+
window.onload = function() {
43+
44+
/* google analytics */
45+
window.dataLayer = window.dataLayer || [];
46+
function gtag(){dataLayer.push(arguments);}
47+
gtag('js', new Date());
48+
gtag('config', 'G-J27VDFHJW2');
49+
50+
/* ct favicon */
51+
var favicon = document.createElement('link');
52+
favicon.type = 'image/x-icon';
53+
favicon.rel = 'icon';
54+
favicon.href = 'https://control-toolbox.org/assets/img/ct-logo.svg';
55+
document.head.appendChild(favicon);
56+
57+
/* modify copyright text */
58+
var copyrightElement = document.querySelector('.VPFooter .copyright');
59+
if (copyrightElement) {
60+
copyrightElement.innerHTML = "© Copyright 2026 control-toolbox.";
61+
}
62+
63+
};

0 commit comments

Comments
 (0)