@sugarat/theme 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/node.js CHANGED
@@ -36,7 +36,7 @@ __export(node_exports, {
36
36
  });
37
37
  module.exports = __toCommonJS(node_exports);
38
38
 
39
- // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.20_vue@3.3.4/node_modules/vitepress-plugin-tabs/dist/index.js
39
+ // ../../node_modules/.pnpm/vitepress-plugin-tabs@0.2.0_vitepress@1.0.0-rc.24_vue@3.3.4/node_modules/vitepress-plugin-tabs/dist/index.js
40
40
  var tabsMarker = "=tabs";
41
41
  var tabsMarkerLen = tabsMarker.length;
42
42
  var ruleBlockTabs = (state, startLine, endLine, silent) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sugarat/theme",
3
- "version": "0.2.5",
3
+ "version": "0.2.7",
4
4
  "description": "简约风的 Vitepress 博客主题,sugarat vitepress blog theme",
5
5
  "author": "sugar",
6
6
  "license": "MIT",
@@ -47,12 +47,14 @@
47
47
  "vitepress-plugin-tabs": "0.2.0"
48
48
  },
49
49
  "devDependencies": {
50
+ "@documate/documate": "^0.2.1",
51
+ "@documate/vue": "^0.3.1",
50
52
  "@element-plus/icons-vue": "^2.1.0",
51
53
  "element-plus": "^2.3.4",
52
54
  "pagefind": "1.0.3",
53
55
  "sass": "^1.56.1",
54
56
  "typescript": "^4.8.2",
55
- "vitepress": "1.0.0-rc.20",
57
+ "vitepress": "1.0.0-rc.24",
56
58
  "vue": "^3.3.4"
57
59
  },
58
60
  "scripts": {
@@ -62,6 +64,7 @@
62
64
  "build": "npm run build:node && npm run build:docs",
63
65
  "build:docs": "vitepress build docs",
64
66
  "build:node": "npx tsup",
65
- "serve": "vitepress serve docs"
67
+ "serve": "vitepress serve docs",
68
+ "documate:upload": "documate upload"
66
69
  }
67
70
  }
@@ -41,11 +41,9 @@ const { Layout } = Theme
41
41
  <BlogImagePreview />
42
42
  </template>
43
43
 
44
- <!-- 自定义搜索,替代Algolia,未来择机移除 -->
45
- <!-- <template #nav-bar-content-before>
44
+ <template #nav-bar-content-before>
46
45
  <slot name="nav-bar-content-before" />
47
- <BlogSearch />
48
- </template> -->
46
+ </template>
49
47
  <!-- 自定义首页 -->
50
48
  <template v-if="isBlogTheme" #home-hero-before>
51
49
  <slot name="home-hero-before" />
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import { useData } from 'vitepress'
2
+ import { useData, withBase } from 'vitepress'
3
3
  import { computed } from 'vue'
4
4
  import { useBlogConfig } from '../composables/config/blog'
5
5
 
@@ -22,7 +22,7 @@ const show = computed(() => author.value || logo.value)
22
22
 
23
23
  <template>
24
24
  <div v-if="show" class="blog-author">
25
- <img v-if="logo" :src="logo" alt="avatar">
25
+ <img v-if="logo" :src="withBase(logo)" alt="avatar">
26
26
  <p v-if="author">
27
27
  {{ author }}
28
28
  </p>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import { useData } from 'vitepress'
2
+ import { useData, withBase } from 'vitepress'
3
3
  import { computed } from 'vue'
4
4
  import { useWindowSize } from '@vueuse/core'
5
5
  import { useBlogConfig } from '../composables/config/blog'
@@ -20,7 +20,7 @@ const alwaysHide = computed(() => frontmatter.value.blog?.minScreenAvatar === fa
20
20
 
21
21
  <template>
22
22
  <div v-show="inMiniScreen && !alwaysHide" class="blog-home-header-avatar">
23
- <img :src="logo" alt="avatar">
23
+ <img :src="withBase(logo)" alt="avatar">
24
24
  </div>
25
25
  </template>
26
26