{"id":18317276,"url":"https://github.com/single-spa/zh-hans.single-spa.js.org","last_synced_at":"2025-04-09T13:47:18.247Z","repository":{"id":40248464,"uuid":"241248382","full_name":"single-spa/zh-hans.single-spa.js.org","owner":"single-spa","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-07T09:44:23.000Z","size":25533,"stargazers_count":31,"open_issues_count":126,"forks_count":68,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-15T07:46:55.952Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/single-spa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":["joeldenning"],"patreon":null,"open_collective":"single-spa","ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2020-02-18T01:49:09.000Z","updated_at":"2023-12-25T09:54:25.000Z","dependencies_parsed_at":"2025-02-15T07:45:26.335Z","dependency_job_id":"86b03313-168d-44b6-b4d7-5d93a8ac3eea","html_url":"https://github.com/single-spa/zh-hans.single-spa.js.org","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/single-spa%2Fzh-hans.single-spa.js.org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/single-spa%2Fzh-hans.single-spa.js.org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/single-spa%2Fzh-hans.single-spa.js.org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/single-spa%2Fzh-hans.single-spa.js.org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/single-spa","download_url":"https://codeload.github.com/single-spa/zh-hans.single-spa.js.org/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248053939,"owners_count":21039949,"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":[],"created_at":"2024-11-05T18:05:36.570Z","updated_at":"2025-04-09T13:47:18.224Z","avatar_url":"https://github.com/single-spa.png","language":"HTML","funding_links":["https://github.com/sponsors/joeldenning","https://opencollective.com/single-spa"],"categories":[],"sub_categories":[],"readme":"# single-spa中文文档\n\n此仓库包含 [single-spa中文文档](https://github.com/single-spa/zh-hans.single-spa.js.org) 的文档及源码，并由官方实时同步。\n\n## 入门指南\n\n### 提前准备\n\n1. Git\n1. Node: install version 8.4 or greater\n1. Yarn: See [Yarn website for installation instructions](https://yarnpkg.com/lang/en/docs/install/)\n1. A fork of the repo (for any contributions)\n1. A clone of the [single-spa.js.org repo](https://github.com/single-spa/single-spa.js.org) on your local machine\n\n### 如何安装\n\n1. `git clone git@github.com:single-spa/single-spa.js.org.git`\n1. `cd single-spa.js.org/website` to go into the website root\n1. `yarn` to install the website's npm dependencies\n\n### 本地执行\n\n1. `cd website` 然后 `yarn start` 开启本地热更新服务。 (powered by [Docusaurus](https://docusaurus.io/))\n1. `open http://localhost:3000` 打开浏览器查看效果。\n\n## 贡献翻译\n\n如果你想帮助翻译`single-spa.js.org`? 请参考下列步骤。\n[加入 Slack 一起讨论](https://single-spa.slack.com/archives/C011K55BAB0/p1586591177000200)(可能有点慢~)\n\n### 新建分支\n\n1. 请 fork 这个仓库\n1. 在 `single-spa.js.org` 仓库的任何目录下执行 `git checkout master`\n1. 执行 `git pull origin master` 确保你的代码是最新的。\n1. 执行 `git checkout -b the-name-of-my-branch` 创建一个新的分支 (起一个合适的分支名字来替换 `the-name-of-my-branch`)\n\n### 挑选章节进行翻译\n\n1. 保存翻译的文件并在浏览器查看效果\n  1. 在 `website/src` 的修改将会自动更新\n  1. 修改 `docs` 下的markdown文件也会自动更新\n  1. `siteConfig.js` 和 `sideBards.json` 不会自动更新\n\n### 词汇表（[Glossary](https://github.com/single-spa/zh-hans.single-spa.js.org/wiki/Single-spa-%E4%B8%AD%E8%8B%B1%E6%96%87%E5%AF%B9%E7%85%A7%E8%A1%A8)）\n\n文档翻译的过程中，经常出现的词会总结在词汇表中。如 mount，bootstrap，application等。\n\n### 测试修改\n\n1. 如果可以, 测试所有最新版本的常用浏览器的任何视觉变化，包括桌面浏览器和移动浏览器。\n\n### 提交代码\n\n1. `git add . \u0026\u0026 git commit -m \"My message\"` (在 `My message` 出填入提交信息, 比如`修改页面顶部logo`) to 暂存和提交代码\n1. `git push my-fork-name the-name-of-my-branch`。\n1. 去自己 fork 仓库下查找新提交的 `my-fork-name` 分支，发起Pull Request。\n1. 如果方便，请把改动截图一并提交。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingle-spa%2Fzh-hans.single-spa.js.org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsingle-spa%2Fzh-hans.single-spa.js.org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsingle-spa%2Fzh-hans.single-spa.js.org/lists"}