@luciodale/docs-ui-kit 0.3.37 → 0.3.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luciodale/docs-ui-kit",
3
- "version": "0.3.37",
3
+ "version": "0.3.38",
4
4
  "description": "Astro component library for documentation sites. Dark theme, orange accent.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -135,6 +135,7 @@
135
135
  };
136
136
 
137
137
  type PagefindAPI = {
138
+ options: (opts: Record<string, unknown>) => Promise<void>;
138
139
  init: () => Promise<void>;
139
140
  search: (query: string) => Promise<{ results: Array<{ data: () => Promise<PagefindResult> }> }>;
140
141
  };
@@ -147,6 +148,7 @@
147
148
  const base = import.meta.env.BASE_URL.replace(/\/$/, "");
148
149
  const path = `${base}/_pagefind/pagefind.js`;
149
150
  pagefind = await import(/* @vite-ignore */ path) as PagefindAPI;
151
+ await pagefind.options({ baseUrl: "/" });
150
152
  await pagefind.init();
151
153
  return pagefind;
152
154
  } catch {