Skip to content

Commit

Permalink
Fix bad redirect yaml generated for hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
luttje committed Aug 28, 2024
1 parent e4a43ed commit 787c842
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/hooks/shared/EntityRemoved.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/EntityRemoved"
url "server/EntityRemoved"
url: "server/EntityRemoved"
- label: "client/EntityRemoved"
url: "client/EntityRemoved"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/FinishMove.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/FinishMove"
url "server/FinishMove"
url: "server/FinishMove"
- label: "client/FinishMove"
url: "client/FinishMove"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/LevelShutdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/LevelShutdown"
url "server/LevelShutdown"
url: "server/LevelShutdown"
- label: "client/LevelShutdown"
url: "client/LevelShutdown"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/OnEntityCreated.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/OnEntityCreated"
url "server/OnEntityCreated"
url: "server/OnEntityCreated"
- label: "client/OnEntityCreated"
url: "client/OnEntityCreated"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/PlayerPostThink.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/PlayerPostThink"
url "server/PlayerPostThink"
url: "server/PlayerPostThink"
- label: "client/PlayerPostThink"
url: "client/PlayerPostThink"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/PlayerTraceAttack.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/PlayerTraceAttack"
url "server/PlayerTraceAttack"
url: "server/PlayerTraceAttack"
- label: "client/PlayerTraceAttack"
url: "client/PlayerTraceAttack"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/SetupMove.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/SetupMove"
url "server/SetupMove"
url: "server/SetupMove"
- label: "client/SetupMove"
url: "client/SetupMove"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/StartCommand.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/StartCommand"
url "server/StartCommand"
url: "server/StartCommand"
- label: "client/StartCommand"
url: "client/StartCommand"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/Think.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/Think"
url "server/Think"
url: "server/Think"
- label: "client/Think"
url: "client/Think"
---
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/shared/Tick.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tags:
lua:
redirects:
- label: "server/Tick"
url "server/Tick"
url: "server/Tick"
- label: "client/Tick"
url: "client/Tick"
---
Expand Down
2 changes: 1 addition & 1 deletion tools/docs-build-hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ function writeHookToFile(hook) {
// will add a file that simply redirects to the client- and server-specific hooks.
if (hooksTouchedThisRun.has(hook.name)) {
const otherHook = hooksTouchedThisRun.get(hook.name);
let redirects = `- label: ${wrapQuotes(hook.realm + '/' + hook.name)}\n url ${wrapQuotes(hook.realm + '/' + hook.name)}`;
let redirects = `- label: ${wrapQuotes(hook.realm + '/' + hook.name)}\n url: ${wrapQuotes(hook.realm + '/' + hook.name)}`;
redirects += `\n - label: ${wrapQuotes(otherHook.realm + '/' + otherHook.name)}\n url: ${wrapQuotes(otherHook.realm + '/' + otherHook.name)}`;

const redirectFilePath = path.join(outputDir, 'shared', `${hook.name}.md`);
Expand Down

0 comments on commit 787c842

Please sign in to comment.