You've already forked AstralRinth
forked from didirus/AstralRinth
Make current code library + add docs
This commit is contained in:
13
docs/.vitepress/theme/DemoContainer.vue
Normal file
13
docs/.vitepress/theme/DemoContainer.vue
Normal file
@@ -0,0 +1,13 @@
|
||||
<template>
|
||||
<div class="demo bg-raised radius-lg padding-md"><slot /></div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.demo {
|
||||
border: 1px solid var(--color-button-bg);
|
||||
}
|
||||
</style>
|
||||
17
docs/.vitepress/theme/compat.scss
Normal file
17
docs/.vitepress/theme/compat.scss
Normal file
@@ -0,0 +1,17 @@
|
||||
body {
|
||||
color: var(--vp-c-text-1);
|
||||
background-color: var(--vp-c-bg);
|
||||
}
|
||||
|
||||
.VPLink, .title, .pager-link, .link, .header-anchor {
|
||||
color: inherit;
|
||||
transition: none;
|
||||
|
||||
&:hover {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:active:not(&:disabled) {
|
||||
scale: 1;
|
||||
}
|
||||
}
|
||||
14
docs/.vitepress/theme/index.js
Normal file
14
docs/.vitepress/theme/index.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import Omorphia from 'omorphia'
|
||||
import DemoContainer from './DemoContainer.vue'
|
||||
|
||||
|
||||
import './compat.scss'
|
||||
|
||||
export default {
|
||||
...DefaultTheme,
|
||||
enhanceApp(ctx) {
|
||||
ctx.app.use(Omorphia)
|
||||
ctx.app.component('DemoContainer', DemoContainer)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user