0.2.2 • Published 2 years ago

gitbook-plugin-bottom-navigation v0.2.2

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
2 years ago

npm.io

In your book.json, make sure bottom-navigation is defined before any other footer plugin.

{
  "plugins": [
    "bottom-navigation",
    "page-footer-ex"
  ]
}

You can customize the hovered color with following properties (all properties are listed in packages.json):

{
  "pluginsConfig": {
    "bottom-navigation": {
      "iconColor": null,
      "titleColor": null,
      "borderColor": "#3884FE"
    }
  }
}

Note borderColor has the highest priority which means if iconColor or titleColor is not defined, it will be the same color with borderColor.

If you think default width of page-inner is too narrow, you can change it with pageInnerWidth property like "pageInnerWidth": "80%".


The path attribute in page object is not parsed to html. I get the parsed path through default navigation class. If you are not using default theme, you might need to customize the default navigation class selector with navPrevSelector and navNextSelector properties.

{
  "title":"",
  "level":"",
  "depth":"",
  "next":{
    "title":"",
    "level":"",
    "depth":"",
    "anchor":"undefined",
    "url":"undefined",
    "path":"xxx.md",
    "ref":"xxx.md",
    "articles":[]
  },
  "previous":{
    "title":"",
    "level":"",
    "depth":"",
    "anchor":"undefined",
    "url":"undefined",
    "path":"xxx.md",
    "ref":"xxx.md",
    "articles":[]
  },
  "content":"",
  "dir":"ltr",
  "type":"markdown",
  "path":"xxx.md"
}
0.2.2

2 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago

0.0.3

4 years ago