Socket
Socket
Sign inDemoInstall

gitbook-plugin-glossary-tooltip

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    gitbook-plugin-glossary-tooltip

gitbook plugin to display glossary text as a tooltip


Version published
Weekly downloads
6
increased by200%
Maintainers
1
Install size
1.36 MB
Created
Weekly downloads
 

Readme

Source

GitBook Glossary Tooltip Plugin

A plugin that uses tooltipjs to automatically transform glossary items into tooltips instead of seeing the default browser title attribute on hover.

npm version Build Status

Add Plugin

book.json

{
    "plugins": ["glossary-tooltip"]
}

then run

$ gitbook install

Configure (Optional Step)

book.json

"pluginsConfig": {
    "glossary-tooltip":{
        "parseGlossaryItems": false,
    }
}

Config Options:

OptionDescription
parseGlossaryItems {Boolean}
default: true
tells the plugin whether to apply tooltips to glossary items or not
trigger {string}
default: hover
the event that triggers the tooltip. one of ['hover', 'click', 'focus']
placement {string}
default: top
placement of the tooltip relative to the trigger element. one of ['top', 'bottom', 'left', 'right']"

Template

You can also place your own tooltip in your markdown

Args

tooltip takes one required named/unnamed argument:

  • topic (string): The text to display in the tooltip trigger element.

example:


{% tooltip "sample tooltip" %} sample tooltip test with **Emphasis** {% endtooltip %}

Sample output

output

Pull requests are welcome

Keywords

FAQs

Last updated on 16 Apr 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc