@vuepress/theme-default 2.0.0-rc.15 → 2.0.0-rc.17

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.
@@ -66,3 +66,10 @@ html.dark .DocSearch {
66
66
  --docsearch-footer-shadow: inset 0 1px 0 0 rgba(73, 76, 106, 0.5),
67
67
  0 -4px 8px 0 rgba(0, 0, 0, 0.2);
68
68
  }
69
+
70
+ // plugin-pwa
71
+ html.dark body {
72
+ --pwa-shadow-color: rgb(0 0 0 / 30%);
73
+ --pwa-content-color: #ccc;
74
+ --pwa-content-light-color: #999;
75
+ }
@@ -149,7 +149,7 @@ body {
149
149
  }
150
150
 
151
151
  // plugin-pwa-popup
152
- html {
152
+ body {
153
153
  --pwa-text-color: var(--c-text);
154
154
  --pwa-bg-color: var(--c-bg);
155
155
  --pwa-border-color: var(--c-brand);
@@ -158,12 +158,6 @@ html {
158
158
  --pwa-btn-hover-bg-color: var(--c-brand-light);
159
159
  }
160
160
 
161
- html.dark {
162
- --pwa-shadow-color: rgb(0 0 0 / 30%);
163
- --pwa-content-color: #ccc;
164
- --pwa-content-light-color: #999;
165
- }
166
-
167
161
  // plugin-redirect
168
162
  .language-modal-mask {
169
163
  --redirect-bg-color: var(--c-bg);
@@ -4,6 +4,7 @@ import { containerPlugin } from '@vuepress/plugin-container';
4
4
  import { copyCodePlugin } from '@vuepress/plugin-copy-code';
5
5
  import { externalLinkIconPlugin } from '@vuepress/plugin-external-link-icon';
6
6
  import { gitPlugin } from '@vuepress/plugin-git';
7
+ import { linksCheckPlugin } from '@vuepress/plugin-links-check';
7
8
  import { mediumZoomPlugin } from '@vuepress/plugin-medium-zoom';
8
9
  import { nprogressPlugin } from '@vuepress/plugin-nprogress';
9
10
  import { palettePlugin } from '@vuepress/plugin-palette';
@@ -109,6 +110,12 @@ export const defaultTheme = ({ hostname, themePlugins = {}, ...localeOptions } =
109
110
  contributors: localeOptions.contributors !== false,
110
111
  })
111
112
  : [],
113
+ // @vuepress/plugin-links-check
114
+ themePlugins.linksCheck !== false
115
+ ? linksCheckPlugin(isPlainObject(themePlugins.linksCheck)
116
+ ? themePlugins.linksCheck
117
+ : {})
118
+ : [],
112
119
  // @vuepress/plugin-medium-zoom
113
120
  themePlugins.mediumZoom !== false
114
121
  ? mediumZoomPlugin({
@@ -1,5 +1,6 @@
1
1
  import type { BackToTopPluginOptions } from '@vuepress/plugin-back-to-top';
2
2
  import type { CopyCodePluginOptions } from '@vuepress/plugin-copy-code';
3
+ import type { LinksCheckPluginOptions } from '@vuepress/plugin-links-check';
3
4
  import type { SeoPluginOptions } from '@vuepress/plugin-seo';
4
5
  import type { SitemapPluginOptions } from '@vuepress/plugin-sitemap';
5
6
  import type { ThemeData } from '@vuepress/plugin-theme-data';
@@ -37,6 +38,10 @@ export interface DefaultThemePluginsOptions {
37
38
  * Enable @vuepress/plugin-git or not
38
39
  */
39
40
  git?: boolean;
41
+ /**
42
+ * Enable @vuepress/plugin-links-check or not
43
+ */
44
+ linksCheck?: LinksCheckPluginOptions | boolean;
40
45
  /**
41
46
  * Enable @vuepress/plugin-medium-zoom or not
42
47
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/theme-default",
3
- "version": "2.0.0-rc.15",
3
+ "version": "2.0.0-rc.17",
4
4
  "description": "Default theme of VuePress",
5
5
  "keywords": [
6
6
  "vuepress-theme",
@@ -42,22 +42,23 @@
42
42
  "copy": "cpx \"src/**/*.{d.ts,vue,scss}\" lib"
43
43
  },
44
44
  "dependencies": {
45
- "@vuepress/helper": "~2.0.0-rc.15",
46
- "@vuepress/plugin-active-header-links": "~2.0.0-rc.15",
47
- "@vuepress/plugin-back-to-top": "~2.0.0-rc.15",
48
- "@vuepress/plugin-container": "2.0.0-rc.15",
49
- "@vuepress/plugin-copy-code": "~2.0.0-rc.15",
45
+ "@vuepress/helper": "~2.0.0-rc.17",
46
+ "@vuepress/plugin-active-header-links": "~2.0.0-rc.17",
47
+ "@vuepress/plugin-back-to-top": "~2.0.0-rc.17",
48
+ "@vuepress/plugin-container": "~2.0.0-rc.15",
49
+ "@vuepress/plugin-copy-code": "~2.0.0-rc.17",
50
50
  "@vuepress/plugin-external-link-icon": "~2.0.0-rc.15",
51
- "@vuepress/plugin-git": "2.0.0-rc.15",
52
- "@vuepress/plugin-medium-zoom": "~2.0.0-rc.15",
51
+ "@vuepress/plugin-git": "~2.0.0-rc.15",
52
+ "@vuepress/plugin-links-check": "~2.0.0-rc.17",
53
+ "@vuepress/plugin-medium-zoom": "~2.0.0-rc.17",
53
54
  "@vuepress/plugin-nprogress": "~2.0.0-rc.15",
54
55
  "@vuepress/plugin-palette": "~2.0.0-rc.15",
55
- "@vuepress/plugin-prismjs": "2.0.0-rc.15",
56
- "@vuepress/plugin-seo": "~2.0.0-rc.15",
57
- "@vuepress/plugin-sitemap": "~2.0.0-rc.15",
56
+ "@vuepress/plugin-prismjs": "~2.0.0-rc.15",
57
+ "@vuepress/plugin-seo": "~2.0.0-rc.17",
58
+ "@vuepress/plugin-sitemap": "~2.0.0-rc.17",
58
59
  "@vuepress/plugin-theme-data": "~2.0.0-rc.15",
59
- "@vueuse/core": "^10.7.2",
60
- "sass": "^1.71.0",
60
+ "@vueuse/core": "^10.8.0",
61
+ "sass": "^1.71.1",
61
62
  "vue": "^3.4.19"
62
63
  },
63
64
  "peerDependencies": {
@@ -72,5 +73,5 @@
72
73
  "publishConfig": {
73
74
  "access": "public"
74
75
  },
75
- "gitHead": "f85c8b1cf54e30b2267f6dbf27d06263d2cfbfbd"
76
+ "gitHead": "f1cd0f6d2b8bf9fb66cab5e1944e2bdd7459909f"
76
77
  }