0.0.2 • Published 3 years ago

docgen-nextjs v0.0.2

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

DOCGEN-NEXTJS

A simple doc generator for NextJS pages.

npx docgen-nextjs

will create a documentation for each and every page you have.

Add in your files:

// __description__

to describe what the page is / does

// __staticPaths__

to describe how the paths are generated

// __staticProps__

to describe which props are going to be passed

TODO:

  • Really analyze the paths (fallback ?)
  • Really analyze the props (revalidate, etc.)
  • maybe integrate with JSDOC