From db1d6990e0c17174668fb77698df6d4e4cf19d8c Mon Sep 17 00:00:00 2001 From: Manfred Touron <94029+moul@users.noreply.github.com> Date: Fri, 22 Nov 2024 04:15:04 +0100 Subject: [PATCH] feat: r/docs/home -> r/docs (#3175) I initially considered adding a rule in gnoweb to automatically redirect to `/home`. However, I believe it makes more sense to: 1. Test having a namespace-realm to identify any inconveniences. 2. Designate `r/docs` as the documentation and `r/docs/home` as the homepage for the "docs" team. Later, we might use `r//home` to configure a DefaultRealm that enables redirection when accessing `r/`. I'm not sure yet, but let's experiment. Signed-off-by: moul <94029+moul@users.noreply.github.com> --- examples/gno.land/r/docs/{home/home.gno => docs.gno} | 2 +- examples/gno.land/r/docs/{home/home_test.gno => docs_test.gno} | 2 +- examples/gno.land/r/docs/gno.mod | 1 + examples/gno.land/r/docs/home/gno.mod | 1 - 4 files changed, 3 insertions(+), 3 deletions(-) rename examples/gno.land/r/docs/{home/home.gno => docs.gno} (98%) rename examples/gno.land/r/docs/{home/home_test.gno => docs_test.gno} (97%) create mode 100644 examples/gno.land/r/docs/gno.mod delete mode 100644 examples/gno.land/r/docs/home/gno.mod diff --git a/examples/gno.land/r/docs/home/home.gno b/examples/gno.land/r/docs/docs.gno similarity index 98% rename from examples/gno.land/r/docs/home/home.gno rename to examples/gno.land/r/docs/docs.gno index 6e61f08c11a..f796f07bf4a 100644 --- a/examples/gno.land/r/docs/home/home.gno +++ b/examples/gno.land/r/docs/docs.gno @@ -1,4 +1,4 @@ -package home +package docs func Render(_ string) string { return `# Gno Examples Documentation diff --git a/examples/gno.land/r/docs/home/home_test.gno b/examples/gno.land/r/docs/docs_test.gno similarity index 97% rename from examples/gno.land/r/docs/home/home_test.gno rename to examples/gno.land/r/docs/docs_test.gno index 98dc999e005..aa25332f91b 100644 --- a/examples/gno.land/r/docs/home/home_test.gno +++ b/examples/gno.land/r/docs/docs_test.gno @@ -1,4 +1,4 @@ -package home +package docs import ( "strings" diff --git a/examples/gno.land/r/docs/gno.mod b/examples/gno.land/r/docs/gno.mod new file mode 100644 index 00000000000..227ceb91124 --- /dev/null +++ b/examples/gno.land/r/docs/gno.mod @@ -0,0 +1 @@ +module gno.land/r/docs diff --git a/examples/gno.land/r/docs/home/gno.mod b/examples/gno.land/r/docs/home/gno.mod deleted file mode 100644 index b9f8d060f75..00000000000 --- a/examples/gno.land/r/docs/home/gno.mod +++ /dev/null @@ -1 +0,0 @@ -module gno.land/r/docs/home