mirror of
https://github.com/fiatjaf/khatru.git
synced 2026-06-05 10:11:14 +02:00
add docs.
This commit is contained in:
11
docs/.vitepress/theme/Layout.vue
Normal file
11
docs/.vitepress/theme/Layout.vue
Normal file
@@ -0,0 +1,11 @@
|
||||
<script setup>
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
const {Layout} = DefaultTheme
|
||||
</script>
|
||||
<template>
|
||||
<Layout>
|
||||
<template #layout-bottom>
|
||||
<div class="khatru-layout-bottom">~</div>
|
||||
</template>
|
||||
</Layout>
|
||||
</template>
|
||||
24
docs/.vitepress/theme/custom.css
Normal file
24
docs/.vitepress/theme/custom.css
Normal file
@@ -0,0 +1,24 @@
|
||||
:root {
|
||||
--vp-c-brand-1: #2eafab;
|
||||
--vp-c-brand-2: #30373b;
|
||||
--vp-c-brand-3: #3b6a3e;
|
||||
--vp-button-brand-bg: #2eafab;
|
||||
--vp-button-brand-hover-bg: #3b6a3e;
|
||||
--vp-button-brand-active-bg: #30373b;
|
||||
|
||||
--vp-c-bg: #f2e6e2;
|
||||
--vp-c-bg-soft: #f3f2f0;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--vp-c-bg: #0a0a08;
|
||||
--vp-c-bg-soft: #161a0e;
|
||||
}
|
||||
|
||||
.khatru-layout-bottom {
|
||||
margin: 2rem auto;
|
||||
width: 200px;
|
||||
text-align: center;
|
||||
font-family: monospace;
|
||||
font-size: 2rem;
|
||||
}
|
||||
8
docs/.vitepress/theme/index.mjs
Normal file
8
docs/.vitepress/theme/index.mjs
Normal file
@@ -0,0 +1,8 @@
|
||||
import DefaultTheme from 'vitepress/theme'
|
||||
import NostrifyLayout from './Layout.vue'
|
||||
import './custom.css'
|
||||
|
||||
export default {
|
||||
extends: DefaultTheme,
|
||||
Layout: NostrifyLayout
|
||||
}
|
||||
Reference in New Issue
Block a user