vuepress-theme-uniapp-official 1.4.12 → 1.4.13

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.
@@ -101,7 +101,6 @@ export default {
101
101
  </script>
102
102
 
103
103
  <style lang="stylus" scoped>
104
- $pages-tabs-header-height = 44px
105
104
  .page-runtime {
106
105
  display: flex;
107
106
  max-height: 667px;
@@ -111,10 +110,9 @@ $pages-tabs-header-height = 44px
111
110
  .page-snippet {
112
111
  width: 100%;
113
112
  overflow: hidden;
114
-
115
113
  }
116
114
  .page-snippet-code {
117
- height: calc(100% - $pages-tabs-header-height);
115
+ height: calc(100% - 44px)
118
116
  }
119
117
 
120
118
  .page-tabs {
@@ -123,7 +121,7 @@ $pages-tabs-header-height = 44px
123
121
  }
124
122
  .pages-tabs-header {
125
123
  display: flex;
126
- height: $pages-tabs-header-height;
124
+ height: 44px;
127
125
  background-color: #222;
128
126
  }
129
127
  .pages-tabs-header-text {
package/index.js CHANGED
@@ -19,10 +19,6 @@ const changeLoaderOptions = (options, key = 'name') => {
19
19
  return options;
20
20
  };
21
21
 
22
- const extensionMap = {
23
- uts: 'ts'
24
- }
25
-
26
22
  module.exports = (themeConfig, ctx, pluginAPI) => {
27
23
  pluginAPI.options.chainWebpack.add('assets-chunk-timestamp', (config, isServer) => {
28
24
  config.output.filename(`${nowString}/${config.output.get('filename')}`); //输出文件名
@@ -45,11 +41,6 @@ module.exports = (themeConfig, ctx, pluginAPI) => {
45
41
  })
46
42
 
47
43
  pluginAPI.options.extendMarkdown.add('vuepress-theme-uni-app-md-plugins', (md) =>{
48
- config.options.highlight((str, lang) => {
49
- const extension = extensionMap[lang]
50
- return highlight(str, extension || lang)
51
- })
52
-
53
44
  md.use(require('markdown-it-attrs'), {
54
45
  leftDelimiter: '#{',
55
46
  rightDelimiter: '}',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vuepress-theme-uniapp-official",
3
- "version": "1.4.12",
3
+ "version": "1.4.13",
4
4
  "description": "uni-app official website theme for vuepress",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -34,6 +34,7 @@
34
34
  "postpublish": "cnpm sync vuepress-theme-uni-app"
35
35
  },
36
36
  "dependencies": {
37
+ "@docsearch/css": "^3.6.0",
37
38
  "@vuepress/plugin-back-to-top": "^1.9.5",
38
39
  "algoliasearch": "^4.13.1",
39
40
  "clipboard": "^2.0.11",