diff --git a/doc/_resources/assets/docs.js b/doc/_resources/assets/docs.js index 6f437099ff8..a5868d1c479 100644 --- a/doc/_resources/assets/docs.js +++ b/doc/_resources/assets/docs.js @@ -124,7 +124,7 @@ window.sgdocs = (() => { return } - let branchPrefix = urlPath.match(/(@[\d\w\.]+)/)[0] + let branchPrefix = urlPath.match(/(@[\d\w\.-]+)/)[0] document.querySelectorAll('#content-nav a').forEach(e => e.setAttribute('href', `/${branchPrefix}${e.getAttribute('href')}`)) } diff --git a/doc/_resources/templates/document.html b/doc/_resources/templates/document.html index f7812777e3e..b6f18fc7c2a 100644 --- a/doc/_resources/templates/document.html +++ b/doc/_resources/templates/document.html @@ -446,7 +446,7 @@ {{end}} {{define "afterBody"}} - + {{with .Content}} {{else}}