diff --git a/main.ts b/main.ts index 421eb5d..962c2cd 100644 --- a/main.ts +++ b/main.ts @@ -24,6 +24,7 @@ import { serve } from "http/server.ts"; import { user_command } from "./user.ts"; import { key_out_cmd } from "./keyout.ts"; +import { prepareDocs } from "./src/store/doc.ts"; const github_markdown = await Deno.readTextFile( join(fromFileUrl(import.meta.url), "..", "static", "github-markdown.css"), @@ -90,6 +91,7 @@ if (import.meta.main) { if (debug) { console.log("Debug mode enabled."); } + await prepareDocs(); await start({ port: port, hostname: hostname, @@ -100,5 +102,6 @@ if (import.meta.main) { await cmd.parse(Deno.args); } else { + await prepareDocs(); await start(); } diff --git a/test_data/한글/SUMMARY.md b/test_data/한글/SUMMARY.md new file mode 100644 index 0000000..0e26c41 --- /dev/null +++ b/test_data/한글/SUMMARY.md @@ -0,0 +1,4 @@ +--- +title: "SUMMARY" +tags: ["SUMMARY"] +--- \ No newline at end of file