From 4518b09c43f2a9cf08ee4e8a10e2e471df4d110d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Fri, 5 Jul 2024 15:59:45 +0200 Subject: [PATCH] docs: add search to pkgdown navbar --- _pkgdown.yml | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/_pkgdown.yml b/_pkgdown.yml index f9158ff..7ffb478 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -19,12 +19,17 @@ reference: - '`nlm_randomrectangularcluster`' navbar: title: nlmr | Neutral landscape models with R - left: - - text: "Get Started" + structure: + left: [intro, howto, record] + right: [news, reference, search, github] + components: + intro: + text: "Get Started" icon: fa fa-magic href: articles/getstarted.html - - text: "How To" + howto: icon: fa-graduation-cap + aria-label: tutorials menu: - text: NLMR Overview + Tips href: articles/articles/overview_tips.html @@ -32,19 +37,9 @@ navbar: href: articles/articles/nlm_software_heritage.html - text: Visualize Neutral Landscape Models href: articles/articles/visualize_nlms.html - - text: "Publication Record" + record: icon: fa-file-text-o href: articles/articles/publication_record.html - right: - - icon: fa-newspaper-o - text: "news" - href: news/index.html - - icon: fa-gears - text: "functions" - href: reference/index.html - - icon: fa-github fa-lg - text: "github" - href: https://github.com/ropensci/nlmr extra_packages: - bindrcpp @@ -56,3 +51,6 @@ extra_packages: - viridis - plotly - rayshader + +template: + bootstrap: 5