{"id":21461574,"url":"https://github.com/snowdreams1006/gitbook-plugin-readmore","last_synced_at":"2025-06-15T15:04:17.430Z","repository":{"id":135332071,"uuid":"213278099","full_name":"snowdreams1006/gitbook-plugin-readmore","owner":"snowdreams1006","description":"Gitbook 整合 OpenWrite 平台的 readmore 插件,实现博客的每一篇文章自动增加阅读更多效果,关注公众号后方可解锁全站文章,从而实现博客流量导流到微信公众号粉丝目的.","archived":false,"fork":false,"pushed_at":"2019-12-11T01:12:47.000Z","size":1041,"stargazers_count":4,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-24T13:10:52.018Z","etag":null,"topics":["gitbook-plugin-openwrite","gitbook-plugin-readmore","openwrite","readmore","wechat"],"latest_commit_sha":null,"homepage":"https://snowdreams1006.github.io/gitbook-plugin-readmore/","language":"JavaScript","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/snowdreams1006.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":"2019-10-07T02:15:37.000Z","updated_at":"2024-07-28T04:27:40.244Z","dependencies_parsed_at":null,"dependency_job_id":"5126a84f-ece2-4786-9257-f730db0de7f2","html_url":"https://github.com/snowdreams1006/gitbook-plugin-readmore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-readmore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-readmore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-readmore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-readmore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdreams1006","download_url":"https://codeload.github.com/snowdreams1006/gitbook-plugin-readmore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226012294,"owners_count":17559651,"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":["gitbook-plugin-openwrite","gitbook-plugin-readmore","openwrite","readmore","wechat"],"created_at":"2024-11-23T07:09:49.470Z","updated_at":"2024-11-23T07:09:50.055Z","avatar_url":"https://github.com/snowdreams1006.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 欢迎访问 [gitbook-plugin-readmore](https://snowdreams1006.github.io/gitbook-plugin-readmore/) 官网 👋\n\n[![npm:version](https://img.shields.io/npm/v/gitbook-plugin-readmore.svg)](https://www.npmjs.com/package/gitbook-plugin-readmore)\n[![npm:download](https://img.shields.io/npm/dt/gitbook-plugin-readmore.svg)](https://www.npmjs.com/package/gitbook-plugin-readmore)\n[![npm:prerequisite](https://img.shields.io/badge/gitbook-%3E%3D2.4.3-blue.svg)](https://www.npmjs.com/package/gitbook-plugin-readmore)\n[![npm:license](https://img.shields.io/npm/l/gitbook-plugin-readmore.svg)](https://github.com/snowdreams1006/gitbook-plugin-readmore/blob/master/LICENSE)\n[![github:snodreams1006](https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg)](https://github.com/snowdreams1006)\n[![微信公众号:雪之梦技术驿站-brightgreen.svg](https://img.shields.io/badge/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7-%E9%9B%AA%E4%B9%8B%E6%A2%A6%E6%8A%80%E6%9C%AF%E9%A9%BF%E7%AB%99-brightgreen.svg)](https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg)\n\n\u003e Gitbook 整合 OpenWrite 平台的 readmore 插件,实现博客的每一篇文章自动增加阅读更多效果,关注公众号后方可解锁全站文章,从而实现博客流量导流到微信公众号粉丝目的.\n\n## 效果\n\n![readmore-use-preview.png](https://snowdreams1006.github.io/gitbook-plugin-readmore/readmore-use-preview.png)\n\n## 用法\n\n### Step #1 - 更新 `book.json` 配置文件\n\n1. 在 `book.json` 配置文件中,添加 `readmore` 到 `plugins` 列表.\n2. 在 `book.json` 配置文件中,配置 `pluginsConfig` 对象.\n\n```json\n{\n    \"plugins\": [\"readmore\"],\n    \"pluginsConfig\": {\n        \"readmore\":{\n            \"blogId\": \"15702-1569305559839-744\",\n            \"name\": \"雪之梦技术驿站\",\n            \"qrcode\": \"https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg\",\n            \"keyword\": \"vip\"\n        }\n    }\n}\n```\n\n其中,配置参数含义如下: \n\n- `blogId` : [必选]OpenWrite 后台申请的博客唯一标识,例如:15702-1569305559839-744\n- `name` : [必选]OpenWrite 后台申请的博客名称,例如:雪之梦技术驿站\n- `qrcode` : [必选]OpenWrite 后台申请的微信公众号二维码,例如:https://snowdreams1006.github.io/snowdreams1006-wechat-public.jpeg\n- `keyword` : [必选]OpenWrite 后台申请的微信公众号后台回复关键字,例如:vip\n\n### Step #2 - 运行 gitbook 相关命令\n\n- 运行 `gitbook install` 命令安装到本地项目\n\n```bash\n# 方式一: gitbook安装插件\n$ gitbook install\n\n# 方式二: npm直接安装\n$ npm i gitbook-plugin-readmore\n```\n\n- 运行 `gitbook build` 命令构建本地项目或者 `gitbook serve` 启动本地服务.\n\n```bash\n$ gitbook build\n```\n\n或者\n\n```bash\n$ gitbook serve\n```\n\n## 作者\n\n👤 **snowdreams1006**\n\n- Github: [@snowdreams1006](https://github.com/snowdreams1006)\n- Email: [snowdreams1006@163.com](mailto:snowdreams1006@163.com)\n\n## 🤝 贡献\n\n如果你想贡献自己的一份力量,欢迎提交 [`Issues`](https://github.com/snowdreams1006/gitbook-plugin-readmore/issues) 或者 `Pull Request` 请求!\n\n## 支持\n\n如果本项目对你有所帮助,欢迎 ⭐️ [gitbook-plugin-readmore](https://github.com/snowdreams1006/gitbook-plugin-readmore) 项目,感谢你的支持与认可!\n\n![snowdreams1006-wechat-donate.jpg](https://snowdreams1006.github.io/snowdreams1006-wechat-donate.jpg)\n\n## 📝 版权\n\nCopyright © 2019 [snowdreams1006](https://github.com/snowdreams1006).\n\nThis project is [MIT](https://github.com/snowdreams1006/gitbook-plugin-readmore/blob/master/LICENSE) licensed.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-readmore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-readmore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-readmore/lists"}