Commit Graph

13 Commits

Author SHA1 Message Date
David Karlsson 0ff3eb3aab hugo: migrate font icons to svg
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-25 12:28:38 +01:00
David Karlsson 04a5ee0915 hugo: use icon utility class for external links
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-08 13:25:03 +01:00
David Karlsson 834db3da41 css: refactor and improve styles
- Refactoring styles to prevent unwanted specificity issues by using
  tailwind directives
- Improve color consistency for code blocks and other components by
  replacing adhoc hex values with theme colors

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2024-01-03 14:54:57 +01:00
David Karlsson c710541f28 a11y: add aria-hidden to external link icons
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-12-11 09:43:11 +01:00
David Karlsson f64276790d feat: numbered lines for code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-30 20:48:59 +01:00
David Karlsson f7bbe06d27 feat: special rendering for codeblock variables
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>
2023-10-13 20:17:16 +02:00
David Karlsson 26ee37b52a feat: add image border as query param
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-10-02 13:08:40 +02:00
David Karlsson 2eb97d7fe7 fix: use links with leading slash as-is
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>
2023-09-29 21:06:55 +02:00
David Karlsson 0eca2035e7 fix: add no-select to external link icon
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>
2023-09-28 10:36:49 +02:00
David Karlsson b5f365e0ec style: center images and adjust border radius 💅
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-31 16:44:15 +02:00
David Karlsson 57c9b961fe js: fix copy function for multiline code blocks
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-23 11:19:53 +02:00
David Karlsson 2284afe898 hugo: fix html escape for headings
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 11:27:27 +02:00
David Karlsson a0d21ade2f migrate to hugo
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-08-22 09:41:02 +02:00