Skip to content

Commit

Permalink
Redirect to docs on index
Browse files Browse the repository at this point in the history
  • Loading branch information
tylermmorton committed Nov 10, 2024
1 parent 7373ddb commit fc4329a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .www/docsite/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ require (
github.com/joho/godotenv v1.5.1
github.com/stretchr/testify v1.9.0
github.com/tylermmorton/tmpl v1.0.0
github.com/tylermmorton/torque v1.1.1-0.20241110014118-84e9719d27b2
github.com/tylermmorton/torque v1.1.1-0.20241110043729-7373ddbccd8c
)

require (
Expand Down
2 changes: 2 additions & 0 deletions .www/docsite/routes/docs/docs.tmpl.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ <h1 class="text-xl font-bold">{{ .Title }}</h1>
<a
class="flex h-full w-full flex-row items-center justify-center gap-2 rounded-l-md px-2 hover:bg-raisin-hover"
href="https://github.com/tylermmorton/torque/stargazers"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand All @@ -30,6 +31,7 @@ <h1 class="text-xl font-bold">{{ .Title }}</h1>
<a
href="https://github.com/tylermmorton/torque"
class="flex h-full items-center justify-center rounded-r-md border-l border-raisin-border px-2 hover:bg-raisin-hover"
target="_blank"
>
<svg
xmlns="http://www.w3.org/2000/svg"
Expand Down
1 change: 1 addition & 0 deletions .www/docsite/routes/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ var _ interface {
} = &Controller{}

func (m *Controller) Router(r torque.Router) {
r.Redirect("/", "/docs/getting-started", http.StatusTemporaryRedirect)
r.HandleFileSystem("/s", m.StaticAssets)
r.Handle("/docs", torque.MustNew[docs.ViewModel](&docs.Controller{ContentService: m.ContentService}))
}
Expand Down
4 changes: 2 additions & 2 deletions .www/go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ github.com/go-logr/logr v1.4.1 h1:pKouT5E8xu9zeFC39JXRDukb6JFQPXM5p5I91188VAQ=
github.com/go-logr/logr v1.4.1/go.mod h1:9T104GzyrTigFIr8wt5mBrctHMim0Nb2HLGrmQ40KvY=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572 h1:tfuBGBXKqDEevZMzYi5KSi8KkcZtzBcTgAUUtapy0OI=
github.com/go-task/slim-sprig v0.0.0-20230315185526-52ccab3ef572/go.mod h1:9Pwr4B2jHnOSGXyyzV8ROjYa2ojvAY6HCGYYfMoC3Ls=
github.com/google/gofuzz v1.2.0 h1:xRy4A+RhZaiKjJ1bPfwQ8sedCA+YS2YcCHW6ec7JMi0=
github.com/google/gofuzz v1.2.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38 h1:yAJXTCF9TqKcTiHJAE8dj7HMvPfh66eeA2JYW7eFpSE=
github.com/google/pprof v0.0.0-20210407192527-94a9f03dee38/go.mod h1:kpwsk12EmLew5upagYY7GY0pfYCcupk39gWOCRROcvE=
github.com/gorilla/websocket v1.5.0 h1:PPwGk2jz7EePpoHN/+ClbZu8SPxiqlu12wZP/3sWmnc=
Expand Down Expand Up @@ -72,6 +70,8 @@ github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
github.com/tylermmorton/torque v1.1.1-0.20241110043729-7373ddbccd8c h1:U5M7XZsZ8Kc4f/4E/vZIRnhhxLyB0ObGXR13R+eekB8=
github.com/tylermmorton/torque v1.1.1-0.20241110043729-7373ddbccd8c/go.mod h1:uplqbbzRYLmONLrfqRpg4ub5w8JtvIKZs0emLhlNkZg=
go.etcd.io/gofail v0.1.0 h1:XItAMIhOojXFQMgrxjnd2EIIHun/d5qL0Pf7FzVTkFg=
go.etcd.io/gofail v0.1.0/go.mod h1:VZBCXYGZhHAinaBiiqYvuDynvahNsAyLFwB3kEHKz1M=
go.lsp.dev/jsonrpc2 v0.10.0 h1:Pr/YcXJoEOTMc/b6OTmcR1DPJ3mSWl/SWiU1Cct6VmI=
Expand Down

0 comments on commit fc4329a

Please sign in to comment.