目录

gitbook-plugin-redirect-sub

This GitBook plugin can redirect gitbook page.

Usage

Add to your book.json plugin list:

{
    "plugins" : [ "redirect-sub@https://github.com/nats-io/gitbook-plugin-redirect-sub.git" ],
    "pluginsConfig": {
        "redirect_sub" : {
            "root" : "your-redirect-url-root",
            "bookname" : "your-book-name"
        }
    }
}

For example, when you write below config in book.json,

"redirect_sub" : {
    "root" : "https://books.example.com",
}

and you access to https://example.gitbook.io/xxx/yyy.html , you will be redirected to https://books.example.com/xxx/yyy.html.

Credits

This plugin reuses many codes of gitbook-plugin-redirect Plugin. Many thanks to ketan.

关于
38.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9 京公网安备 11010802032778号