Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
gitbook-plugin-icp
Advanced tools
Readme
gitbook plugin for adding icp info to footer
book.json
filebook.json
file, add icp
to plugins
list.pluginsConfig
,Set the number
value to your own icp.pluginsConfig
,label
or link
value is NOT required.By default link url will be http://www.beian.miit.gov.cn/.Here is simplest example :
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"number": "浙ICP备18042346号"
}
}
}
In addition, the supported configuration options are as follows :
"gitbook": {
"properties": {
"label": {
"type": "string",
"title": "icp label",
"required": false
},
"number": {
"type": "string",
"title": "icp number",
"required": true
},
"link": {
"type": "string",
"title": "link url",
"required": false,
"default": "http://www.beian.miit.gov.cn/"
},
"style": {
"type": "object",
"title": "icp number style",
"required": false
}
}
}
gitbook install
. It will automatically install icp
gitbook plugin for your book. This is needed only once.gitbook install
or you can run npm install gitbook-plugin-icp
to install locally.
npm install gitbook-plugin-icp
gitbook build
) or serve (gitbook serve
) as usual.gitbook serve
https://github.com/snowdreams1006/gitbook-plugin-icp/blob/master/docs/book.json
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"number": "浙ICP备18042346号"
}
}
}
https://github.com/snowdreams1006/gitbook-plugin-icp/blob/master/example/book.json
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"number": "浙ICP备18042346号"
}
}
}
book.json
file{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"number": "YOUR OWN ICP NUMBER"
}
}
}
or you can add label
to custom your label:
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"label": "YOUR OWN ICP LABEL",
"number": "YOUR OWN ICP NUMBER"
}
}
}
or you can add link
to custom your link:
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"label": "YOUR OWN ICP LABEL",
"number": "YOUR OWN ICP NUMBER",
"link":"YOUR OWN ICP LINK"
}
}
}
or you can add style
to custom your style of number:
{
"plugins": ["icp"],
"pluginsConfig": {
"icp": {
"label": "YOUR OWN ICP LABEL",
"number": "YOUR OWN ICP NUMBER",
"link": "YOUR OWN ICP LINK",
"style": {
"color": "#f72b07"
}
}
}
}
Note: Above snippet can be used as complete book.json
file, if your book doesn't have one yet.
👤 snowdreams1006
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a Star if this project helped you!
Copyright © 2019 snowdreams1006.
This project is MIT licensed.
FAQs
gitbook plugin for adding icp info to footer
The npm package gitbook-plugin-icp receives a total of 8 weekly downloads. As such, gitbook-plugin-icp popularity was classified as not popular.
We found that gitbook-plugin-icp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.