fix the generate docs when route has system packages