File: mkdocs.erl

package info (click to toggle)
erlang 1%3A28.1.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 235,640 kB
  • sloc: erlang: 1,685,753; ansic: 436,891; cpp: 178,143; xml: 82,195; makefile: 15,086; sh: 14,588; lisp: 9,856; java: 8,603; asm: 6,829; perl: 5,874; python: 5,482; sed: 72
file content (9 lines) | stat: -rw-r--r-- 257 bytes parent folder | download | duplicates (14)
1
2
3
4
5
6
7
8
9
-module(mkdocs).
-author('mikael.karlsson@creado.com').

-export([run/1]).

run([InFile, OutFile])->
    {A,_}=xmerl_scan:file(InFile,[{fetch_fun, fun(DTDSpec,S) -> {ok,S} end}]),
      B = sdocbook2xhtml:process_xml(A),
      file:write_file(OutFile,[B]).