{"id":13672044,"url":"https://github.com/leizongmin/node-doc-cn","last_synced_at":"2025-08-21T04:30:47.136Z","repository":{"id":10573801,"uuid":"12780454","full_name":"leizongmin/node-doc-cn","owner":"leizongmin","description":"Node.js中文文档","archived":false,"fork":false,"pushed_at":"2020-01-14T16:16:44.000Z","size":377,"stargazers_count":174,"open_issues_count":10,"forks_count":67,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-14T14:18:46.898Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leizongmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-12T09:59:34.000Z","updated_at":"2023-11-14T06:32:07.000Z","dependencies_parsed_at":"2022-09-22T20:02:08.150Z","dependency_job_id":null,"html_url":"https://github.com/leizongmin/node-doc-cn","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/leizongmin%2Fnode-doc-cn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leizongmin%2Fnode-doc-cn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leizongmin%2Fnode-doc-cn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leizongmin%2Fnode-doc-cn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leizongmin","download_url":"https://codeload.github.com/leizongmin/node-doc-cn/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":230487844,"owners_count":18233865,"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-08-02T09:01:25.138Z","updated_at":"2024-12-19T19:08:32.083Z","avatar_url":"https://github.com/leizongmin.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"Node.js API 中文版在线翻译系统\n===========\n\n安装\n====\n\n系统环境要求：\n\n+ MySQL 5.x\n+ Node.js \u003e= 0.8\n\n```bash\ngit clone https://github.com/leizongmin/node-doc-cn.git\ncd node-doc-cn\ncp config.default.js config.js\n```\n\n+ 将 `tables.sql` 导入数据库中\n+ 修改配置文件 `config.js`\n\n```bash\nnpm install\nnode app\n```\n\n工作原理\n========\n\nNode.js 的 API 文档是使用 Markdown 格式来编写的，这种文档有一个共同特征：每个\n段落都是通过一个空行来分割的。\n\n在翻译之前，先通过程序 `tool/import_origin.js` 来读取 `origin/api` 目录下的所有\n`.markdown` 文件，并分割为多个段落，存储到数据库中。\n\n每个段落都会根据其内容，用 `md5()` 来生成一个 `hash` 属性，翻译的时候，每条翻译\n结果也对应与该段落的 `hash`。\n\n当 Node.js API有更新时，重新分割文档的 `markdown` 文件即可，大多数的段落内容没有\n更改，那么仍然能使用旧的翻译结果。\n\n\n授权\n=====\n\n**MIT**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleizongmin%2Fnode-doc-cn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleizongmin%2Fnode-doc-cn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleizongmin%2Fnode-doc-cn/lists"}