You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simple Glossary for Docsify that replaces occurrences of words in text with links to the glossary definitions.
Forked from TheGreenToaster/docsify-glossary as the original
project was unmaintained for over 3 years, to address a couple of usability issues with the original script.
An example usage can be found here ./example, it is deployed automatically to this GitHub page.
Installation
Download the latest version of the javascript (from our releases page)
Add the script into your docsify source directory
Insert script into docsify.template.js document
<scriptsrc="./docsify-glossary.min.js"></script>
Create a _glossary.md file in the root directory
Populate the _glossary.md file with terms.
Plugin Usage
Terms must be predicated with a consistent Markdown heading to get recognized by the glossary (see configuration)
Terms are replaced with links in the order that they appear in the glossary file.
This is especially relevant for nested terminology ( e.g. API and API Usage)
Configuration
This version of the docsify-glossary plugin allows you to configure multiple aspects of the glossary.
An example configuration is shown here:
glossify: {debug: false, # defaultglossaryLocation: './X_Appendix/Glossary/HOME.md', # default is '_glossary.md'terminologyHeading: '##', # default is '####', overwrite to fit your glossary heading depthreplaceTitleTerms: false # default is 'true'}
Running the code
In order to run the code, you will need a node set-up on your local machine.
We recommend using Node Version Manager to make this easier.