vuepress-theme-uniapp-official 1.6.14 → 1.6.16

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/CHANGELOG.md ADDED
@@ -0,0 +1,201 @@
1
+ # vuepress-theme-uniapp-official
2
+
3
+ ## 1.6.16
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: 在 uni-app-x 下搜索到 uni-app 文档 plugin 内容时跳转 404
8
+
9
+ ## 1.6.15
10
+
11
+ ### Patch Changes
12
+
13
+ - feat: 搜索结果使用当前 origin
14
+ - a252012: feat: 自定义 code 添加圆角
15
+
16
+ ## 1.6.13
17
+
18
+ ### Patch Changes
19
+
20
+ - feat: 改进 navbar 显示
21
+
22
+ ## 1.6.12
23
+
24
+ ### Patch Changes
25
+
26
+ - fix: 兼容旧版 AI 回答数据
27
+
28
+ ## 1.6.11
29
+
30
+ ### Patch Changes
31
+
32
+ - feat: 提高 Popover 的 z-index
33
+ feat: Popover 组件支持鼠标 hover 弹出不隐藏
34
+ feat: AI 回答支持赞、踩
35
+
36
+ ## 1.6.10
37
+
38
+ ### Patch Changes
39
+
40
+ - feat: 更新请求 url
41
+ fix: input 输入错误判断逻辑
42
+
43
+ ## 1.6.9
44
+
45
+ ### Patch Changes
46
+
47
+ - fix: 问 AI 限制中文时判断条件错误
48
+
49
+ ## 1.6.8
50
+
51
+ ### Patch Changes
52
+
53
+ - feat: 问 AI 添加限制: 要有中文
54
+
55
+ ## 1.6.7
56
+
57
+ ### Patch Changes
58
+
59
+ - fix: AI 回答 code 代码颜色
60
+ feat: 搜索结果 AI 回答限制必须有中文
61
+
62
+ ## 1.6.6
63
+
64
+ ### Patch Changes
65
+
66
+ - fix: AI 回答 md 格式异常
67
+
68
+ ## 1.6.5
69
+
70
+ ### Patch Changes
71
+
72
+ - feat: 调整输入框样式,使用绝对定位
73
+ feat: 限制 AI 输入的字符长度
74
+
75
+ ## 1.6.4
76
+
77
+ ### Patch Changes
78
+
79
+ - style: 调整 AI 回答样式
80
+ fix: `1.` 等序号 marked 解析失败
81
+
82
+ ## 1.6.3
83
+
84
+ ### Patch Changes
85
+
86
+ - fix: vue 显示不高亮
87
+ - feat: 问 AI 添加上下文
88
+ - feat: 搜索结果添加 AI 回答
89
+
90
+ ## 1.6.2
91
+
92
+ ### Patch Changes
93
+
94
+ - fix: marked 版本过高导致 build error
95
+
96
+ ## 1.6.1
97
+
98
+ ### Patch Changes
99
+
100
+ - feat: 调整 AI 信息样式,容器宽度跟随文字
101
+ feat:调整搜索结果样式
102
+
103
+ ## 1.6.0
104
+
105
+ ### Minor Changes
106
+
107
+ - feat: 支持 AI
108
+
109
+ ## 1.5.4
110
+
111
+ ### Patch Changes
112
+
113
+ - fix: 问答社区、插件市场搜索结果样式失效
114
+ chore: 分离 animation 样式
115
+
116
+ ## 1.5.3
117
+
118
+ ### Patch Changes
119
+
120
+ - feat: 弹出时添加动画
121
+ feat: 搜索时重置搜索结果滚动条
122
+
123
+ ## 1.5.2
124
+
125
+ ### Patch Changes
126
+
127
+ - feat: 调整 search footer
128
+
129
+ ## 1.5.1
130
+
131
+ ### Patch Changes
132
+
133
+ - feat: 调整搜索页样式
134
+
135
+ ## 1.5.0
136
+
137
+ ### Minor Changes
138
+
139
+ - fix: 优化爬虫获取 H 标签
140
+
141
+ ## 1.4.44
142
+
143
+ ### Patch Changes
144
+
145
+ - Updated dependencies
146
+ - vuepress-plugin-noscript-code@1.0.2
147
+
148
+ ## 1.4.43
149
+
150
+ ### Patch Changes
151
+
152
+ - Updated dependencies
153
+ - vuepress-plugin-noscript-code@1.0.1
154
+
155
+ ## 1.4.42
156
+
157
+ ### Patch Changes
158
+
159
+ - feat: 新增 vuepress-plugin-noscript-code
160
+
161
+ ## 1.4.41
162
+
163
+ ### Patch Changes
164
+
165
+ - feat: 使用 SourceCode container 如果页面上没有 title 则改写 document.title
166
+
167
+ ## 1.4.40
168
+
169
+ ### Patch Changes
170
+
171
+ - feat: 新增 container sourceCode
172
+
173
+ ## 1.4.39
174
+
175
+ ### Patch Changes
176
+
177
+ - feat: 调整导航栏样式
178
+
179
+ ## 1.4.38
180
+
181
+ ### Patch Changes
182
+
183
+ - feat: 代码预览 web 示例 iframe 使用 lazy 加载
184
+
185
+ ## 1.4.36
186
+
187
+ ### Patch Changes
188
+
189
+ - fix: 优化在移动设备上侧边栏的显示效果
190
+
191
+ ## 1.4.35
192
+
193
+ ### Patch Changes
194
+
195
+ - chore: 移除无用代码
196
+
197
+ ## 1.4.34
198
+
199
+ ### Patch Changes
200
+
201
+ - feat: search 使用 extraFacetFilters 配置
@@ -162,10 +162,17 @@ const {
162
162
  aiChatForDocSearch = AI_CHAT_FOR_DOC_SEARCH_URL,
163
163
  } = searchPageConfig;
