doc: documentation is now in the same repository as the code

Demo site will be generated in subfolder /demo
This commit is contained in:
Jimmy Cai
2023-09-11 18:16:29 +02:00
parent 9b643df3aa
commit 692804498d
32 changed files with 2005 additions and 29 deletions
+6
View File
@@ -0,0 +1,6 @@
:root {
--vp-c-brand-1: var(--vp-c-green-1);
--vp-c-brand-2: var(--vp-c-green-2);
--vp-c-brand-3: var(--vp-c-green-3);
--vp-c-brand-soft: var(--vp-c-green-soft);
}
+15
View File
@@ -0,0 +1,15 @@
import DefaultTheme from 'vitepress/theme'
import './custom.css'
export default {
...DefaultTheme,
enhanceApp({ router }) {
const oldOnAfterRouteChanged = router.onAfterRouteChanged;
router.onAfterRouteChanged = () => {
oldOnAfterRouteChanged && oldOnAfterRouteChanged();
if (typeof _carbonads !== 'undefined')
_carbonads.refresh();
}
}
}