Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 738 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 738 Bytes

docsify-glossary

Simple Glossary for Docsify that replaces occurrences of the terms with links to the glossary.

Install

  1. Insert script into docsify document
<script src="//unpkg.com/docsify-glossary/dist/docsify-glossary.min.js"></script>
  1. Create a _glossary.md file in the root directory
  2. Populate the _glossary.md file with terms.

Usage

  • Terms must be predicated with ##### to get recognized by the glossary
  • Terms in the documentation must be surrounded by space to get replaced by the regular expression
  • Terms are replaced with links in the order that they appear in the glossary file.

Example

  1. Run npm run-script build
  2. Run docsify serve example
  3. Go to http://localhost:3000/