feat: integrate typesense

This commit is contained in:
2023-08-05 21:52:43 +02:00
parent f35a63fcee
commit 46cd823b6c
9 changed files with 241 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
import { parseDocument, renderMarkdown } from "@lib/documents.ts";
import { parseDocument } from "@lib/documents.ts";
import { parse } from "yaml";
import { createCrud } from "@lib/crud.ts";
import { stringify } from "https://deno.land/std@0.197.0/yaml/stringify.ts";
import { stringify } from "$std/yaml/stringify.ts";
import { extractHashTags, formatDate } from "@lib/string.ts";
import { fixRenderedMarkdown } from "@lib/helpers.ts";
@@ -92,7 +92,7 @@ function parseArticle(original: string, id: string): Article {
id,
name,
tags,
content: renderMarkdown(content),
content,
meta,
};
}

View File

@@ -90,7 +90,7 @@ export function parseMovie(original: string, id: string): Movie {
id,
name,
tags,
description: renderMarkdown(description),
description,
meta,
};
}

View File

@@ -178,9 +178,9 @@ export function parseRecipe(original: string, id: string): Recipe {
meta,
name,
tags,
description: description ? renderMarkdown(description) : "",
description,
ingredients,
preparation: preparation ? renderMarkdown(preparation) : "",
preparation,
};
}