diff --git a/site/shared.templ b/site/shared.templ index cde42c0b..4d114dfd 100644 --- a/site/shared.templ +++ b/site/shared.templ @@ -282,7 +282,7 @@ templ sidebarPageContents(sidebarGroups []*SidebarGroup, current *SidebarLink, c -
+
@SidebarPrevNextLinks(sidebarGroups, current)
diff --git a/site/src/css/site.css b/site/src/css/site.css index 7790a023..1b02c017 100644 --- a/site/src/css/site.css +++ b/site/src/css/site.css @@ -16,6 +16,10 @@ pre code { @apply text-base !important; } +pre code span.cl { + padding-inline-end: 12px; +} + .output { @apply input input-bordered bg-transparent flex flex-grow items-center max-w-64 overflow-hidden; } @@ -52,4 +56,4 @@ pre code { .prose ol, .prose ul { margin: 0 !important; -} \ No newline at end of file +} diff --git a/site/static/md/guide/getting_started.md b/site/static/md/guide/getting_started.md index e367046f..b291c76e 100644 --- a/site/static/md/guide/getting_started.md +++ b/site/static/md/guide/getting_started.md @@ -74,15 +74,15 @@ To see this in action, we can use the [`data-text`](/reference/attribute_plugins
``` -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
@@ -100,15 +100,15 @@ The value of the `data-text` attribute is a [Datastar expression](/guide/datasta
``` -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
@@ -128,15 +128,15 @@ The [`data-computed`](/reference/attribute_plugins#data-computed) attribute crea This results in the `$repeated` signal's value always being equal to the value of the `$input` signal repeated twice. Computed signals are useful for memoizing expressions containing other signals. -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
@@ -152,15 +152,15 @@ The [`data-show`](/reference/attribute_plugins#data-show) attribute can be used This results in the button being visible only when the input is _not_ an empty string (this could also be written as `!input`). -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
@@ -212,18 +212,18 @@ The [`data-attr`](/reference/attribute_plugins#data-attr) attribute can be used This results in a `disabled` attribute being given the value `true` whenever the input is an empty string. -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
-
@@ -269,18 +269,18 @@ The [`data-on`](/reference/attribute_plugins#data-on) attribute can be used to a This results in the `$input` signal's value being set to an empty string whenever the button element is clicked. This can be used with any valid event name such as `data-on-keydown`, `data-on-mouseover`, etc. -
+
-
-
Input:
- +
+
Input:
+
-
-
Output:
-
+
+
Output:
+
-