From 24545989263971a5a58061c78dd1b2f87c1b03bc Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 26 Sep 2017 15:13:07 +0100 Subject: [PATCH] Speculator: include API docs links for branches --- scripts/speculator/main.go | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/scripts/speculator/main.go b/scripts/speculator/main.go index 87ee4bf6..153a8f38 100644 --- a/scripts/speculator/main.go +++ b/scripts/speculator/main.go @@ -664,13 +664,23 @@ function redirectToApiDocs(relativePath) { branchNames = append(branchNames, "HEAD") for _, branch := range branchNames { href := "spec/" + url.QueryEscape(branch) + "/" - fmt.Fprintf(&b, `
  • %s
  • `, href, branch) + fmt.Fprintf(&b, "
  • %s
  • \n", href, branch) if *includesDir != "" { - fmt.Fprintf(&b, `
  • %s, styled like matrix.org
  • `, + fmt.Fprintf(&b, "
  • %s, styled like matrix.org
  • \n", href, branch) } } - b.Write([]byte("")) + b.Write([]byte("\n\n")) + + b.Write([]byte("
    View the API docs at:
    ")) + + b.Write([]byte("")) b.WriteTo(w) }