internal/worker: update static worker path
CL 359395 updated dochtml.LoadTemplates to expect a static path relative
to /doc. This CL updates the path to fix the worker.
Trust: Jamal Carvalho
Run-TryBot: Jamal Carvalho
TryBot-Result: kokoro
@@ -87,7 +87,7 @@ func NewServer(cfg *config.Config, scfg ServerConfig) (_ *Server, err error) {
if err != nil {
return nil, err
}
- ts := template.TrustedSourceJoin(scfg.StaticPath, template.TrustedSourceFromConstant("doc"))
+ ts := template.TrustedSourceJoin(scfg.StaticPath)
tfs := template.TrustedFSFromTrustedSource(ts)
dochtml.LoadTemplates(tfs)
templates := map[string]*template.Template{
