ensure docs/generate doesn't break on first try
This commit is contained in:
parent
cdb9017a72
commit
2411303be8
1 changed files with 1 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ var path = require("path")
|
|||
var marked = require("marked")
|
||||
var layout = fs.readFileSync("./docs/layout.html", "utf-8")
|
||||
var version = JSON.parse(fs.readFileSync("./package.json", "utf-8")).version
|
||||
try {fs.mkdirSync("docs/archive/")} catch (e) {}
|
||||
try {fs.mkdirSync("docs/archive/" + version)} catch (e) {}
|
||||
try {fs.mkdirSync("docs/archive/" + version + "/lib")} catch (e) {}
|
||||
try {fs.mkdirSync("docs/archive/" + version + "/lib/prism")} catch (e) {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue