chore(docgen): Generate from lib directory instead of packages.

closes #1024