Clean up website build
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -11,9 +11,6 @@ functions:
|
||||
key: "Alt-q"
|
||||
events:
|
||||
- editor:pageLoaded
|
||||
serverPing:
|
||||
env: server
|
||||
path: ./command.ts:serverPing
|
||||
indexData:
|
||||
path: ./data.ts:indexData
|
||||
events:
|
||||
|
||||
Reference in New Issue
Block a user