Skip to content

Commit

Permalink
docs: ✏️ 添加闭包相关内容
Browse files Browse the repository at this point in the history
  • Loading branch information
vxow committed May 29, 2024
1 parent 592d8ed commit c077ed9
Show file tree
Hide file tree
Showing 16 changed files with 1,446 additions and 648 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: .vitepress/dist
user_name: 幺幺灵久
user_name: 幺幺零玖
user_email: gmj413966791@163.com
2 changes: 1 addition & 1 deletion .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getPosts } from './theme/serverUtils'
const navize = 10

export default defineConfig({
title: '幺幺灵久',
title: '幺幺零玖',
description: 'A VitePress Site',
themeConfig: {
outline: {
Expand Down
29 changes: 15 additions & 14 deletions .vitepress/theme/components/Copyright.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
<template>
<div class="site-footer">
MIT Licensed | Copyright © 2024-present <a class="vitepress" :href="website">{{ webTitle }}</a><br />
Powered by <a class="vitepress" target="_blank" href="//vitepress.vuejs.org/">VitePress - 1.1.4</a>
</div>
</template>
<script lang="ts" setup>
import { useData } from 'vitepress'
Expand All @@ -12,18 +6,25 @@ const website = theme.value.website
const webTitle = site.value.title
</script>

<template>
<div class="site-footer">
MIT Licensed | Copyright © 2024-present <a class="vitepress" :href="website">{{ webTitle }}</a><br>
Powered by <a class="vitepress" target="_blank" href="//vitepress.vuejs.org/">VitePress</a>
</div>
</template>

<style>
.site-footer {
color: #888;
text-align: center;
font-size: 0.75rem;
width: 100%;
padding: 15px 0;
overflow: auto;
color: #888;
text-align: center;
font-size: 0.75rem;
width: 100%;
padding: 15px 0;
overflow: auto;
}
.vitepress {
color: var(--vp-c-text-1);
font-weight: 700;
color: var(--vp-c-text-1);
font-weight: 700;
}
</style>
191 changes: 0 additions & 191 deletions .vitepress/theme/custom.css

This file was deleted.

22 changes: 11 additions & 11 deletions .vitepress/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ import Tags from './components/Tags.vue'
import Page from './components/Page.vue'
import Comment from './components/Comment.vue'

import './custom.css'
import './style.scss'

export default {
...DefaultTheme,
Layout: NewLayout,
enhanceApp({ app }) {
// register global compoment
app.component('Tags', Tags)
app.component('Category', Category)
app.component('Archives', Archives)
app.component('Page', Page)
app.component('Comment', Comment)
}
...DefaultTheme,
Layout: NewLayout,
enhanceApp({ app }) {
// register global compoment
app.component('Tags', Tags)
app.component('Category', Category)
app.component('Archives', Archives)
app.component('Page', Page)
app.component('Comment', Comment)
},
}
Loading

0 comments on commit c077ed9

Please sign in to comment.