\r\n\r\n::: zh-CN\r\n中文\r\n:::\r\n\r\n::: en\r\nEnglish\r\n:::\r\n```\r\n\r\nThis reduces maintenance costs.\r\n\r\nI came up with a very low cost implementation - [CSS-I18N](https://github.com/valaxyjs/css-i18n)\r\nAnd I implemented it in my own project [valaxy](https://github.com/YunYouJun/valaxy).\r\n\r\nIt works well. You can preview it [here](https://valaxy.site/guide/i18n).\r\nAnd this is my implementation: [How to realize CSS i18n?](https://valaxy.site/posts/i18n#css-i18n-another-solution)\r\n\r\n---\r\n\r\nIt is very cost-effective and I hope to integrate it with vitepress.\r\nIf you agree with my proposal, please let me know and I can create a PR for vitepress.\r\n\r\n### Describe alternatives you've considered\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\r\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2867],{"name":2868,"color":2869},"stale","ededed",3047,"vuejs","vitepress","open","CSS i18n in one page","2025-03-02T18:10:37Z","https://github.com/vuejs/vitepress/issues/3047",0.78158236,{"description":2879,"labels":2880,"number":2885,"owner":2871,"repository":2872,"state":2873,"title":2886,"updated_at":2887,"url":2888,"score":2889},"### Describe the bug\n\nMy document project, packaging error:\r\n\r\nvitepress v1.0.1\r\n\r\nx Build failed in 25.03s\r\n✖ building client + server bundles...\r\nbuild error:\r\nSyntaxError: Invalid end tag.\r\n\r\n\r\nUnder the config.js file, follow the documentation: https://vitepress.dev/zh/reference/site-config#transformpagedata, add the transformPageData method, as a result, the console print document is not correct.\r\n\r\nAnd each time you repackage, the console outputs a different error document\r\n\r\n![Uploading 1711309593420.jpg…]()\r\n\r\n\r\nI wrote too many documents too long, packaging, an error, can not find the wrong document\n\n### Reproduction\n\ngit clone https://github.com/muyaCode/FrontEndLearnNotes.git\n\n### Expected behavior\n\nCan debug output error files correctly\n\n### System Info\n\n```Text\nWindows 11 Home Chinese Version\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2881,2884],{"name":2882,"color":2883},"bug: pending triage","e99695",{"name":2868,"color":2869},3696,"Configuring the transformPageData method, the console output the wrong document file is incorrect","2024-04-28T12:18:07Z","https://github.com/vuejs/vitepress/issues/3696",0.7834975,{"description":2891,"labels":2892,"number":2894,"owner":2871,"repository":2872,"state":2873,"title":2895,"updated_at":2896,"url":2897,"score":2898},"### Describe the bug\n\nDead links in the sidebar are not reported.\n\n### Reproduction\n\nOn vitepress.new, the following sidebar\r\n```\r\nsidebar: [\r\n {\r\n // text: 'Guide',\r\n items: [\r\n { text: 'Example', link: '/example' },\r\n { text: 'Foo', link: '/Foo'},\r\n { text: 'Bar', link: '/Bar'}\r\n ],\r\n },\r\n ],\r\n```\r\nbuilds even if Bar doesn't exist. \n\n### Expected behavior\n\nI'd expect `Bar` to not show up in the sidebar, or to be reported as a dead link.\n\n### System Info\n\n```Text\nvitepress.new\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2893],{"name":2868,"color":2869},3244,"Dead links in sidebar not reported","2023-12-26T20:33:00Z","https://github.com/vuejs/vitepress/issues/3244",0.7840699,{"description":2900,"labels":2901,"number":2902,"owner":2871,"repository":2872,"state":2873,"title":2903,"updated_at":2904,"url":2905,"score":2906},"能不能支持打包成微信小程序啊 或者有什么办法么",[],4672,"能不能支持打包成微信小程序啊","2025-04-03T07:05:14Z","https://github.com/vuejs/vitepress/issues/4672",0.7851534,{"description":2908,"labels":2909,"number":2913,"owner":2871,"repository":2872,"state":2914,"title":2915,"updated_at":2916,"url":2917,"score":2918},"### Discussed in https://github.com/vuejs/vitepress/discussions/1255\r\n\r\n\u003Cdiv type='discussions-op-text'>\r\n\r\n\u003Csup>Originally posted by **akil-rails** August 30, 2022\u003C/sup>\r\nCurrently there is a global configuration to display Line numbers in all code blocks: https://vitepress.vuejs.org/guide/markdown#line-numbers\r\n\r\nIt will be great to have line numbers only for some code blocks, and not for all. \r\n\r\nIn certain cases (like for [example](https://docs.apigee.com/api-platform/troubleshoot/runtime/500-badformdata)) the code block is showing a sample message; which doesn't need line numbers. \u003C/div>",[2910],{"name":2911,"color":2912},"build","377ba8",1256,"closed","Line Numbers Only for some Code Blocks","2023-01-21T14:17:05Z","https://github.com/vuejs/vitepress/issues/1256",0.7155821,{"description":2920,"labels":2921,"number":2925,"owner":2871,"repository":2872,"state":2914,"title":2926,"updated_at":2927,"url":2928,"score":2929},"### Describe the bug\r\n\r\n> 原作者: [https://github.com/xxx](https://github.com/xxx)\r\n### Reproduction\r\n\r\n-\r\n\r\n### Expected behavior\r\n\r\n-\r\n\r\n### System Info\r\n\r\n```Text\r\n-\r\n```\r\n\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\r\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\r\n- [X] Read the [docs](https://vitepress.dev).\r\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2922],{"name":2923,"color":2924},"need more info","bdbefc",4013,"Blockquotes support this style?","2024-07-11T04:42:22Z","https://github.com/vuejs/vitepress/issues/4013",0.73964906,{"description":2931,"labels":2932,"number":2934,"owner":2871,"repository":2872,"state":2914,"title":2935,"updated_at":2936,"url":2937,"score":2938},"### Describe the bug\n\nI cannot line break when using `blockquote` in vitepress, like this:\r\n\r\n\u003Cimg width=\"959\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/92c4c5e7-898b-4112-a0e6-f48ce94ec737\">\r\n\r\n\r\n\n\n### Reproduction\n\nIn vscode:\r\n\r\n\u003Cimg width=\"859\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/51edd8cf-ffd2-4151-85c0-d93963a1e1e7\">\r\n\r\nIn the development page of Vitepress:\r\n\r\n\u003Cimg width=\"1074\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/2587c0d5-20c4-4691-a751-c227980f8e25\">\r\n\r\nThey are on the same line now, what method should I use to keep them on separate lines? This is not the result I want.\r\n\r\n\u003Cimg width=\"1077\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/57f8a8fb-ffba-47bb-a808-6940e1ac4ae6\">\r\n\r\n\n\n### Expected behavior\n\nI hope it is like this.\r\n\r\n\u003Cimg width=\"959\" alt=\"image\" src=\"https://github.com/vuejs/vitepress/assets/34816426/92c4c5e7-898b-4112-a0e6-f48ce94ec737\">\n\n### System Info\n\n```Text\nSystem:\r\n OS: macOS 13.5.2\r\n CPU: (10) arm64 Apple M1 Max\r\n Memory: 564.50 MB / 32.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.6.1 - ~/Library/pnpm/node\r\n npm: 9.8.1 - ~/Library/pnpm/npm\r\n pnpm: 8.6.3 - ~/Library/pnpm/pnpm\r\n Browsers:\r\n Chrome: 117.0.5938.62\r\n Safari: 16.6\r\n npmPackages:\r\n vitepress: 1.0.0-rc.13 => 1.0.0-rc.13\n```\n\n\n### Additional context\n\nnull\n\n### Validations\n\n- [X] Check if you're on the [latest VitePress version](https://github.com/vuejs/vitepress/releases/latest).\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.dev).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2933],{"name":2882,"color":2883},2986,"How to break line in blockquote?","2023-09-27T00:04:20Z","https://github.com/vuejs/vitepress/issues/2986",0.74789876,{"description":2940,"labels":2941,"number":2942,"owner":2871,"repository":2872,"state":2914,"title":2943,"updated_at":2944,"url":2945,"score":2946},"### Is your feature request related to a problem? Please describe.\n\nCurrently, when changing languages, the navbar links stay the same.\n\n### Describe the solution you'd like\n\nNavbar should have links based on the languages selected.\n\n### Describe alternatives you've considered\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[],1089,"Navbar for i18n","2023-01-21T14:28:59Z","https://github.com/vuejs/vitepress/issues/1089",0.7497459,{"description":2948,"labels":2949,"number":2953,"owner":2871,"repository":2872,"state":2914,"title":2954,"updated_at":2955,"url":2956,"score":2957},"### Is your feature request related to a problem? Please describe.\n\nI want to use the existing structure of VitePress, with kind of the same Layout, but different styling. I was thinking I would just build a custom theme, but it seems like I cannot access e.g. the navbar configs. Or at least I wouldnt know how?\n\n### Describe the solution you'd like\n\nI would like to know how I can build my own custom theme, using all the default data that i would provide otherwise using the default theme.\n\n### Describe alternatives you've considered\n\nUsing the default theme but changing it up, but I doubt that it's flexible enough. another thing would be to just for vitepress and implementing my own default theme, but I doubt that it's thought to be done like that.\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Read the [Contributing Guidelines](https://github.com/vuejs/vitepress/blob/main/.github/contributing.md).\n- [X] Check that there isn't already an issue that asks for the same feature to avoid creating a duplicate.",[2950],{"name":2951,"color":2952},"theme","0754FB",912,"Extending/Mimicing default components in custom theme","2023-01-21T14:32:40Z","https://github.com/vuejs/vitepress/issues/912",0.7522466,{"description":2959,"labels":2960,"number":2962,"owner":2871,"repository":2872,"state":2914,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\n\nMigration from VitePress 0.x to 1.0.0-alpha.12\r\n\r\n**config.ts**\r\n```\r\nimport fs from 'fs'\r\nimport path from 'path'\r\nimport { defineConfigWithTheme } from 'vitepress'\r\nimport type { Config as ThemeConfig } from './theme/lib'\r\nimport baseConfig from './theme/lib/vitepress/config/baseConfig'\r\nimport { headerPlugin } from './headerMdPlugin'\r\n\r\nconst nav = [\r\n\r\n {\r\n text: '卷集',\r\n activeMatch: `^/(guide|style-guide|cookbook|examples|cryptocurrency)/`,\r\n items: [\r\n { text: '💰 加密货币', link: '/cryptocurrency/money' },\r\n { text: '🚚 工具使用', link: '/tools/emulator' },\r\n { text: '💡 Idea日志 ', link: '/log/敏捷项目管理' },\r\n ]\r\n },\r\n {\r\n text: '笔记',\r\n activeMatch: `^/note/`,\r\n link: '/note/cert'\r\n },\r\n {\r\n text: '作品集',\r\n activeMatch: `^/products/`,\r\n items: [\r\n {\r\n text: '代表作',\r\n items: [\r\n { text: 'Gettr', link: '/products/gettr' },\r\n { text: '叮铃医生', link: '/products/doctor' },\r\n\r\n ]\r\n },\r\n {\r\n text: '商业作品',\r\n items: [\r\n {\r\n text: 'Fas基金研究平台',\r\n link: '/products/fas'\r\n },\r\n { text: '币傲交易所', link: '/products/btcalory' },\r\n {\r\n text: 'Open Alpha ',\r\n link: '/products/openalpha'\r\n },\r\n { text: '基金大V入驻小程序', link: '/products/bigv' },\r\n { text: '净值预估', link: '/products/valuation' }\r\n ]\r\n },\r\n {\r\n text: '个人作品',\r\n items: [\r\n {\r\n text: 'Wall Paper',\r\n link: '/products/wallpaper'\r\n },\r\n { text: 'Note Music', link: '/products/notemusic' },\r\n { text: '优惠券小程序', link: '/products/coupon' },\r\n ]\r\n },\r\n ]\r\n },\r\n // {\r\n // text: '我',\r\n // activeMatch: `^/about/`,\r\n // items: [\r\n // { text: 'FAQ', link: '/about/faq' },\r\n // { text: 'Team', link: '/about/team' },\r\n // { text: 'Releases', link: '/about/releases' },\r\n // {\r\n // text: 'Community Guide',\r\n // link: '/about/community-guide'\r\n // },\r\n // { text: 'Code of Conduct', link: '/about/coc' },\r\n // {\r\n // text: 'The Documentary',\r\n // link: 'https://www.youtube.com/watch?v=OrxmtDw4pVI'\r\n // }\r\n // ]\r\n // },\r\n]\r\n\r\nexport const sidebar = {\r\n '/log/': [{\r\n text: '开发日志',\r\n items: [\r\n { text: '西筹FAS平台', link: '/log/西筹FAS平台' },\r\n ]\r\n }, {\r\n text: 'PMP',\r\n items: [\r\n { text: '敏捷项目管理', link: '/log/敏捷项目管理' },\r\n ]\r\n }],\r\n '/cryptocurrency/': [{\r\n text: '基础',\r\n items: [\r\n { text: '钱', link: '/cryptocurrency/money' },\r\n ]\r\n },\r\n {\r\n text: '杂谈',\r\n items: [\r\n {\r\n text: '比特币十年回顾',\r\n link: '/cryptocurrency/bitcoin-ten-years'\r\n },\r\n { text: '价值千万的炒币经验', link: '/cryptocurrency/sell-buy-express' },\r\n {\r\n text: '奶的底层逻辑就是奶',\r\n link: '/cryptocurrency/up'\r\n }\r\n ]\r\n }, {\r\n text: '公链可视化',\r\n items: [\r\n {\r\n text: '应用案例',\r\n link: '/cryptocurrency/web3应用'\r\n },\r\n ]\r\n }],\r\n '/tools/': [{\r\n text: '图表类',\r\n items: [\r\n { text: 'echarts', link: '/tools/echarts' },\r\n ]\r\n },\r\n {\r\n text: 'APP',\r\n items: [\r\n { text: '模拟器', link: '/tools/emulator' },\r\n ]\r\n },\r\n ],\r\n '/note/': [\r\n {\r\n text: '📚 使用指南',\r\n items: [\r\n { text: 'liunx 指南', link: '/note/Liunx常用命令' },\r\n\r\n ]\r\n },\r\n {\r\n text: '📚 代码规范',\r\n items: [\r\n { text: 'JS不优雅教程', link: '/note/js不优雅教程' },\r\n \r\n ]\r\n }],\r\n}\r\n\r\nexport default defineConfigWithTheme\u003CThemeConfig>({\r\n extends: baseConfig,\r\n lang: 'en-US',\r\n title: '笔记本 📚',\r\n description: '笔记本 📚',\r\n srcDir: 'src',\r\n srcExclude: ['tutorial/**/description.md'],\r\n scrollOffset: 'header',\r\n head: [\r\n\r\n ],\r\n themeConfig: {\r\n nav,\r\n sidebar,\r\n\r\n algolia: {\r\n indexName: 'Notebook',\r\n appId: '3II0BF621L',\r\n apiKey: 'f0f82443dd1e3bb2738c4e904221fc97',\r\n searchParameters: {\r\n facetFilters: ['version:v3']\r\n }\r\n },\r\n\r\n // carbonAds: {\r\n // code: 'CEBDT27Y',\r\n // placement: 'vuejsorg'\r\n // },\r\n\r\n socialLinks: [\r\n // { icon: 'languages', link: '/translations/' },\r\n { icon: 'github', link: 'https://github.com/AliMales/NoteBook' },\r\n // { icon: 'twitter', link: 'https://twitter.com/vuejs' },\r\n // { icon: 'discord', link: 'https://discord.com/invite/HBherRA' }\r\n ],\r\n\r\n editLink: {\r\n repo: 'vuejs/docs',\r\n text: 'Edit this page on GitHub'\r\n },\r\n\r\n footer: {\r\n license: {\r\n text: 'MIT License',\r\n link: 'https://opensource.org/licenses/MIT'\r\n },\r\n copyright: `Copyright © 2018-${new Date().getFullYear()} TigerZH`\r\n }\r\n },\r\n\r\n markdown: {\r\n config(md) {\r\n md.use(headerPlugin)\r\n }\r\n },\r\n\r\n vite: {\r\n define: {\r\n __VUE_OPTIONS_API__: false\r\n },\r\n optimizeDeps: {\r\n include: ['gsap', 'dynamics.js'],\r\n exclude: ['@vue/repl']\r\n },\r\n // @ts-ignore\r\n ssr: {\r\n external: ['@vue/repl']\r\n },\r\n server: {\r\n host: true,\r\n fs: {\r\n // for when developing with locally linked theme\r\n allow: ['../..']\r\n }\r\n },\r\n build: {\r\n minify: 'terser',\r\n chunkSizeWarningLimit: Infinity\r\n },\r\n json: {\r\n stringify: true\r\n }\r\n },\r\n vue: {\r\n reactivityTransform: true\r\n }\r\n})\r\n\r\n\r\n```\r\n![Uploading image.png…]()\r\n\r\nIt's looks not working.\r\n\r\n\n\n### Reproduction\n\nUse VitePress generate Project vitepress@^0.22.2 and update VitePress to 1.0.0-alpha.12\n\n### Expected behavior\n\nIt's work\n\n### System Info\n\n```shell\nSystem:\r\n OS: macOS 12.5\r\n CPU: (8) x64 Apple M1\r\n Memory: 18.84 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node\r\n Yarn: 1.22.19 - ~/Library/pnpm/yarn\r\n npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm\r\n Watchman: 2022.08.08.00 - /usr/local/bin/watchman\r\n Browsers:\r\n Brave Browser: 102.1.39.122\r\n Chrome: 104.0.5112.101\r\n Safari: 15.6\r\n npmPackages:\r\n vitepress: 1.0.0-alpha.12\n```\n\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://vuejs.org/about/coc.html)\n- [X] Read the [docs](https://vitepress.vuejs.org).\n- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.",[2961],{"name":2882,"color":2883},1250,"[plugin:vitepress] Cannot read properties of undefined (reading 'call')","2023-01-21T14:26:48Z","https://github.com/vuejs/vitepress/issues/1250",0.7554287,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f0A5dx-rgDRkoQs4e101EOaUqIuh3zAHqaaEFZ4f-TOs":-1},"/vuejs/vitepress/1251"]