Skip to content

Commit cd56b9e

Browse files
committed
add search functionality
This complements carpentries/varnish#86
1 parent c5aa7d1 commit cd56b9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

R/build_site.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ build_site <- function(path = ".", quiet = !interactive(), preview = TRUE, overr
151151

152152
# At the end, a sitemap is created with our aggregated pages.
153153
build_sitemap(pkg$dst_path, paths = html_pages$paths, quiet = quiet)
154+
pkgdown::build_search(pkg)
154155

155156
pkgdown::preview_site(pkg, "/", preview = preview)
156157

inst/templates/pkgdown-yaml-template.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# ------------------------------------------------------------------ information
1+
# ------------------------------------------------------------------ information
22
# This file was generated by sandpaper version {{ version }}
33
# If you want to make changes, please edit {{ config }}
4-
# ------------------------------------------------------------------ information
4+
# ------------------------------------------------------------------ information
55
title: {{ title }} # needed to set the site title
66
home:
77
title: Home
88
strip_header: true
99
description: ~
1010
template:
11+
bootstrap: 5
1112
package: varnish
1213
params:
1314
time: {{ time }}

0 commit comments

Comments
 (0)