-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
impl markdown highlighting customization
- Loading branch information
Showing
16 changed files
with
8,240 additions
and
66 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
:root { | ||
--vp-home-hero-name-color: transparent; | ||
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, rgb(86, 34, 191), rgb(251, 70, 202)); | ||
} | ||
} | ||
.VPImage { | ||
border-radius: 20%; | ||
} | ||
|
||
/* .markdown-page { | ||
} */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import { h } from "vue"; | ||
import { type Theme } from "vitepress"; | ||
import DefaultTheme from "vitepress/theme"; | ||
import "./style.css"; | ||
import "./custom.css"; | ||
import { h } from 'vue'; | ||
import { type Theme } from 'vitepress'; | ||
import DefaultTheme from 'vitepress/theme'; | ||
import './style.css'; | ||
import './custom.css'; | ||
import DocumentLayout from '../../components/DocumentLayout.vue'; | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}); | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
}, | ||
extends: DefaultTheme, | ||
Layout: () => { | ||
return h(DocumentLayout, null, { | ||
// https://vitepress.dev/guide/extending-default-theme#layout-slots | ||
}); | ||
}, | ||
enhanceApp({ app, router, siteData }) { | ||
// ... | ||
}, | ||
} satisfies Theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,33 @@ | ||
<template> | ||
<div class="site-footer"> | ||
MIT Licensed | Copyright © 2023- | ||
<a class="vitepress" :href="website">{{ webTitle }}</a | ||
><br /> | ||
Powered by | ||
<a class="vitepress" target="_blank" href="//vitepress.vuejs.org/" | ||
>VitePress - 1.0.0-rc.25</a | ||
> | ||
</div> | ||
<div class="site-footer"> | ||
MIT Licensed | Copyright © 2023-present | ||
<a class="bold" href="/~https://github.com/sharpchen/sharpchen.github.io" target="_blank"> | ||
{{ webTitle }} | ||
</a> | ||
<br /> | ||
Powered by | ||
<a class="bold" target="_blank" href="//vitepress.vuejs.org/">VitePress - 1.0.0-rc.25</a> | ||
</div> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import { useData } from "vitepress"; | ||
import { useData } from 'vitepress'; | ||
const { site, theme } = useData(); | ||
const website = theme.value.website; | ||
const webTitle = site.value.title; | ||
const { site, theme } = useData(); | ||
const webTitle = site.value.titleTemplate; | ||
</script> | ||
|
||
<style scoped> | ||
.site-footer { | ||
color: #888; | ||
text-align: center; | ||
font-size: 0.75rem; | ||
width: 100%; | ||
padding: 15px 0; | ||
overflow: auto; | ||
} | ||
.bold { | ||
color: var(--vp-c-text-1); | ||
font-weight: 700; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<template> | ||
<Layout /> | ||
<!-- <Content /> --> | ||
<Copyright /> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import Copyright from '../components/Copyright.vue'; | ||
import DefaultTheme from 'vitepress/theme'; | ||
import { useSidebar } from 'vitepress/theme'; | ||
import { onMounted } from 'vue'; | ||
import VPSidebar from 'vitepress/dist/client/theme-default/components/VPSidebar.vue'; | ||
import VPSidebarItem from 'vitepress/dist/client/theme-default/components/VPSidebarItem.vue'; | ||
const { sidebarGroups } = useSidebar(); | ||
const { Layout } = DefaultTheme; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.