diff --git a/src/nimib/docs.nim b/src/nimib/docs.nim index 8069dc40..a6694f0a 100644 --- a/src/nimib/docs.nim +++ b/src/nimib/docs.nim @@ -1,7 +1,11 @@ +import std/os import browsers import types proc write*(doc: NbDoc) = + let (dir, name, ext) = doc.filename.splitFile() + if not dir.dirExists: + createDir(dir) writeFile(doc.filename, doc.render(doc)) proc open*(doc: NbDoc) =