@stainless-api/docs 0.1.0-beta.76 → 0.1.0-beta.77

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.77
4
+
5
+ ### Patch Changes
6
+
7
+ - 5c8fef8: fixes pagefind path
8
+
3
9
  ## 0.1.0-beta.76
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.76",
3
+ "version": "0.1.0-beta.77",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -15,7 +15,6 @@ import {
15
15
  import { ComponentProvider } from '@stainless-api/docs-ui/contexts/component';
16
16
  import { SearchProvider } from '@stainless-api/docs-search/context';
17
17
  import type { SearchSettings } from '@stainless-api/docs-search/types';
18
- import path from 'path';
19
18
 
20
19
  let $$highlighter: HighlighterGeneric<BundledLanguage, BundledTheme> | null = null;
21
20
  async function getHighlighter() {
@@ -92,7 +91,7 @@ export function DocsSearch({ settings, currentPath }: { settings: SearchSettings
92
91
  // eslint-disable-next-line turbo/no-undeclared-env-vars
93
92
  const pageFind = import.meta.env.DEV
94
93
  ? undefined
95
- : path.posix.join(import.meta.env.BASE_URL, '/pagefind/pagefind.js');
94
+ : `${import.meta.env.BASE_URL}/pagefind/pagefind.js`.replace(/\/+/g, '/');
96
95
 
97
96
  function handleSelect(selectedPath: string) {
98
97
  const url = selectedPath.startsWith('/')