Search not working with packgdedown

Hi everyone,

I'm creating a pkgdown website using the command pkgdown::build_site(lazy=TRUE, override = list(destination = "~/docs")) and the site renders great. However, when I got to the Search bar to look for stuff in my local site I get a
image

We deploy the site to github.io website, so I just wanted to make sure the site works in our development branch before it gets moved to main.

pharmaverse/admiral at devel (github.com)

The _pkgdown_yml file is as follows. T

template:
  bootstrap: 5
  params:
    bootswatch: flatly
search:
  exclude: ['news/index.html']
repo:
  url:
    home: https://github.com/pharmaverse/admiral/
    source: https://github.com/pharmaverse/admiral/blob/main/
    issue: https://github.com/pharmaverse/admiral/issues/
    user: https://github.com/
news:
  cran_dates: false
reference:
- title: Derivations
  desc: Derivations add one or more variables or parameters to the input
        dataset and return the extended dataset.
- contents:
  - starts_with("derive")

- title: Computations
  desc: Computations expect vectors as input and return a vector
  contents:
  - has_keyword('computation')

- title: CDISC Hierarchy
- subtitle: ADaM
  desc: General functions which can be used for any ADaM dataset
  contents:
  - has_keyword('adam')
- subtitle: BDS
  desc: BDS specific functions
  contents:
  - has_keyword('bds')
- subtitle: OCCDS
  desc: OCCDS specific functions
  contents:
  - has_keyword('occds')
- subtitle: ADSL
  desc: Functions specific for ADSL
  contents:
  - has_keyword('adsl')
- subtitle: ADEG
  desc: Functions specific for ADEG
  contents:
  - has_keyword('adeg')
- subtitle: ADVS
  desc: Functions specific for ADVS
  contents:
  - has_keyword('advs')
- subtitle: ADEX
  desc: Functions specific for ADEX
  contents:
  - has_keyword('adex')
- subtitle: ADAE
  desc: Functions specific for ADAE
  contents:
  - has_keyword('adae')
- subtitle: ADCM
  desc: Functions specific for ADCM
  contents:
  - has_keyword('adcm')

- title: Other Keywords
- subtitle: Timing
  desc: Function related to timing, e.g. deriving dates, imputing dates, converting dates, deriving duration, ...
  contents:
  - has_keyword('timing')

- subtitle: High Order Functions
  desc: Functions which call other derivations, e.g. on subset of input dataset or multiple times with varying parameters.
  contents:
  - has_keyword('high_order_function')

- subtitle: Source Specifications
  desc: Classes defining sources for derivations where variables or observations from more than one dataset are considered, e.g., like in `derive_var_lstalvdt()`
  contents:
  - has_keyword('source_specifications')

- subtitle: Pre-Defined Time-to-Event Sources
  desc: '`tte_source` objects defined by {admiral} that can be used as input for `derive_param_tte()`'
  contents:
  - has_keyword('tte_source')

- subtitle: Metadata
  desc: Functions related to expanding or providing further context for other data
  contents:
  - has_keyword('metadata')

- title: ADaM Datasets
- contents:
  - adae
  - adcm
  - adsl
  - advs
  - adex

- title: User Utilities
- contents:
  - has_keyword("user_utility")

- title: Developer Utilities
- subtitle: Assertions
- contents:
  - has_keyword("assertion")
- subtitle: Checks
- contents:
  - has_keyword("check")
- subtitle: Warnings
- contents:
  - has_keyword("warning")
- subtitle: Various
- contents:
  - has_keyword("dev_utility")

articles:
- title: User Guides
  navbar: User Guides
  contents:
  - admiral
  - adsl
  - occds
  - bds_finding
  - bds_exposure
  - bds_tte
  - imputation
  - queries_dataset
  - faq

- title: Developer Guides
  navbar: Developer Guides
  contents:
  - contribution_model
  - development_process
  - programming_strategy
  - git_usage
  - writing_vignettes
  - pr_review_guidance
  - unit_test_guidance

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.