Skip to main content

Per-Entity README Auto-Generation

JCB can automatically generate documentation for any entity (like views, models, fields, templates, and more) in Markdown format

๐Ÿ“˜ What Is It?

Every major entity in Joomla Component Builder (JCB) โ€” including Admin Views, Fields, Snippets, Templates, Layouts, Field Types, and more โ€” supports automated README generation.

These READMEs are created dynamically by the compiler based on the entity's properties, configuration, links, and associated metadata.

You can configure this behavior via:

  • Entity settings โ†’ Enable README output
  • Compiler settings โ†’ Output directory & format
  • Snippet or template injection for custom content blocks

๐Ÿ” Whatโ€™s Included in Each README?

The generated README will usually contain:

  • ๐Ÿ“Œ Title and description of the entity
  • ๐Ÿ”„ Last modified timestamp
  • ๐Ÿงฑ Linked entities (fields, snippets, templates, layouts, dynamic GETs)
  • โš™๏ธ Settings used in the build
  • ๐Ÿ—‚ Usage examples or developer notes (if present)
  • ๐Ÿ“„ Auto-generated tables for clarity (e.g., field mappings, config)

This makes every component of your project independently understandable.

๐ŸŽฏ Why Use It?

  • โœ… For documentation automation
  • โœ… For onboarding other developers faster
  • โœ… For self-documenting large components
  • โœ… For generating shareable GitHub/Gitea/GitLab-level docs
  • โœ… For syncing component logic to wikis or support pages

You can even export the whole docs folder for integration into your website, GitHub Pages, or internal portals.

๐Ÿ“ฅ Output Format

By default, these README files are:

  • Markdown (.md)
  • Placed in the /docs or /readme folder of your component source
  • Optionally compiled into the output zip package

You can customize this path per project in the global or compiler configuration.

๐Ÿงฉ Integration With Other JCB Features

  • Combine with Custom Code tags for personalized doc snippets
  • Append changelog data using version metadata
  • Add PHPDoc blocks in templates to enrich the final README

๐Ÿ“ฆ Use Cases

  • Add per-view README files in Git-based component blueprints
  • Export documentation during nightly or CI builds
  • Sync to GitHub Pages or readthedocs using your JCB component output
  • Inject custom branding or usage tips directly into each README

๐Ÿง  Conclusion

JCB's per-entity README auto-generation brings self-documenting software into Joomla development. Every feature, field, and view you create can now explain itself โ€” reducing friction, improving onboarding, and boosting maintainability across teams or long-term projects. It's documentation without the extra work.