From 7522fcfcc0316dc0c36646ec01ff52af2a00b987 Mon Sep 17 00:00:00 2001 From: Tom Palmer Date: Sun, 7 Jul 2024 07:10:01 +0100 Subject: [PATCH] Add dark mode to pkgdown site Requires pkgdown >= 2.1.0 Remove custom right navbar (otherwise that replaces search and dark mode toggle) --- _pkgdown.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/_pkgdown.yml b/_pkgdown.yml index 2c4d8a92..a6a20f56 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -1,8 +1,10 @@ url: https://mrcieu.github.io/TwoSampleMR/ template: - params: - bootswatch: united bootstrap: 5 + light-switch: true + bslib: + bootswatch: united + pkgdown-navbar-bg: '#e95420' navbar: left: @@ -26,9 +28,6 @@ navbar: href: reference/index.html - text: "Changelog" href: "news/index.html" - right: - - text: "Source" - href: https://github.com/mrcieu/TwoSampleMR articles: - title: "Guide"