{"id":21461580,"url":"https://github.com/snowdreams1006/gitbook-plugin-copyright","last_synced_at":"2025-07-15T03:30:24.975Z","repository":{"id":57149525,"uuid":"212503136","full_name":"snowdreams1006/gitbook-plugin-copyright","owner":"snowdreams1006","description":"基于Gitbook实现的版权保护插件,用于复制内容时追加版本信息以及文章末尾添加版权小尾巴","archived":false,"fork":false,"pushed_at":"2024-08-17T01:32:59.000Z","size":5794,"stargazers_count":2,"open_issues_count":4,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-03T09:54:35.445Z","etag":null,"topics":["copyright","gitbook-plugin","gitbook-plugin-copyright","website","wechat"],"latest_commit_sha":null,"homepage":"https://snowdreams1006.github.io/gitbook-plugin-copyright/","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}},"created_at":"2019-10-03T05:26:20.000Z","updated_at":"2024-08-17T01:33:02.000Z","dependencies_parsed_at":"2022-09-03T18:11:58.199Z","dependency_job_id":null,"html_url":"https://github.com/snowdreams1006/gitbook-plugin-copyright","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/snowdreams1006/gitbook-plugin-copyright","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-copyright","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-copyright/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-copyright/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-copyright/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snowdreams1006","download_url":"https://codeload.github.com/snowdreams1006/gitbook-plugin-copyright/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snowdreams1006%2Fgitbook-plugin-copyright/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265397504,"owners_count":23758443,"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":["copyright","gitbook-plugin","gitbook-plugin-copyright","website","wechat"],"created_at":"2024-11-23T07:09:50.757Z","updated_at":"2025-07-15T03:30:24.296Z","avatar_url":"https://github.com/snowdreams1006.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gitbook-plugin-copyright 👋\n\n[![NPM Version](https://img.shields.io/npm/v/gitbook-plugin-copyright.svg)](https://www.npmjs.com/package/gitbook-plugin-copyright)\n[![NPM Download](https://img.shields.io/npm/dt/gitbook-plugin-copyright.svg)](https://www.npmjs.com/package/gitbook-plugin-copyright)\n[![Documentation](https://img.shields.io/badge/documentation-yes-brightgreen.svg)](https://github.com/snowdreams1006/gitbook-plugin-copyright#readme)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/snowdreams1006/gitbook-plugin-copyright/graphs/commit-activity)\n[![License: MIT](https://img.shields.io/npm/l/gitbook-plugin-copyright.svg)](https://github.com/snowdreams1006/gitbook-plugin-copyright/blob/master/LICENSE)\n[![Github: snowdreams1006](https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg)](https://github.com/snowdreams1006)\n[![微信公众号: 雪之梦技术驿站](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-plugin-copyright` 是基于Gitbook实现的**版权保护插件**,用于复制内容时**追加版权信息**以及文章末尾**添加版权小尾巴**.\n\n## 特色\n\n- 支持复制内容**自动追加**版本保护信息\n- 支持文章末尾**自动生成**版本保护尾巴\n- 支持自定义小尾巴**版权保护图片**\n- 支持 `Gitbook` **多语言环境**\n\n## ✨ 示例\n\n```json\n{\n    \"plugins\": [\"copyright\"],\n    \"pluginsConfig\": {\n        \"copyright\": {\n            \"site\": \"https://snowdreams1006.github.io/gitbook-plugin-copyright\",\n            \"author\": \"雪之梦技术驿站\",\n            \"website\": \"雪之梦技术驿站\",\n            \"image\": \"https://snowdreams1006.github.io/snowdreams1006-wechat-open.png\",\n            \"copyProtect\": false\n        }\n    }\n}\n```\n\n## 🚀 用法\n\n### Step #1 - 更新 `book.json` 配置文件\n\n1. 在 `book.json` 配置文件中,添加 `copyright` 到 `plugins` 列表.\n2. 在 `book.json` 配置文件中,配置 `pluginsConfig` 对象.\n\n#### 单语言版简单示例 `book.json` \n\n```json\n{\n    \"plugins\": [\"copyright\"],\n    \"pluginsConfig\": {\n        \"copyright\": {\n            \"site\": \"https://snowdreams1006.github.io/gitbook-plugin-copyright\",\n            \"author\": \"雪之梦技术驿站\",\n            \"website\": \"雪之梦技术驿站\",\n            \"image\": \"https://snowdreams1006.github.io/snowdreams1006-wechat-open.png\",\n            \"copyProtect\": false\n        }\n    }\n}\n```\n\n#### 多语言版简单示例 `book.json` \n\n```json\n{\n    \"plugins\": [\"copyright\"],\n    \"pluginsConfig\": {\n        \"copyright\": {\n            \"site\": \"https://snowdreams1006.github.io/gitbook-plugin-copyright\",\n            \"author\": {\n                \"en\": \"snowdreams1006\",\n                \"zh\": \"雪之梦技术驿站\"\n            },\n            \"website\": {\n                \"en\": \"snowdreams1006's Gitbook\",\n                \"zh\": \"雪之梦技术驿站\"\n            },\n            \"image\": {\n                \"en\": \"https://img.shields.io/badge/github-snowdreams1006-brightgreen.svg\",\n                \"zh\": \"https://snowdreams1006.github.io/snowdreams1006-wechat-open.png\"\n            },\n            \"copyProtect\": false\n        }\n    }\n}\n```\n\n其中,配置参数含义如下: \n\n- `site` : [必选]部署网站基本路径\n- `author` : [必选]作者信息\n- `website` : [必选]网站名称\n- `image` : [可选]版权保护图片\n- `copyProtect` : [可选]复制内容是否追加版权保护信息\n\n### Step #2 - 运行 gitbook 相关命令\n\n- 运行 `gitbook install` 命令安装到本地项目\n\n```bash\n$ gitbook install\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如果本项目对你有所帮助,欢迎 ⭐️ [gitbook-plugin-copyright](https://github.com/snowdreams1006/gitbook-plugin-copyright) 项目,感谢你的支持与认可!\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-copyright/blob/master/LICENSE) licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-copyright","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-copyright","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnowdreams1006%2Fgitbook-plugin-copyright/lists"}