From 71c5f8ca75d19cf32af4d0b8ed65c8de20867f6b Mon Sep 17 00:00:00 2001 From: Marcin Tojek Date: Wed, 19 Jul 2023 16:43:03 +0200 Subject: [PATCH 1/2] feat: expose docs URL via static meta --- coderd/coderd.go | 1 + site/index.html | 3 ++- site/site.go | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/coderd/coderd.go b/coderd/coderd.go index 3d41d62fded00..8409054730f17 100644 --- a/coderd/coderd.go +++ b/coderd/coderd.go @@ -310,6 +310,7 @@ func New(options *Options) *API { Database: options.Database, SiteFS: site.FS(), OAuth2Configs: oauthConfigs, + DocsURL: options.DeploymentValues.DocsURL.String(), }) staticHandler.Experiments.Store(&experiments) diff --git a/site/index.html b/site/index.html index 25e4de83bc3b3..c96a8fa30111f 100644 --- a/site/index.html +++ b/site/index.html @@ -20,7 +20,8 @@ - + + Date: Wed, 19 Jul 2023 16:47:11 +0200 Subject: [PATCH 2/2] fix --- site/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/index.html b/site/index.html index c96a8fa30111f..92801202a5d88 100644 --- a/site/index.html +++ b/site/index.html @@ -20,7 +20,7 @@ - +