diff --git a/docs/cmd/ssg.go b/docs/cmd/ssg.go index 02f4e5f..b4d9e5a 100644 --- a/docs/cmd/ssg.go +++ b/docs/cmd/ssg.go @@ -15,12 +15,12 @@ func main() { Page: pager("getting-started.md"), Tag: "Help", Children: []*pdocs.Sitemap{ - {Text: "Managed"}, - {Text: "DNS"}, - {Text: "Docker Compose"}, - {Text: "Docker"}, - {Text: "Google Cloud Platform"}, - {Text: "Authentication"}, + {Text: "Managed", Href: "#managed"}, + {Text: "DNS", Href: "#dns"}, + {Text: "Docker Compose", Href: "#docker-compose"}, + {Text: "Docker", Href: "#docker"}, + {Text: "Google Cloud Platform", Href: "#google-cloud-platform"}, + {Text: "Authentication", Href: "#authentication"}, }, }, { @@ -29,11 +29,10 @@ func main() { Page: pager("how-it-works.md"), Tag: "Help", Children: []*pdocs.Sitemap{ - {Text: "Port Forward"}, - {Text: "Traditional VPN"}, - {Text: "sish Public"}, - {Text: "sish Private"}, - {Text: "Additional Details"}, + {Text: "Port Forward", Href: "#port-forward"}, + {Text: "Traditional VPN", Href: "#traditional-vpn"}, + {Text: "sish Public", Href: "#sish-public"}, + {Text: "sish Private", Href: "#sish-private"}, }, }, { @@ -42,10 +41,10 @@ func main() { Page: pager("forwarding-types.md"), Tag: "Help", Children: []*pdocs.Sitemap{ - {Text: "HTTP"}, - {Text: "TCP"}, - {Text: "TCP Alias"}, - {Text: "SNI"}, + {Text: "HTTP", Href: "#href"}, + {Text: "TCP", Href: "#tcp"}, + {Text: "TCP Alias", Href: "#tcp-alias"}, + {Text: "SNI", Href: "#sni"}, }, }, { @@ -54,13 +53,13 @@ func main() { Page: pager("cheatsheet.md"), Tag: "Help", Children: []*pdocs.Sitemap{ - {Text: "Remote forward SSH tunnels"}, - {Text: "Local forward SSH tunnels"}, - {Text: "HTTPS public access"}, - {Text: "HTTPS private access"}, - {Text: "Websocket"}, - {Text: "TCP public access"}, - {Text: "TCP private access"}, + {Text: "Remote forward SSH tunnels", Href: "#remote-forward-ssh-tunnels"}, + {Text: "Local forward SSH tunnels", Href: "#local-foward-ssh-tunnels"}, + {Text: "HTTPS public access", Href: "#https-public-access"}, + {Text: "HTTPS private access", Href: "#https-private-access"}, + {Text: "Websocket", Href: "#websocket"}, + {Text: "TCP public access", Href: "#tcp-public-access"}, + {Text: "TCP private access", Href: "#tcp-private-access"}, }, }, {Text: "CLI", Href: "/cli", Page: pager("cli.md"), Tag: "CLI"}, @@ -69,11 +68,11 @@ func main() { Href: "/advanced", Page: pager("advanced.md"), Children: []*pdocs.Sitemap{ - {Text: "Choose your own subdomain"}, - {Text: "Websocket Support"}, - {Text: "Allowlist IPs"}, - {Text: "Custom Domains"}, - {Text: "Load Balancing"}, + {Text: "Choose your own subdomain", Href: "#choose-your-own-subdomain"}, + {Text: "Websocket Support", Href: "#websocket-support"}, + {Text: "Allowlist IPs", Href: "#allowlist-ips"}, + {Text: "Custom Domains", Href: "#custom-domains"}, + {Text: "Load Balancing", Href: "#load-balancing"}, }, Tag: "Help", }, diff --git a/docs/tmpl/toc.partial.tmpl b/docs/tmpl/toc.partial.tmpl index 9170376..681022d 100644 --- a/docs/tmpl/toc.partial.tmpl +++ b/docs/tmpl/toc.partial.tmpl @@ -5,7 +5,16 @@

{{$key}}