~ruther/qmk_firmware

ref: 41dbb4c86c2afd45480ed38c0d5f058eef41a92f qmk_firmware/builddefs/docsgen/.vitepress/theme/QMKLayout.vue -rw-r--r-- 483 bytes
41dbb4c8 — Alex Mayer Fix Vitamins Included Keymap Formatting (#23803) 1 year, 5 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<script setup>
import DefaultTheme from 'vitepress/theme'
import { useRouter } from 'vitepress'
import { onBeforeMount } from 'vue';

const router = useRouter()
onBeforeMount(async () => {
    if (window.location.href.includes('/#/')) {
        const newUrl = window.location.href.replace(/\/#\//, '/').replace(/\?id=/, '#');
        window.history.replaceState({}, '', newUrl);
        await router.go(newUrl);
    }
});
</script>

<template>
    <DefaultTheme.Layout/>
</template>
Do not follow this link