DEV Community

Discussion on: A meaningful README.md

Collapse
 
burdettelamar profile image
Burdette Lamar

If a README contains example code and/or output, it should be 'rebuilt' before committing. This guards against stale or broken examples.

The rebuild should:

  • Execute the example code.
  • Capture and verify the output.
  • Incorporate the code and output into a rebuilt README via include files.

GitHub Flavored Markdown does not support file inclusion, so I've put up a Ruby gem, markdown_helper, that does support it. File inclusion can be accomplished from the command-line or from within Ruby code.

See the documentation over at GitHub.