Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
BBleae committed Jul 19, 2024
1 parent 9362c5f commit 4bfb386
Show file tree
Hide file tree
Showing 18 changed files with 2,398 additions and 2,128 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

2 changes: 1 addition & 1 deletion .obsidian/graph.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
"linkDistance": 400,
"scale": 0.2195571709619205,
"close": true
}
}
2 changes: 1 addition & 1 deletion .obsidian/workspace.json
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@
"笔记/🧱 基础设施/🚢 Kubernetes/用方便好用的工具快速创建测试用的集群.md",
"未命名.canvas"
]
}
}
3 changes: 1 addition & 2 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,8 @@ import { InlineLinkPreviewElementTransform } from '@nolebase/vitepress-plugin-in
import { buildEndGenerateOpenGraphImages } from '@nolebase/vitepress-plugin-og-image'
import { UnlazyImages } from '@nolebase/markdown-it-unlazy-img'

import { replace } from 'lodash'
import { githubRepoLink, siteDescription, siteName, targetDomain } from '../metadata'
import { creatorNames, creatorUsernames } from './creators'
import { creatorUsernames } from './creators'
import { sidebar } from './docsMetadata.json'

export default defineConfig({
Expand Down
4 changes: 2 additions & 2 deletions .vitepress/creators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getAvatarUrl = (name: string) => `https://github.com/${name}.png`
export const Authors: Creator[] = [
{
name: '朵琳',
avatar:'',
avatar: '',
username: 'Dolyn157',
title: '地霊殿音楽収蔵館的主编',
desc: '地霊殿音楽収蔵館的主编和站长,负责本站的内容创作和维护',
Expand All @@ -31,7 +31,7 @@ export const Authors: Creator[] = [
],
mapByNameAliases: ['Gwyndolyn', '朵琳'],
mapByEmailAliases: [''],
}
},
].map<Creator>((c) => {
c.avatar = c.avatar || getAvatarUrl(c.username)
return c as Creator
Expand Down
3 changes: 1 addition & 2 deletions .vitepress/theme/components/AboutNolebase.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<script setup lang="ts">
import { VPTeamMembers } from 'vitepress/theme'
import { creators } from '../../creators'
</script>

<template>
Expand All @@ -19,4 +18,4 @@ import { creators } from '../../creators'
</main>
</div>
</div>
</template>
</template>
11 changes: 2 additions & 9 deletions .vitepress/theme/components/HomePage.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<script setup lang="ts">
import { VPTeamMembers } from 'vitepress/theme'
import { Authors, creators } from '../../creators'
import { siteName } from '../../../metadata'
</script>

<template>
<div class="content">
<div class="content-container">
<main class="main">
<div class="vp-doc" mt-10 flex flex-col items-center>
<h2 id="meet-the-team" font-normal op50 p="t-10 b-2">

</h2>
<div w-full p-10>

</div>
<h2 id="meet-the-team" font-normal op50 p="t-10 b-2" />
<div w-full p-10 />
</div>
</main>
</div>
Expand Down
12 changes: 6 additions & 6 deletions .vitepress/theme/components/MyDocTop.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
import {ref} from 'vue'
</script>

<template>
<div class="banner">
<img src="./assets/bannerPi.png" class="bannerPic">
</div>
<div class="banner">
<img src="./assets/bannerPi.png" class="bannerPic">
</div>
</template>
<style>

<style>
.banner {
z-index: 2;
position: relative;
Expand All @@ -22,7 +22,7 @@ import {ref} from 'vue'
.bannerPic {
position: relative;
top: 0px;
border: 1px solid #000000;
box-shadow: 0px 4px 4px 0px #00000040;
width: auto;
Expand Down
19 changes: 8 additions & 11 deletions .vitepress/theme/components/MyVPHero.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,13 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
</script>

<template>

<div class="VPHero" :class="{ 'has-image': image || heroImageSlotExists }">
<div class="container">

<div v-if="image || heroImageSlotExists" class="image">
<div v-if="image || heroImageSlotExists" class="image">
<div class="image-container">
<div class="image-bg" />
<slot name="home-hero-image">
<VPImage v-if="image" class="image-src" :image="image" />
<VPImage v-if="image" class="image-src" :image="image" />
</slot>
</div>
</div>
Expand All @@ -41,10 +39,10 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
<slot name="home-hero-info-before" />
<slot name="home-hero-info">
<h1 v-if="name" class="name">
<span v-html="name" class="clip"></span>
<span class="clip" v-html="name" />
</h1>
<p v-if="text" v-html="text" class="text"></p>
<p v-if="tagline" v-html="tagline" class="tagline"></p>
<p v-if="text" class="text" v-html="text" />
<p v-if="tagline" class="tagline" v-html="tagline" />
</slot>
<slot name="home-hero-info-after" />

Expand Down Expand Up @@ -78,7 +76,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
flex-direction: column;
align-items: center;
max-width: 800px;
margin: 0 auto;
}
Expand Down Expand Up @@ -121,7 +119,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
font-size: 32px;
font-weight: 700;
white-space: pre-wrap;
}
.VPHero.has-image .name,
Expand Down Expand Up @@ -197,7 +195,6 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
}
}
.action{
margin-left: 6px;
Expand All @@ -210,7 +207,7 @@ const heroImageSlotExists = inject('hero-image-slot-exists') as Ref<boolean>
margin: -6px;
margin-left: -9px;
padding-top: 24px;
}
.VPHero.has-image .actions {
Expand Down
4 changes: 3 additions & 1 deletion .vitepress/theme/components/Share.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ async function getShareLink(): Promise<string> {
if (
window.location.hostname !== plainTargetDomain
|| window.location.pathname.length <= 20
) return window.location.href
) {
return window.location.href
}
const url = window.location.href
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const ExtendedTheme: Theme = {
// https://vitepress.dev/guide/extending-default-theme#layout-slots
'doc-top': () => [
h(NolebaseHighlightTargetedHeading),

],
'doc-footer-before': () => [
h(DocFooter),
Expand Down
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
from = "/*"
to = "/index.html"
status = 200
74 changes: 38 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,57 +13,59 @@
"docs:build": "pnpm run update && vitepress build",
"docs:serve": "vitepress serve",
"update": "tsx scripts/update.ts",
"test": "echo \"Error: no test specified\" && exit 1"
"lint": "eslint .",
"lint:fix": "eslint --fix ."
},
"dependencies": {
"nolebase": "link:"
},
"devDependencies": {
"@antfu/eslint-config": "^2.18.0",
"@antfu/eslint-config": "^2.23.0",
"@iconify-json/eos-icons": "^1.1.10",
"@iconify-json/ic": "^1.1.17",
"@iconify-json/octicon": "^1.1.54",
"@iconify-json/icon-park-outline": "^1.1.15",
"@iconify-json/octicon": "^1.1.56",
"@iconify-json/svg-spinners": "^1.1.2",
"@netlify/functions": "^1.6.0",
"@nolebase/markdown-it-bi-directional-links": "2.0.0-rc14",
"@nolebase/markdown-it-unlazy-img": "2.0.0-rc14",
"@nolebase/vitepress-plugin-enhanced-readabilities": "2.0.0-rc14",
"@nolebase/vitepress-plugin-git-changelog": "2.0.0-rc14",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "2.0.0-rc14",
"@nolebase/vitepress-plugin-inline-link-preview": "2.0.0-rc14",
"@nolebase/vitepress-plugin-og-image": "2.0.0-rc14",
"@nolebase/vitepress-plugin-page-properties": "2.0.0-rc14",
"@nolebase/vitepress-plugin-thumbnail-hash": "2.0.0-rc14",
"@netlify/functions": "^2.8.1",
"@nolebase/markdown-it-bi-directional-links": "2.2.2",
"@nolebase/markdown-it-unlazy-img": "2.2.2",
"@nolebase/vitepress-plugin-enhanced-readabilities": "2.2.2",
"@nolebase/vitepress-plugin-git-changelog": "2.2.2",
"@nolebase/vitepress-plugin-highlight-targeted-heading": "2.2.2",
"@nolebase/vitepress-plugin-inline-link-preview": "2.2.2",
"@nolebase/vitepress-plugin-og-image": "2.2.2",
"@nolebase/vitepress-plugin-page-properties": "2.2.2",
"@nolebase/vitepress-plugin-thumbnail-hash": "2.2.2",
"@types/fs-extra": "^11.0.4",
"@types/lodash": "^4.17.1",
"@types/markdown-it": "^12.2.3",
"@types/lodash": "^4.17.7",
"@types/markdown-it": "^14.1.1",
"@types/markdown-it-footnote": "^3.0.4",
"@types/node-fetch": "^2.6.11",
"@unocss/eslint-config": "^0.58.9",
"@unocss/reset": "^0.58.9",
"@vueuse/core": "^10.9.0",
"@vueuse/shared": "^10.9.0",
"@unocss/eslint-config": "^0.61.5",
"@unocss/reset": "^0.61.5",
"@vueuse/core": "^10.11.0",
"@vueuse/shared": "^10.11.0",
"emoji-regex": "^10.3.0",
"eslint": "^8.57.0",
"eslint": "^9.7.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"gray-matter": "^4.0.3",
"less": "^4.2.0",
"lodash": "^4.17.21",
"markdown-it": "^13.0.2",
"markdown-it-footnote": "^3.0.3",
"markdown-it": "^14.1.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-mathjax3": "^4.3.2",
"node-fetch": "^3.3.2",
"sharp": "^0.32.6",
"simple-git": "^3.24.0",
"tsx": "^4.10.3",
"typescript": "^5.4.5",
"unocss": "^0.58.9",
"unplugin-vue-components": "^0.26.0",
"uuid": "^9.0.1",
"vite": "^5.2.11",
"vite-plugin-inspect": "^0.8.4",
"vitepress": "^1.1.4",
"vue": "^3.4.27"
},
"dependencies": {
"nolebase": "link:"
"sharp": "^0.33.4",
"simple-git": "^3.25.0",
"tsx": "^4.16.2",
"typescript": "^5.5.3",
"unocss": "^0.61.5",
"unplugin-vue-components": "^0.27.3",
"uuid": "^10.0.0",
"vite": "^5.3.4",
"vite-plugin-inspect": "^0.8.5",
"vitepress": "^1.3.1",
"vue": "^3.4.33"
}
}
Loading

0 comments on commit 4bfb386

Please sign in to comment.