Adding sidebar links to local Gitbooks

I've started keeping track of various notes in markdown format and I wanted to use Gitbook to group them together. I'm using the npm module to build it locally. It's a useful tool and theThe completed book looks nice. However I would like to add some customisations e.g. links back to my main page.

It's not easy to add simple customisations. Or more like it probably is but it's not well documented how to do so. Editing the header is a bit awkward as you have to modify the theme yourself. I'll probably end up just adding a header above it using an iframe.

One thing I did find out how to do was to add links to the sidebar. You edit the book.json to add a links section like this

  {
    "links": {
      "sidebar": {
        "Gerard Condon": "http://www.gerardcondon.com",
        "Github": "https://github.com/gerardcondon/tools-docs"
      }
    }
  }

posted on February 15, 2017development

Tags

By year

  1. 2020 (14)
  2. 2019 (17)
  3. 2018 (2)
  4. 2017 (11)
  5. 2016 (3)
  6. 2015 (6)
  7. 2014 (3)
  8. 2013 (11)
  9. 2012 (25)