docs: fix algolia redirection
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
const pinyin = require('pinyin');
|
||||
const { slugify: _slugify } = require('@vuepress/shared-utils');
|
||||
|
||||
module.exports = {
|
||||
plugins: {
|
||||
'@vuepress/google-analytics': {
|
||||
@@ -30,6 +33,24 @@ module.exports = {
|
||||
description: '🍰 Everything is RSSible',
|
||||
},
|
||||
},
|
||||
markdown: {
|
||||
slugify: function(s) {
|
||||
return _slugify(
|
||||
pinyin(s, {
|
||||
style: pinyin.STYLE_NORMAL,
|
||||
heteronym: true,
|
||||
segment: true,
|
||||
})
|
||||
.map((item) => item[0])
|
||||
.join('-')
|
||||
);
|
||||
},
|
||||
anchor: {
|
||||
permalink: true,
|
||||
permalinkBefore: true,
|
||||
permalinkSymbol: '#',
|
||||
},
|
||||
},
|
||||
head: [
|
||||
['link', { rel: 'icon', href: '/logo.png' }],
|
||||
['link', { rel: 'manifest', href: '/manifest.json' }],
|
||||
|
||||
+1
-1
@@ -222,7 +222,7 @@ pageClass: routes
|
||||
|
||||
## 抖音
|
||||
|
||||
见 [#抖音](/social-media.html#抖音)
|
||||
见 [#抖音](/social-media.html#dou-yin)
|
||||
|
||||
## 高清电台
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@ pageClass: routes
|
||||
|
||||
### 更新
|
||||
|
||||
见 [#怪物猎人](/game.html#怪物猎人)
|
||||
见 [#怪物猎人](/game.html#guai-wu-lie-ren)
|
||||
|
||||
## 厚墨
|
||||
|
||||
|
||||
@@ -198,15 +198,15 @@ pageClass: routes
|
||||
|
||||
### 直播开播
|
||||
|
||||
见 [#哔哩哔哩直播](/live.html#哔哩哔哩直播)
|
||||
见 [#哔哩哔哩直播](/live.html#bi-li-bi-li-zhi-bo)
|
||||
|
||||
### 直播搜索
|
||||
|
||||
见 [#哔哩哔哩直播](/live.html#哔哩哔哩直播)
|
||||
见 [#哔哩哔哩直播](/live.html#bi-li-bi-li-zhi-bo)
|
||||
|
||||
### 直播分区
|
||||
|
||||
见 [#哔哩哔哩直播](/live.html#哔哩哔哩直播)
|
||||
见 [#哔哩哔哩直播](/live.html#bi-li-bi-li-zhi-bo)
|
||||
|
||||
### 主站话题列表
|
||||
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
"jest": "24.9.0",
|
||||
"mockdate": "2.0.5",
|
||||
"nock": "11.3.5",
|
||||
"nodejieba": "2.3.2",
|
||||
"nodemon": "1.19.2",
|
||||
"pinyin": "2.9.0",
|
||||
"prettier": "1.18.2",
|
||||
|
||||
@@ -7552,6 +7552,13 @@ node-releases@^1.1.21:
|
||||
dependencies:
|
||||
semver "^5.3.0"
|
||||
|
||||
nodejieba@2.3.2:
|
||||
version "2.3.2"
|
||||
resolved "https://registry.yarnpkg.com/nodejieba/-/nodejieba-2.3.2.tgz#0bad72e1344c7156d99368192c5a55aaee1ce35a"
|
||||
integrity sha512-Dp3qb54D8QlpyaKYGOpkB0E/hAHB0oWWzE9RIkAGglY6KTQMeOUsM8NZ8Af9eirRZvpdXH9v6zDVpHRq04a7SA==
|
||||
dependencies:
|
||||
nan "^2.14.0"
|
||||
|
||||
nodejieba@^2.2.1:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/nodejieba/-/nodejieba-2.3.0.tgz#ba6934b949ce486c6a57e4cb7df9f4a5fb3336c4"
|
||||
|
||||
Reference in New Issue
Block a user