(rule
 (target
  (dir docs))
 (package sherlodoc)
 (deps
  (package tyxml)
  %{bin:odoc})
 (action
  (progn
   (run mkdir -p docs)
   (run odig odoc --cache-dir=docs --no-pkg-deps --quiet tyxml)
   (run rm docs/html/tyxml/_doc-dir))))
