Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,22 @@ jobs:
fi
done

# Each page is indexed in the language it is written in, so Pagefind builds one index per
# language and a reader searching from a translated page is answered out of that
# language's index (#400). A single index means every translation was stamped with the
# wiki's content language and stemmed by English rules, which is what this site looked
# like until SifterSearch indexed per page rather than per wiki.
echo "Search indexes built:"
ls dist/pagefind/*.pf_meta | xargs -n1 basename
echo "Indexed pages per language:"
ls dist/pagefind/fragment | sed 's/_.*//' | sort | uniq -c
for lang in en ko; do
if ! ls dist/pagefind/pagefind."${lang}"_*.pf_meta >/dev/null 2>&1; then
echo "::error::dist/pagefind has no $lang index; pages are not indexed in their own language"
exit 1
fi
done

# Every printfooter "Retrieved from" link must resolve from the page that carries it
# (#394). Core builds it from the page's own URL and expands away the "./" wikven writes,
# so a page exported into a subdirectory needs the "../" per level rename.php adds; the
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN apk add --no-cache rsvg-convert imagemagick-jpeg imagemagick-webp
# SifterSearch (client-side Pagefind search) ships built in. Its release tarball carries the
# per-arch Pagefind binary a git clone omits, so fetch the one matching this build's architecture.
ARG TARGETARCH
ARG SIFTERSEARCH_VERSION=v0.7.1
ARG SIFTERSEARCH_VERSION=v0.7.2
RUN arch="$TARGETARCH" \
&& if [ "$arch" = amd64 ]; then arch=x64; fi \
&& curl -fsSL "https://github.com/chaotic-ground/SifterSearch/releases/download/${SIFTERSEARCH_VERSION}/SifterSearch-linux-${arch}.tar.gz" \
Expand Down
Loading