Docs generation for directive