Skip to content

isabella232/gitbook-plugin-redirect-sub

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A GitBook plugin that redirects another domain focused on nats.io docs migration

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%