Clean up website build

This commit is contained in:
Zef Hemel
2022-11-25 19:43:54 +01:00
parent 6521016b7c
commit ee4979b471
5 changed files with 13 additions and 55 deletions
-8
View File
@@ -35,14 +35,6 @@ export async function updateDirectivesOnPageCommand(arg: any) {
// Collect all directives and their body replacements
const replacements: { fullMatch: string; text?: string }[] = [];
// Sanity checking if the server gives useful responses (will not be the case on silverbullet.md)
try {
await system.invokeFunction("server", "serverPing");
} catch {
console.warn("Server not functional, not updating directives");
return;
}
await replaceAsync(
text,
directiveRegex,
-3
View File
@@ -11,9 +11,6 @@ functions:
key: "Alt-q"
events:
- editor:pageLoaded
serverPing:
env: server
path: ./command.ts:serverPing
indexData:
path: ./data.ts:indexData
events: