Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
104141b
Replace the search.json index with Pagefind
enf0rc3 Aug 17, 2026
ec3a6d7
Add pagefind to the project dictionary
enf0rc3 Aug 17, 2026
ed90200
Preload while typing, warm on page load, and set the excerpt length
enf0rc3 Aug 18, 2026
b9f25d6
Use the rest of what Pagefind offers
enf0rc3 Aug 18, 2026
da3fddd
Reorder Pagefind's results, and stop sections crowding them out
enf0rc3 Aug 18, 2026
315e386
Index technical punctuation, weight the metadata, ignore properly
enf0rc3 Aug 18, 2026
c5abc10
Ask the overlay whether the API reference is findable
enf0rc3 Aug 18, 2026
f127c1c
Stop searching on one and two characters, and on nothing at all
enf0rc3 Aug 19, 2026
9e91166
Tell a screen reader what the search found
enf0rc3 Aug 19, 2026
afcb5d4
Rewrite the search comments that referred to the spike
enf0rc3 Aug 19, 2026
a5cb1fa
Fix the review findings in the Pagefind search
enf0rc3 Aug 19, 2026
37b6f93
Cut the search comments back to what is not obvious
enf0rc3 Aug 19, 2026
34a268c
Put back the comments that stop a future edit breaking something
enf0rc3 Aug 19, 2026
5b214f9
Fix the second round of review findings
enf0rc3 Aug 19, 2026
22280cb
Fire the search event Plausible has been waiting for
enf0rc3 Aug 19, 2026
4c099aa
Cut the Pagefind index checks back to failing on errors
enf0rc3 Aug 19, 2026
06adb8b
Scope the Pagefind index from the indexer
enf0rc3 Aug 20, 2026
747dae8
Answer a broad query, and put guides ahead of the reference
enf0rc3 Aug 20, 2026
0784ad0
Stop paging over a page that was pulled forward
enf0rc3 Aug 20, 2026
75eeb4d
Show what a tab says it holds
enf0rc3 Aug 20, 2026
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
6 changes: 6 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import { satteri } from '@astrojs/markdown-satteri';
import mdx from '@astrojs/mdx';
import { attributeMarkdown, wrapTables } from '/src/themes/octopus/utilities/custom-markdown.mjs';
import llmMdEmitter from './src/integrations/llm-md-emitter.ts';
import pagefindIndex from './src/integrations/pagefind-index.ts';
import pruneDist from './src/integrations/prune-dist.ts';
import satteriHeadingId from './src/plugins/satteri-heading-id.js';
import satteriApiExamples, { apiExampleDirective } from './src/plugins/satteri-api-examples.js';
import { endpointDirective } from './src/plugins/satteri-endpoint.js';
import satteriWbr from './src/plugins/satteri-wbr.js';
import pagefindImageAttrs from './src/plugins/pagefind-image-attrs.js';
import shikiCodeBlock from './src/plugins/shiki-code-block.js';

// https://astro.build/config
Expand All @@ -22,6 +24,9 @@ export default defineConfig({
integrations: [
mdx(),
llmMdEmitter(),
// After the page emitters, and before the prune that would delete its
// output
pagefindIndex(),
// Must run last: strips build output that can't be served under /docs/
pruneDist()
],
Expand Down Expand Up @@ -63,6 +68,7 @@ export default defineConfig({
],
hastPlugins: [
satteriWbr,
pagefindImageAttrs,
satteriApiExamples
],
}),
Expand Down
1 change: 1 addition & 0 deletions dictionary-octopus.txt
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ Ozar
PAAS
packageid
packageversion
pagefind
passout
PathtoPublish
pemstore
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@
"astro-accelerator-utils": "^0.3.84",
"glob": "^13.0.6",
"gray-matter": "^4.0.3",
"html-to-text": "^10.0.0",
"keyword-extractor": "^0.0.28",
"optional": "^0.1.4",
"pagefind": "^1.5.2",
"satteri": "^0.9.5",
"sharp": "^0.34.5"
},
Expand Down
139 changes: 73 additions & 66 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading