Skip to content

Commit dc757d1

Browse files
committed
fixes
1 parent dc6b114 commit dc757d1

File tree

10 files changed

+21
-456
lines changed

10 files changed

+21
-456
lines changed

docs/articles/step-3-add-api-key-auth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ this authentication method is considered one of the easiest to use by developers
1212
but hard for API developers to get right. We also support JWT tokens and other
1313
authentication methods.
1414

15-
:::info{title="What's a Policy?}
15+
:::info{title="What's a Policy?"}
1616

1717
[Policies](./policies.md) are modules that can intercept and transform an
1818
incoming request or outgoing response. Zuplo offers a wide range of policies

docs/handlers/url-rewrite.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Rewrite Handler can be added to any route using the Route Designer. Open the
1717
**routes.oas.json**. Inside any route, select **URL Rewrite** from the **Request
1818
Handlers** drop-down.
1919

20-
![Url Rewrite Handler selection](../../public/media/url-rewrite-handler-selection.png)
20+
![Url Rewrite Handler selection](/media/url-rewrite-handler-selection.png)
2121

2222
In the text box enter the URL to rewrite the request. Values can be mixed into
2323
the URL string using Javascript string interpolation syntax. For example:

package-lock.json

Lines changed: 4 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99
"scripts": {
1010
"dev": "zudoku dev",
1111
"build": "zudoku build",
12-
"build:scripts": "node ./scripts/build.mjs",
1312
"format": "prettier --write .",
1413
"typecheck": "tsc",
15-
"postinstall": "pnpm policies:get && pnpm policies:generate",
14+
"postinstall": "npm run policies:get && npm run policies:generate",
1615
"policies:get": "sh ./scripts/get-policies.sh",
1716
"policies:generate": "tsx scripts/generate-policies.ts",
1817
"policies:ci": "node ./scripts/build.mjs && node --enable-source-maps ./scripts/update-policies.main.mjs"
@@ -24,7 +23,7 @@
2423
"react": "18.3.1",
2524
"react-dom": "18.3.1",
2625
"typescript": "5.6.3",
27-
"zudoku": "0.0.0-d99ad45"
26+
"zudoku": "0.0.0-740d272"
2827
},
2928
"devDependencies": {
3029
"@types/json-schema": "7.0.15",

scripts/build.mjs

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/fix-markdown.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
export const fixMarkdown = (content: string) =>
22
content
3-
.replaceAll(/\.mdx?(#.*?)?\)/gm, "$1)") // replace paths like `../../public` without the `public` prefix
3+
.replaceAll(/\.mdx?(#.*?)?\)/gm, "$1)")
4+
// replace paths like `../../public` without the `public` prefix
45
.replaceAll(/\((\.\.\/)+public/gm, "(")
5-
// replace local gifs and pngs with webm and webp
6-
.replaceAll(/(]\(\.*\/.+?)(\.gif\))/gm, "$1.webm)")
7-
.replaceAll(/(]\(\.*\/.+?)(\.png\))/gm, "$1.webp)")
86
// replace outdated directives with correct syntax
97
.replaceAll(/:::\s([^\n]+)/gm, ":::$1")
8+
// /^(.*?)\s*{#([\w-]+)}$
9+
// replace custom slug ids:
10+
.replaceAll(/^(#+.*?)\s*{#([\w-]+)}/gm, "$1")
1011
.replaceAll(
1112
/:::(tip|info|note|caution|warning|danger)\s([^\n]+)/gm,
1213
':::$1{title="$2"}',
13-
);
14+
)
15+
.replaceAll(/:::\w+{title="[^"]*"}/g, (m) => m.replaceAll(/\n/g, ""));

scripts/update-policies.main.mjs

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)