164
164
  const crawlerUrl = 'https://zh.uniapp.dcloud.io/'
165
+ const unidocsUrl = 'https://uniapp.dcloud.io/'
166
+ const docDcloudNetUrl = 'https://doc.dcloud.net.cn/'
165
167
 
166
168
  const resolveRoutePathFromUrl = (url, base = '/') => {
169
+ // uni-app-x、uniCloud (doc.dcloud.net.cn 域名下) 等独立站点不需要转换,只需要将爬虫的域名替换为正确域名即可
170
+ if (location.origin.includes(docDcloudNetUrl)) {
171
+ return url.replace(crawlerUrl, unidocsUrl)
172
+ }
173
+ // unidocs 文档分中英文,因此需要转换回当前站点域名 zh、en
167
174
  if (url.indexOf(crawlerUrl) === 0) {
168
- return url.replace(crawlerUrl, 'https://uniapp.dcloud.io/')
175
+ return url.replace(crawlerUrl, location.origin + '/');
169
176
  }
170
177
  return url
171
178
  // remove url origin
@@ -262,6 +262,8 @@ export default {
262
262
  max-height: 667px;
263
263
  border: 1px #eee solid;
264
264
  margin-top: 16px;
265
+ border-radius: 6px;
266
+ overflow: hidden
265
267
  }
266
268
  .page-snippet {
267
269
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vuepress-theme-uniapp-official",
3
- "version": "1.6.14",
3
+ "version": "1.6.16",
4
4
  "description": "uni-app official website theme for vuepress",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -25,7 +25,8 @@
25
25
  "styles",
26
26
  "util",
27
27
  "enhanceApp.js",
28
- "index.js"
28
+ "index.js",
29
+ "CHANGELOG.md"
29
30
  ],
30
31
  "publishConfig": {
31
32
  "access": "public"
@@ -45,9 +46,9 @@
45
46
  "vuepress-plugin-mermaidjs": "1.9.1",
46
47
  "vuepress-plugin-named-chunks": "^1.1.4",
47
48
  "vuepress-plugin-zooming": "^1.1.8",
48
- "vuepress-plugin-check-md2": "^1.0.5",
49
49
  "vuepress-plugin-noscript-code": "^1.0.2",
50
- "vuepress-plugin-expandable-row": "^1.0.10"
50
+ "vuepress-plugin-expandable-row": "^1.0.10",
51
+ "vuepress-plugin-check-md2": "^1.0.5"
51
52
  },
52
53
  "resolutions": {
53
54
  "terser-webpack-plugin": "1.4.6",