From d44cd0b2ed7477da2a8f44af996a3bb88dec7b3f Mon Sep 17 00:00:00 2001 From: maddalax Date: Tue, 29 Oct 2024 05:11:35 -0500 Subject: [PATCH] fix urls --- htmgo-site/md/docs/4_interactivity/3_evaluating_javascript.md | 2 +- htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md | 3 +-- htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md | 2 +- htmgo-site/pages/examples/code.go | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/htmgo-site/md/docs/4_interactivity/3_evaluating_javascript.md b/htmgo-site/md/docs/4_interactivity/3_evaluating_javascript.md index 37affdb..981e630 100644 --- a/htmgo-site/md/docs/4_interactivity/3_evaluating_javascript.md +++ b/htmgo-site/md/docs/4_interactivity/3_evaluating_javascript.md @@ -49,7 +49,7 @@ js.SetClassOnSibling(string, string) js.RemoveClassOnSibling(string, string) ``` -For more usages: see https://github.com/maddalax/htmgo/blob/master/htmgo-site/pages/form.go +For more usages: see https://htmgo.dev/examples/form **Example:** Evaluating arbitrary JS diff --git a/htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md b/htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md index 2a185ab..4cd76b4 100644 --- a/htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md +++ b/htmgo-site/md/docs/6_pushing_data/1_server_sent_events.md @@ -3,8 +3,7 @@ htmgo supports server-sent events (SSE) out of the box. This allows you to push data from the server to the client in real-time. -Example of this can be found in the [chat-app](https://github.com/maddalax/htmgo/tree/master/examples/chat) example. -Demo: https://chat-example.htmgo.dev +Example of this can be found in the [chat-app](https://htmgo.dev/examples/chat) example. ## How it works ## 1. The client sends a request to the server to establish a connection. diff --git a/htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md b/htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md index 0caf026..70053db 100644 --- a/htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md +++ b/htmgo-site/md/docs/7_htmx_extensions/2_trigger_children.md @@ -7,7 +7,7 @@ This is useful for things such as:
-**Example:** https://github.com/maddalax/htmgo/blob/master/htmgo-site/pages/form.go#L17 +**Example:** https://htmgo.dev/examples/form In this example: The trigger-children extension will trigger **hx-before-request** and **hx-after-request** on all children of the form when the form is submitted, and the button reacts to that by showing a loading state. diff --git a/htmgo-site/pages/examples/code.go b/htmgo-site/pages/examples/code.go index c65a1a6..ad85d5b 100644 --- a/htmgo-site/pages/examples/code.go +++ b/htmgo-site/pages/examples/code.go @@ -16,7 +16,7 @@ import ( ) func GetGithubPath(path string) string { - path = strings.ReplaceAll(path, "/partials/examples/", "/partials/snippets/") + path = strings.ReplaceAll(path, "/examples/", "/snippets/") return fmt.Sprintf("https://github.com/maddalax/htmgo/tree/master/htmgo-site/partials%s.go", path) }