Basic ghost plugin
This commit is contained in:
@@ -60,3 +60,8 @@ functions:
|
||||
path: ./materialized_queries.ts:updateMaterializedQueriesCommand
|
||||
command:
|
||||
name: "Materialized Queries: Update"
|
||||
|
||||
parseCommand:
|
||||
path: ./page.ts:parsePage
|
||||
command:
|
||||
name: Parse Document
|
||||
|
||||
@@ -182,3 +182,7 @@ export async function clearPageIndex(page: string) {
|
||||
console.log("Clearing page index for page", page);
|
||||
await clearPageIndexForPage(page);
|
||||
}
|
||||
|
||||
export async function parsePage() {
|
||||
console.log(await parseMarkdown(await getText()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user