Skip to content

Commit

Permalink
Merge pull request #21 from ipfs-force-community/fatman13-p14
Browse files Browse the repository at this point in the history
fix uri encode
  • Loading branch information
Fatman13 authored Aug 2, 2023
2 parents 9e47c8e + cc5b935 commit 7181f4f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ module.exports = {
markdown: {
extendMarkdown: md => {
md.use(require('markdown-it-replace-link'), {
processHTML: true, // defaults to false for backwards compatibility
replaceLink: function (link, env, token, htmlToken) {
if (link === encodeURIComponent('./04.damocles-manager的配置解析.md')) {
if (link === './04.damocles-manager%E7%9A%84%E9%85%8D%E7%BD%AE%E8%A7%A3%E6%9E%90.md') {
return 'damocles-manager-config';
}
if (link === encodeURIComponent('./03.damocles-worker的配置解析.md')) {
if (link === './03.damocles-worker%E7%9A%84%E9%85%8D%E7%BD%AE%E8%A7%A3%E6%9E%90.md')) {
return 'damocles-worker-config';
}
if (link === encodeURIComponent('./15.damocles-worker_PC1_HugeTLB_Pages_支持.md#damocles-worker-pc1-hugetlb-pages-%E6%94%AF%E6%8C%81')) {
if (link === './15.damocles-worker_PC1_HugeTLB_Pages_%E6%94%AF%E6%8C%81.md#damocles-worker-pc1-hugetlb-pages-%E6%94%AF%E6%8C%81') {
return 'hugeTLB';
}
if (link === 'https://github.com/ipfs-force-community/damocles/blob/main/docs/zh/03.damocles-worker%E7%9A%84%E9%85%8D%E7%BD%AE%E8%A7%A3%E6%9E%90.md#sealing') {
Expand All @@ -21,7 +22,7 @@ module.exports = {
if (link === './16.%E6%89%87%E5%8C%BA%E9%87%8D%E5%BB%BA%E7%9A%84%E6%94%AF%E6%8C%81.md') {
return 'sector-rebuild';
}
if (link === encodeURIComponent('./15.damocles-worker_PC1_HugeTLB_Pages_支持.md')) {
if (link === './15.damocles-worker_PC1_HugeTLB_Pages_%E6%94%AF%E6%8C%81.md') {
return 'hugeTLB';
}
if (link === './12.damocles-worker-util.md#hwinfo') {
Expand Down

0 comments on commit 7181f4f

Please sign in to comment.