docs: fix algolia redirection

This commit is contained in:
DIYgod
2019-09-25 11:42:03 +08:00
parent fd0076b60e
commit 9b52b442fd
6 changed files with 34 additions and 5 deletions
+21
View File
@@ -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
View File
@@ -222,7 +222,7 @@ pageClass: routes
## 抖音
见 [#抖音](/social-media.html#抖音)
见 [#抖音](/social-media.html#dou-yin)
## 高清电台
+1 -1
View File
@@ -160,7 +160,7 @@ pageClass: routes
### 更新
见 [#怪物猎人](/game.html#怪物猎人)
见 [#怪物猎人](/game.html#guai-wu-lie-ren)
## 厚墨
+3 -3
View File
@@ -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)
### 主站话题列表