h1 elements with IDs need a scroll margin to account for the header and
margin height. These anchors are linked automatically by Algolia.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This change adds special rendering for variables in codeblocks.
Variables (placeholder values in examples subject to change)
can be denoted using the following syntax:
<VARIABLE_NAME>
Using this format will render the variable in a special color, and
without the angle brackets, akin to:
\033[95mVARIABLE_NAME\033[39m
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Links that started with a slash were being prepended the URL hostname
and rendered as absolute links before. This caused our link checker to
miss broken links that contained a leading slash.
This change fixes this issue by rendering links with a leading slash as-is,
without modification.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Prevents users from having the icon ligature text included in
clipboard text when copying text from the docs site.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Some documents are missing a `title` front matter,
and instead use an H1 from the document body.
This change introduces a fix to render an external
h1 only if the front matter field is set.
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>