@stainless-api/docs 0.1.0-beta.100 → 0.1.0-beta.101

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,14 @@
1
1
  # @stainless-api/docs
2
2
 
3
+ ## 0.1.0-beta.101
4
+
5
+ ### Patch Changes
6
+
7
+ - f81fade: Fix false negatives detecting prose pages to convert to markdown
8
+ - Updated dependencies [21e50d3]
9
+ - @stainless-api/docs-ui@0.1.0-beta.77
10
+ - @stainless-api/docs-search@0.1.0-beta.30
11
+
3
12
  ## 0.1.0-beta.100
4
13
 
5
14
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.100",
3
+ "version": "0.1.0-beta.101",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -56,8 +56,8 @@
56
56
  "vite-plugin-prebundle-workers": "^0.2.0",
57
57
  "web-worker": "^1.5.0",
58
58
  "yaml": "^2.8.2",
59
- "@stainless-api/docs-search": "0.1.0-beta.29",
60
- "@stainless-api/docs-ui": "0.1.0-beta.76",
59
+ "@stainless-api/docs-search": "0.1.0-beta.30",
60
+ "@stainless-api/docs-ui": "0.1.0-beta.77",
61
61
  "@stainless-api/ui-primitives": "0.1.0-beta.48"
62
62
  },
63
63
  "devDependencies": {
@@ -27,15 +27,14 @@ export async function getProsePages({
27
27
  .filter((file) => file.isFile() && file.name.endsWith('.html'))
28
28
  .map((file) => join(file.parentPath, file.name));
29
29
 
30
- // Filter out API reference pages
30
+ if (!apiReferenceBasePath) return htmlFiles;
31
+ // Normalize by removing leading/trailing slashes from apiReferenceBasePath
32
+ const normalizedApiPath = apiReferenceBasePath.replace(/^\/+/g, '').replace(/\/+$/g, '');
31
33
  const pagesToRender = htmlFiles.filter((absPath) => {
32
- if (!apiReferenceBasePath) {
33
- return true;
34
- }
35
34
  const relPath = relative(outputBasePath, absPath);
36
- // Normalize by removing leading/trailing slashes from apiReferenceBasePath
37
- const normalizedApiPath = apiReferenceBasePath.replace(/^\/+|\/+$/g, '');
38
- return !relPath.startsWith(normalizedApiPath);
35
+ // Filter out API reference pages
36
+ if (relPath === normalizedApiPath || relPath.startsWith(`${normalizedApiPath}/`)) return false;
37
+ return true;
39
38
  });
40
39
 
41
40
  return pagesToRender;