#Help with pagefind

10 messages · Page 1 of 1 (latest)

echo bobcat
#

I followed the instructions word by word for pagefind, however I can't get it to work. The program installs using npx pagefind --source "public" with public being the public folder of my website containing my html files, however using inspect element and running the commands in the documentation returns "undefined"

https://pagefind.app/docs/installation/
https://youtu.be/74lsEXqRQys

Pagefind indexes my website with the following output:

Building search indexes]
Total:
  Indexed 2 languages
  Indexed 824 pages
  Indexed 1616 words
  Indexed 0 filters
  Indexed 0 sorts```
Pagefind

Pagefind is a static binary with no dynamic dependencies, so in most cases will be simple to install and run. Pagefind is currently supported on Windows, macOS, and x86-64 Linux distributions.

In this talk I’ll introduce Pagefind, a new open-source library for static websites that provides efficient search at scale without any extra infrastructure. I’ll demonstrate the process of adding Pagefind to a new site, and also show how well it works at scale — for example, Pagefind can return a search query against the entirety of MDN with a ...

▶ Play video
blissful dove
#

undefined is the expected output of that code

#

The last line is just assigning to a variable.
So you're expected to do something with search

#

Exactly the same as doing this.

echo bobcat
#

@blissful dove It's not an expected result for that code, because it's supposed to return this:

echo bobcat
#

:/

#

oh its just google chrome being stupid lol

blissful dove
#

Should be sort of obvious that many of these variables aren't undefined. Otherwise none of these expressions would evaluate without an error.