[refactor][xs]: rename docs directory to site reflecting fact this is the full website.

This commit is contained in:
Rufus Pollock
2021-07-28 09:27:17 +02:00
parent bb93103997
commit b81cf992de
25 changed files with 0 additions and 0 deletions

13
site/lib/utils.js Normal file
View File

@@ -0,0 +1,13 @@
import remark from 'remark'
import html from 'remark-html'
import fs from 'fs'
export async function formatMD(mdFilePath) {
const mdFile = fs.readFileSync(mdFilePath, "utf-8")
const processed = await remark()
.use(html)
.process(mdFile)
const readmeHtml = processed.toString()
return readmeHtml
}