summaryrefslogtreecommitdiffstats
path: root/docs/layouts/_default
diff options
context:
space:
mode:
authorJohn Olheiser <42128690+jolheiser@users.noreply.github.com>2019-11-13 12:03:18 -0600
committerzeripath <art27@cantab.net>2019-11-13 18:03:18 +0000
commit3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e (patch)
tree40bb579e03bc20b52fb2f6b82d078e325e0dd378 /docs/layouts/_default
parentafe50873a5d6b52177b0cd6bc9d2657faf82f311 (diff)
downloadgitea-3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e.tar.gz
gitea-3b0303a4fcbb8b8fda258e11edb3fd3c5c09396e.zip
Implement documentation search (#8937)
* Implement documentation search Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
Diffstat (limited to 'docs/layouts/_default')
-rw-r--r--docs/layouts/_default/index.json5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/layouts/_default/index.json b/docs/layouts/_default/index.json
new file mode 100644
index 0000000000..ae08324d8e
--- /dev/null
+++ b/docs/layouts/_default/index.json
@@ -0,0 +1,5 @@
+{{- $.Scratch.Add "index" slice -}}
+{{- range .Site.RegularPages -}}
+{{- $.Scratch.Add "index" (dict "title" .Title "tags" .Params.tags "categories" .Params.categories "contents" .Plain "permalink" .Permalink) -}}
+{{- end -}}
+{{- $.Scratch.Get "index" | jsonify -}}