Rewrite directory docs