Skip to content

v1.8.0

Choose a tag to compare

@CybotTM CybotTM released this 04 Jan 11:46
· 237 commits to main since this release
26d24a9

What's Changed

Documentation improvements

  • Prefer literalinclude for complete code examples - Updated guidance to use literalinclude as the preferred method for code blocks of 5+ lines
  • File naming convention - Added underscore prefix convention for code snippet files (_ClassName.php, _config.yaml)
  • File organization - Documented recommended structure for storing code snippets alongside RST files
  • Text markers - Added examples for :start-after: and :end-before: options for maintainable line selection
  • Updated decision guide - Clear guidance on when to use literalinclude vs code-block
  • Pre-commit checklist - Updated to prioritize literalinclude usage

Benefits of literalinclude

  • IDE support for syntax validation
  • Reusability across multiple documentation pages
  • Single source of truth for code examples
  • Testability of code snippets