generate docs when compressing