Open caojiantao opened 1 year ago
I noticed that there is a pinyinNav used to be compatible with vuepress-pluin-permalink-pinyin, it seems that it forgot to be compatible with sidebar
/** * Translate chinese to pinyin. * Compatible with vuepress-pluin-permalink-pinyin. * @param {Array} navArr */ function transliteratePinyin(navArr) { return navArr.map(nav => { const result = { ...nav }; if (nav.link) { result.link = slugify(nav.link, { ignore: ["/", "."] }); } if (nav.items) { result.items = transliteratePinyin(nav.items); } return result; }); }
I need help supporting pinyin. Would you like to add a PR?
It is my pleasure.
I noticed that there is a pinyinNav used to be compatible with vuepress-pluin-permalink-pinyin, it seems that it forgot to be compatible with sidebar