Back to list
mcclowes

docusaurus-glossary

by mcclowes

A docusaurus plugin for helping users understand key terms.

2🍴 1📅 Jan 24, 2026

SKILL.md


name: docusaurus-glossary

IMPORTANT: Keep description on ONE line for Claude Code compatibility

prettier-ignore

description: Use when working with docusaurus-plugin-glossary to configure, manage glossary terms, troubleshoot issues, and explain features

Docusaurus Glossary

Quick Start

Configure the plugin in docusaurus.config.js and create a glossary JSON file:

// docusaurus.config.js - Using the preset (recommended)
module.exports = {
  presets: [
    [
      'docusaurus-plugin-glossary/preset',
      {
        glossary: {
          glossaryPath: 'glossary/glossary.json',
          routePath: '/glossary',
        },
        docs: {
          /* your docs config */
        },
      },
    ],
  ],
};

Core Principles

  • Auto-linking: Terms in markdown are automatically detected and linked with tooltips (via preset)
  • Glossary JSON: Single source of truth at glossary/glossary.json with terms array
  • Component-based: Use <GlossaryTerm term="API" /> for manual control in MDX
  • Preset approach: Use the preset to auto-configure the remark plugin for docs, blog, and pages

Common Patterns

Adding Glossary Terms

Create/update glossary/glossary.json with term objects containing term, definition, and optional abbreviation, relatedTerms

Troubleshooting Auto-linking

If terms aren't linking: verify glossaryPath exists, ensure using the preset (not just plugin), clear cache with npm run clear, restart dev server

Reference Files

For detailed documentation, see:

Notes

  • Requires Docusaurus v3 and React 18
  • Terms inside code blocks, links, or MDX components are not auto-linked
  • Matching is case-insensitive but respects word boundaries
  • Plugin includes GlossaryPage component and GlossaryTerm theme component

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

1ヶ月以内に更新

+10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

+5

Reviews

💬

Reviews coming soon