Initial commit
This commit is contained in:
commit
93330ddc28
9 changed files with 145 additions and 0 deletions
11
posts/gen.ml
Executable file
11
posts/gen.ml
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
#!/usr/bin/env utop
|
||||
|
||||
let pandoc_params = "--css ../../assets/style.css -s --to html5 --metadata pagetitle='basename' "
|
||||
|
||||
let vert md = begin
|
||||
if md <> "gen.ml" && md <> "html" then
|
||||
ignore( Sys.command ("pandoc " ^ pandoc_params ^ md ^ " -o html/" ^ md ^ ".html ") )
|
||||
end ;;
|
||||
|
||||
let contents = Array.to_list (Sys.readdir ".") in
|
||||
List.map vert contents ;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue