Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

122 feat cross linking with glossary file globs #133

Merged
merged 3 commits into from
Dec 19, 2020

Commits on Dec 19, 2020

  1. feat: 'glossaries[i].file' supports glob patterns ('termHint' and 'ti…

    …tle' will be ignored).
    
    If 'file' is a glob pattern 'termHint' and 'title' will be ignored.
    There are various reasons for this.
    
    First is performance. For each file terminator had to scan the
    'glossaries' array for entries with a glob pattern and test
    whether the current entry is the one matching the file being
    processed in order to apply the correct 'termHint' and 'title'.
    
    Second: if there were two patterns matching the same file it
    would not be possible to decide which 'termHint' to apply.
    Basically 'termHint' loses its original purpose, anyways, if
    there are multiple files using the same term hint.
    
    Third: glob patterns are being introduced to support cross-linking.
    Unlike the option's name suggests documents being matched are no longer
    glossaries, only but any document. Headings are no longer terms
    but headings being processed like terms. So 'termHint' isn't a hint
    on a term anymore.
    about-code committed Dec 19, 2020
    Configuration menu
    Copy the full SHA
    cc22ac0 View commit details
    Browse the repository at this point in the history
  2. test: New baseline.

    about-code committed Dec 19, 2020
    Configuration menu
    Copy the full SHA
    6bd3c16 View commit details
    Browse the repository at this point in the history
  3. fix linter error

    about-code committed Dec 19, 2020
    Configuration menu
    Copy the full SHA
    d724281 View commit details
    Browse the repository at this point in the history