Skip to content

Commit

Permalink
Add localize helper and remove target="_self"
Browse files Browse the repository at this point in the history
  • Loading branch information
Ca5e committed Oct 14, 2023
1 parent c0924ab commit 9ee8ff3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/terminology-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@ interpreter: # type of interpreter, either: a regex, "alt", or "basic"
(?:(?<=[^`\\])|^)\[(?=[^@\]]+\]\([#a-z0-9_-]*@[:a-z0-9_-]*\))(?<showtext>[^\n\]@]+)\]\((?:(?<id>[a-z0-9_-]*)?(?:#(?<trait>[a-z0-9_-]+))?)?@(?<scopetag>[a-z0-9_-]*)(?::(?<vsntag>[a-z0-9_-]+))?\)
converter: >- # Type of converter, either: a mustache template, "http", or "markdown"
<a
href="{{navurl}}{{#if trait}}#{{trait}}{{/if}}"
href="{{localize navurl}}{{#if trait}}#{{trait}}{{/if}}"
hovertext="{{#if hoverText}}{{hoverText}}{{else}}{{#if glossaryTerm}}{{glossaryTerm}}{{else}}{{capFirst term}}{{/if}}: {{noRefs glossaryText type="markdown"}}{{/if}}"
target="_self"
>{{showtext}}</a>
force: true # toggle overwriting of existing files
input: # glob pattern strings for files to be processed by the TRRT
Expand Down

0 comments on commit 9ee8ff3

Please sign in to comment.