feat: add RSS feed

This commit is contained in:
Kim, Jimin 2025-01-20 20:21:01 +09:00
parent 06fa0502ae
commit 80b6656e38
Signed by: pomp
GPG key ID: 2B516173EDD492EB
9 changed files with 84 additions and 4 deletions

View file

@ -8,9 +8,10 @@
import fs from "fs"
import { mapFilePath, markdownPath, outPath } from "./config"
import { mapFilePath, markdownPath, outPath, rssFilePath } from "./config"
import { fillTags, parseSeries, sortDates } from "./postProcess"
import { recursiveParse } from "./recursiveParse"
import { buildFeed } from "./rss"
import { saveIndex } from "./searchIndex"
import type { ContentMap, SeriesMap } from "./types/types"
import { ParseMode } from "./types/types"
@ -66,6 +67,7 @@ async function main() {
*/
fs.writeFileSync(mapFilePath, JSON.stringify(contentMap))
fs.writeFileSync(rssFilePath, buildFeed(contentMap))
saveIndex()
}