Skip to content

Commit

Permalink
feat: 百度代码统计
Browse files Browse the repository at this point in the history
  • Loading branch information
maotoumao committed Nov 11, 2023
1 parent bd0d2a1 commit 13b7f07
Showing 1 changed file with 35 additions and 16 deletions.
51 changes: 35 additions & 16 deletions docs/.vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export default defineConfig({
},
{
text: "国内镜像",
link: "https://musicfree.gitee.io"
}
link: "https://musicfree.gitee.io",
},
],
logo: "/img/logo.png",
sidebar: {
Expand Down Expand Up @@ -86,29 +86,29 @@ export default defineConfig({
},
{
text: "举个栗子",
link: "/plugin/how-to-develop"
link: "/plugin/how-to-develop",
},
{
text: "内置的 npm 包",
link: "/plugin/internal-pkgs"
link: "/plugin/internal-pkgs",
},
{
text: "注意事项",
link: "/plugin/caution"
}
link: "/plugin/caution",
},
],
"/qa/": [
{
text: "常见问题 - 共有问题",
link: '/qa/common'
link: "/qa/common",
},
{
text: "常见问题 - PC 版",
link: '/qa/pc'
link: "/qa/pc",
},
{
text: "常见问题 - 安卓版",
link: '/qa/mobile'
link: "/qa/mobile",
},
],
},
Expand All @@ -118,21 +118,40 @@ export default defineConfig({
message: "代码基于 GPL 协议开源,仅供学习参考使用。",
},
returnToTopLabel: "返回顶部",
socialLinks: [{ icon: "github", link: "https://github.com/maotoumao" }, {
icon: {
svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bilibili</title><path d="M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c0-.373.129-.689.386-.947.258-.257.574-.386.947-.386zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373Z"/></svg>'
socialLinks: [
{ icon: "github", link: "https://github.com/maotoumao" },
{
icon: {
svg: '<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Bilibili</title><path d="M17.813 4.653h.854c1.51.054 2.769.578 3.773 1.574 1.004.995 1.524 2.249 1.56 3.76v7.36c-.036 1.51-.556 2.769-1.56 3.773s-2.262 1.524-3.773 1.56H5.333c-1.51-.036-2.769-.556-3.773-1.56S.036 18.858 0 17.347v-7.36c.036-1.511.556-2.765 1.56-3.76 1.004-.996 2.262-1.52 3.773-1.574h.774l-1.174-1.12a1.234 1.234 0 0 1-.373-.906c0-.356.124-.658.373-.907l.027-.027c.267-.249.573-.373.92-.373.347 0 .653.124.92.373L9.653 4.44c.071.071.134.142.187.213h4.267a.836.836 0 0 1 .16-.213l2.853-2.747c.267-.249.573-.373.92-.373.347 0 .662.151.929.4.267.249.391.551.391.907 0 .355-.124.657-.373.906zM5.333 7.24c-.746.018-1.373.276-1.88.773-.506.498-.769 1.13-.786 1.894v7.52c.017.764.28 1.395.786 1.893.507.498 1.134.756 1.88.773h13.334c.746-.017 1.373-.275 1.88-.773.506-.498.769-1.129.786-1.893v-7.52c-.017-.765-.28-1.396-.786-1.894-.507-.497-1.134-.755-1.88-.773zM8 11.107c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c0-.373.129-.689.386-.947.258-.257.574-.386.947-.386zm8 0c.373 0 .684.124.933.373.25.249.383.569.4.96v1.173c-.017.391-.15.711-.4.96-.249.25-.56.374-.933.374s-.684-.125-.933-.374c-.25-.249-.383-.569-.4-.96V12.44c.017-.391.15-.711.4-.96.249-.249.56-.373.933-.373Z"/></svg>',
},
link: "https://space.bilibili.com/12866223",
},
link: "https://space.bilibili.com/12866223"
}],
],
lastUpdated: {
formatOptions: {
dateStyle: "short",
},
text: "最近更新",
},
editLink: {
pattern: 'https://github.com/maotoumao/musicfree.upup.fun/edit/master/docs/:path'
}
pattern:
"https://github.com/maotoumao/musicfree.upup.fun/edit/master/docs/:path",
},
},
head: [
[
"script",
{},
`
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?69fd99ff9e858d9f8a0aacb145a2d542";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
`,
],
],
assetsDir: "static",
});

0 comments on commit 13b7f07

Please sign in to comment.