{"id":16875838,"url":"https://github.com/yangfong/docsify-contributors","last_synced_at":"2025-04-11T11:32:33.764Z","repository":{"id":42084015,"uuid":"479588847","full_name":"YangFong/docsify-contributors","owner":"YangFong","description":"一个可以显示页面贡献者的插件","archived":false,"fork":false,"pushed_at":"2022-04-13T12:04:22.000Z","size":128,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T07:51:12.515Z","etag":null,"topics":["docsify","docsify-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/docsify-contributors","language":"TypeScript","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/YangFong.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-09T01:46:24.000Z","updated_at":"2024-12-20T21:55:10.000Z","dependencies_parsed_at":"2022-08-12T04:50:11.343Z","dependency_job_id":null,"html_url":"https://github.com/YangFong/docsify-contributors","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/YangFong%2Fdocsify-contributors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YangFong%2Fdocsify-contributors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YangFong%2Fdocsify-contributors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YangFong%2Fdocsify-contributors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YangFong","download_url":"https://codeload.github.com/YangFong/docsify-contributors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248384105,"owners_count":21094674,"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":["docsify","docsify-plugin"],"created_at":"2024-10-13T15:37:11.148Z","updated_at":"2025-04-11T11:32:33.740Z","avatar_url":"https://github.com/YangFong.png","language":"TypeScript","readme":"# docsify-contributors\n\n[![npm version](https://img.shields.io/npm/v/docsify-contributors)](https://www.npmjs.com/package/docsify-contributors)\n[![npm `downloads`](https://img.shields.io/npm/dm/docsify-contributors)](https://www.npmjs.com/package/docsify-contributors)\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://docsify.js.org/_media/icon.svg\" /\u003e\n\u003c/p\u003e\n\n## 触发\n\n在 `afterEach()`（文档解析完成）完毕后，在末尾插入容器元素；\n\n在 `doneEach()` 中读取当前文件 commits，过滤出其中的贡献者，再加入容器当中。\n\n## 效果\n\n\u003e 已使用该插件仓库站点：[doocs/leetcode](https://doocs.github.io/leetcode/#/)\n\n![demo](./images/demo.gif)\n\n## 使用\n\n添加 JS：\n\n```html\n\u003cscript src=\"//cdn.jsdelivr.net/npm/docsify-contributors@latest/dist/index.min.js\"\u003e\u003c/script\u003e\n```\n\n参数：\n\n```js\nwindow.$docsify = {\n    contributors: {\n        repo: 'YangFong/docsify-contributors',\n        ignores: [],\n        style: {\n            color: '#ffffff',\n            bgColor: '#404040'\n        },\n        image: {\n            size: 30,\n            isRound: true,\n            margin: '0.5em'\n        },\n        load: {\n            isOpen: true,\n            color: \"#009999\"\n        }\n    }\n};\n```\n\n## 配置\n\n| 属性            | 类型     | 说明                     | 默认值 | 示例                              |\n| --------------- | -------- | ------------------------ | ------ | --------------------------------- |\n| repo            | string   | 当前站点仓库信息（必填） | ——     | `\"YangFong/docsify-contributors\"` |\n| ignores         | string[] | 需要忽略展示的文件       | []     | `['/README.md']`                  |\n| [style](#style) | {}       | 见下文                   |        |                                   |\n| [image](#image) | {}       | 见下文                   |        |                                   |\n| [load](#load)   | {}       | 见下文                   |        |                                   |\n\n### style\n\n| 属性    | 类型   | 说明           | 默认值    |\n| ------- | ------ | -------------- | --------- |\n| color   | string | 贡献者名称颜色 | `#ffffff` |\n| bgColor | string | 伪元素背景色   | `#404040` |\n\n### image\n\n| 属性    | 类型    | 说明                      | 默认值  | 示例    |\n| ------- | ------- | ------------------------- | ------- | ------- |\n| size    | number  | 头像大小尺寸              | `30`    |         |\n| isRound | boolean | 是否使用圆形头像          | `true`  |         |\n| margin  | string  | 头像外边距，使用 CSS 格式 | `0.5em` | `0 1em` |\n\n### load\n\n\u003e `1.7.0` 新增，源自 [react-loadingg](https://github.com/Summer-andy/react-loading)\n\n| 属性   | 类型    | 说明             | 默认值    | 示例 |\n| ------ | ------- | ---------------- | --------- | ---- |\n| isOpen | boolean | 是否开启加载动画 | `false`   |      |\n| color  | string  | 加载动画物块颜色 | `#009999` |      |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangfong%2Fdocsify-contributors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangfong%2Fdocsify-contributors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangfong%2Fdocsify-contributors/lists"}