{"id":15067355,"url":"https://github.com/project-trans/vitepress-theme-project-trans","last_synced_at":"2025-04-10T14:12:12.684Z","repository":{"id":257789382,"uuid":"858223451","full_name":"project-trans/vitepress-theme-project-trans","owner":"project-trans","description":"这是一个由 Project Trans 开发的 VitePress 主题。","archived":false,"fork":false,"pushed_at":"2024-10-25T04:44:21.000Z","size":234,"stargazers_count":9,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-26T07:28:10.927Z","etag":null,"topics":["documentation","theme","vitepress","vitepress-theme","vue"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@project-trans/vitepress-theme-project-trans","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/project-trans.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":"2024-09-16T14:22:49.000Z","updated_at":"2024-10-25T04:43:05.000Z","dependencies_parsed_at":"2024-09-29T11:44:26.968Z","dependency_job_id":"889f81a5-3057-413e-adc0-714da935f460","html_url":"https://github.com/project-trans/vitepress-theme-project-trans","commit_stats":null,"previous_names":["project-trans/vitepress-theme-project-trans"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-trans%2Fvitepress-theme-project-trans","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-trans%2Fvitepress-theme-project-trans/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-trans%2Fvitepress-theme-project-trans/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/project-trans%2Fvitepress-theme-project-trans/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/project-trans","download_url":"https://codeload.github.com/project-trans/vitepress-theme-project-trans/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248232574,"owners_count":21069487,"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","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":["documentation","theme","vitepress","vitepress-theme","vue"],"created_at":"2024-09-25T01:20:01.893Z","updated_at":"2025-04-10T14:12:12.660Z","avatar_url":"https://github.com/project-trans.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VitePress Theme Project Trans\n\n这是一个由 Project Trans 开发的 VitePress 主题。\n\n[构建效果](https://rle.wiki/)\n\n## 使用方式\n\n修改下述两个文件：\n\n```typescript\n// docs/.vitepress/config.ts\nimport type { SidebarOptions } from '@project-trans/vitepress-theme-project-trans/theme'\nimport type { ThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'\nimport genConfig from '@project-trans/vitepress-theme-project-trans/config'\nimport { withThemeContext } from '@project-trans/vitepress-theme-project-trans/utils'\n\nconst themeConfig: ThemeContext = {\n  siteTitle: 'RLE.wiki',\n  siteDescription: '一份 RLE 指北',\n  /** Repo */\n  githubRepoLink: 'https://github.com/project-trans/RLE-wiki',\n  /** vitepress 根目录 */\n  rootDir: 'docs',\n  /** 文档所在目录（目前似未使用此项） */\n  include: ['campus', 'contributor-guide', 'fashion'],\n  nav,\n  sidebarOptions,\n}\n\n// https://vitepress.dev/reference/site-config\nexport default withThemeContext(themeConfig, genConfig)\n```\n\n```typescript\n// docs/.vitepress/theme/index.ts\n// https://vitepress.dev/guide/custom-theme\nimport PtjsTheme from '@project-trans/vitepress-theme-project-trans/theme'\n\nimport 'uno.css'\nimport './style.css'\n\nexport default {\n  extends: PtjsTheme,\n}\n```\n\n## 调试说明\n\n1. 修改文件后在仓库根目录下进行构建\n   - `pnpm i`\n   - `pnpm build`\n2. 切换到 example 路径下预览\n   - `cd example`\n   - `pnpm dev`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproject-trans%2Fvitepress-theme-project-trans","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fproject-trans%2Fvitepress-theme-project-trans","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fproject-trans%2Fvitepress-theme-project-trans/lists"}