From 312964f22c2281ec6414847cc8d4c83b0945640f Mon Sep 17 00:00:00 2001 From: monoid Date: Fri, 6 Jan 2023 19:12:08 +0900 Subject: [PATCH] fix bug --- main.ts | 3 +++ test_data/한글/SUMMARY.md | 4 ++++ 2 files changed, 7 insertions(+) create mode 100644 test_data/한글/SUMMARY.md 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