@stainless-api/docs 0.1.0-beta.122 → 0.1.0-beta.123

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.123
4
+
5
+ ### Patch Changes
6
+
7
+ - 813b223: Fix base path appending to header links like mailto:
8
+
3
9
  ## 0.1.0-beta.122
4
10
 
5
11
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stainless-api/docs",
3
- "version": "0.1.0-beta.122",
3
+ "version": "0.1.0-beta.123",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/stl-docs/index.ts CHANGED
@@ -179,9 +179,7 @@ function stainlessDocsIntegration(
179
179
 
180
180
  const base = astroConfig.base ?? '/';
181
181
  const withBase = (link: string) =>
182
- ['http://', 'https://', '//'].some((prefix) => link.startsWith(prefix))
183
- ? link
184
- : path.posix.join(base, link);
182
+ /^([a-z][a-z0-9+.-]*:|\/\/)/.test(link) ? link : path.posix.join(base, link);
185
183
 
186
184
  const virtualModules = new Map(
187
185
  Object.entries({