{"id":21338700,"url":"https://github.com/yanglee2421/docs","last_synced_at":"2025-10-23T23:54:03.995Z","repository":{"id":65821707,"uuid":"587979626","full_name":"yanglee2421/docs","owner":"yanglee2421","description":"This is Yang's entire life as a coder.","archived":false,"fork":false,"pushed_at":"2025-01-19T13:41:42.000Z","size":8188,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T02:27:27.307Z","etag":null,"topics":["docs","ecmascript"],"latest_commit_sha":null,"homepage":"https://yanglee2421.github.io/docs/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yanglee2421.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-12T03:06:15.000Z","updated_at":"2025-01-19T13:36:03.000Z","dependencies_parsed_at":"2023-02-21T04:15:19.598Z","dependency_job_id":"f5501e85-5ce3-4626-b303-dbe553c5ed84","html_url":"https://github.com/yanglee2421/docs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanglee2421/docs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanglee2421%2Fdocs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanglee2421%2Fdocs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanglee2421%2Fdocs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanglee2421%2Fdocs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanglee2421","download_url":"https://codeload.github.com/yanglee2421/docs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanglee2421%2Fdocs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280712958,"owners_count":26378085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docs","ecmascript"],"created_at":"2024-11-22T00:39:40.047Z","updated_at":"2025-10-23T23:54:03.953Z","avatar_url":"https://github.com/yanglee2421.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Yang_Lee Docs\n\n## set up\n\n```bash\npnpm add -D vitepress vue\nmkdir docs\ncd docs\n# desktop/my-docs/docs\nnew-item index.md\ncd ../\n# desktop/my-docs\npnpm exec vitepress dev docs\n```\n\n## cli\n\n```bash\nvitepress dev docs\nvitepress build docs\nvitepress preview docs\n```\n\n## config\n\n```bash\n# root-dir/docs\ncd .vitepress\n# root-dir/docs/.vitepress\nnew-item config.ts\n```\n\n```ts\n// config.ts\nimport { defineConfig } from \"vitepress\";\nexport default defineConfig({\n  base: \"/docs/\",\n  lang: \"zh-CN\",\n  title: \"Yang_Lee\",\n  head: [[\"link\", { rel: \"shortcut icon\", href: \"vite.svg\" }]],\n  themeConfig: {\n    logo: \"vite.svg\",\n    siteTitle: \"Yang_Lee\",\n    socialLinks: [\n      { icon: \"github\", link: \"https://github.com/Swz0321\" },\n      { icon: \"twitter\", link: \"...\" },\n      // You can also add custom icons by passing SVG as string:\n      {\n        icon: {\n          svg: '\u003csvg role=\"img\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003ctitle\u003eDribbble\u003c/title\u003e\u003cpath d=\"M12...6.38z\"/\u003e\u003c/svg\u003e',\n        },\n        link: \"...\",\n      },\n    ],\n    nav: [\n      { text: \"nav-1\", link: \"\" },\n      {\n        text: \"nav-2\",\n        items: [\n          { text: \"nav-2-1\", items: [] },\n          { text: \"Item B\", link: \"/item-2\" },\n        ],\n      },\n    ],\n    sidebar: {\n      \"/\": [\n        {\n          text: \"TypeScript\",\n          collapsible: true,\n          items: [{ text: \"类型\", link: \"\" }],\n        },\n      ],\n      \"/data/\": [\n        {\n          text: \"开始\",\n          collapsible: true,\n          items: [\n            {\n              text: \"Scss\",\n              items: [{ text: \"注释\", items: [] }],\n            },\n          ],\n        },\n      ],\n    },\n    footer: {\n      message: \"Released under the MIT License.\",\n      copyright: \"Yang_Lee：xtcff082421@gmail.com\",\n    },\n  },\n});\n```\n\n## 表情符\n\n:tada:\n:100:\n\n## 卡片\n\n::: tip\nThis is a tip\n:::\n\n::: warning\nThis is a warning\n:::\n\n::: danger STOP\nDanger zone, do not proceed\n:::\n\n::: details Click me to view the code\n\n```js\nconsole.log(\"Hello, VitePress!\");\n```\n\n:::\n\n## Badge\n\n### Title \u003cBadge type=\"info\" text=\"default\" /\u003e\n\n### Title \u003cBadge type=\"tip\" text=\"^1.9.0\" /\u003e\n\n### Title \u003cBadge type=\"warning\" text=\"beta\" /\u003e\n\n### Title \u003cBadge type=\"danger\" text=\"caution\" /\u003e\n\n## code\n\n::: code-group\n\n```ts [use.ts]\nimport {} from \"vite\"; // [!code --]\nimport {} from \"vite\"; // [!code ++]\nimport {} from \"vite\"; // [!code warning]\nimport {} from \"vite\"; // [!code error]\nimport {} from \"vite\"; // [!code focus]\nimport {} from \"vite\"; // [!code hl]\n```\n\n```ts{1,3-4}\nexport const a = \"a\";\nexport { a };\nexport default {};\nexport function useHook() {}\n```\n\n:::\n\n```yml\ntheme: jekyll-theme-slate\ninclude: [_plugin-vue_export-helper-c27b6911.js]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanglee2421%2Fdocs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanglee2421%2Fdocs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanglee2421%2Fdocs/lists"}