src.integrations.adaptive_documentation module#
Adaptive Documentation Generator for Marcus.
Provides context-aware documentation task generation that adapts to different project sources and work types. Supports evolution from project creation to pre-defined tasks and GitHub issue fixing.
- class src.integrations.adaptive_documentation.DocumentationType[source]#
Bases:
EnumTypes of documentation that can be generated.
- README_DOCUMENTATION = 'readme_documentation'#
- BUG_FIX_REPORT = 'bug_fix_report'#
- FEATURE_UPDATE = 'feature_update'#
- MODIFICATION_SUMMARY = 'modification_summary'#
- API_CHANGES = 'api_changes'#
- MIGRATION_GUIDE = 'migration_guide'#
- class src.integrations.adaptive_documentation.DocumentationContext[source]#
Bases:
objectContext for documentation generation decisions.
- class src.integrations.adaptive_documentation.AdaptiveDocumentationGenerator[source]#
Bases:
objectGenerates documentation tasks adapted to the context of work performed.
This generator supports multiple documentation strategies: - Project-level documentation for new systems - Feature-specific documentation for additions - Fix reports for bug corrections - Update summaries for modifications
- create_documentation_tasks(context)[source]#
Create appropriate documentation tasks based on context.
- Parameters:
context (
DocumentationContext) – Documentation context including source type and work performed- Returns:
List of documentation tasks appropriate for the context
- Return type:
- should_add_documentation(context)[source]#
Determine if documentation tasks should be added.
Similar to legacy should_add_documentation_task but context-aware.
- Return type:
- Parameters:
context (DocumentationContext)