aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/wiki.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2022-05-05 15:53:38 +0800
committerGitHub <noreply@github.com>2022-05-05 10:53:38 +0300
commit7b089c465d9f851454be91ca209ab26782648a45 (patch)
treedee38550f07722136028d173ab8a6cdef1546b50 /routers/web/repo/wiki.go
parent5a75a5463e647e6783a973650d3306978ce56c57 (diff)
downloadgitea-7b089c465d9f851454be91ca209ab26782648a45.tar.gz
gitea-7b089c465d9f851454be91ca209ab26782648a45.zip
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
Diffstat (limited to 'routers/web/repo/wiki.go')
-rw-r--r--routers/web/repo/wiki.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/routers/web/repo/wiki.go b/routers/web/repo/wiki.go
index 2dbd62d816..8bdb6fbc03 100644
--- a/routers/web/repo/wiki.go
+++ b/routers/web/repo/wiki.go
@@ -189,7 +189,6 @@ func renderViewPage(ctx *context.Context) (*git.Repository, *git.TreeEntry) {
ctx.Data["old_title"] = pageName
ctx.Data["Title"] = pageName
ctx.Data["title"] = pageName
- ctx.Data["RequireHighlightJS"] = true
isSideBar := pageName == "_Sidebar"
isFooter := pageName == "_Footer"
@@ -308,7 +307,6 @@ func renderRevisionPage(ctx *context.Context) (*git.Repository, *git.TreeEntry)
ctx.Data["old_title"] = pageName
ctx.Data["Title"] = pageName
ctx.Data["title"] = pageName
- ctx.Data["RequireHighlightJS"] = true
ctx.Data["Username"] = ctx.Repo.Owner.Name
ctx.Data["Reponame"] = ctx.Repo.Repository.Name
@@ -384,7 +382,6 @@ func renderEditPage(ctx *context.Context) {
ctx.Data["old_title"] = pageName
ctx.Data["Title"] = pageName
ctx.Data["title"] = pageName
- ctx.Data["RequireHighlightJS"] = true
// lookup filename in wiki - get filecontent, gitTree entry , real filename
data, entry, _, noEntry := wikiContentsByName(ctx, commit, pageName)