Skip to content

Conversation

@anchildress1
Copy link
Member

No description provided.

anchildress1 and others added 8 commits October 27, 2025 09:21
- Add DevToSchemaGenerator class with article, website, and breadcrumb schema generation
- Integrate JSON-LD script tags into PAGE_TMPL and COMMENT_NOTE_TMPL templates
- Update Post class to store original Dev.to API data for AI optimization
- Add schema validation function to ensure Schema.org compliance
- Extract author information from Dev.to API user object (name, username, profile URL)
- Include reading time, language, tags, and image metadata from API data
- Support ISO 8601 duration format for reading time (e.g., "PT1M")
- Add AIOptimizationManager for coordinating all AI optimization components

Generated-by: GitHub Copilot <github.copilot@github.com>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
…edPost

- Extract DevToContentAnalyzer from monolithic scripts/ai_optimization.py
- Extract AIOptimizedPost wrapper class from monolithic scripts/ai_optimization.py
- Create devto_mirror/ai_optimization/content_analyzer.py module
- Create devto_mirror/ai_optimization/optimized_post.py module
- Remove original classes from scripts/ai_optimization.py
- Reduce monolithic file size from 1750+ lines to 1032 lines (~718 lines removed)
- Remove unnecessary abstract base class inheritance for simpler, cleaner design
- Add comprehensive unit tests: 7 for content analyzer, 13 for optimized post (20 total)
- Fix datetime deprecation warning (utcnow → now(timezone.utc))
- Simplify imports to avoid circular dependencies
- Update package __init__.py to export both classes
- Update migration plan documentation and project structure docs

This continues the migration of the excessive ai_optimization module
to a proper package structure for better modularity and maintainability.
Two major components are now properly extracted and tested.

Co-authored-by: Kiro <kiro.ai@kiro.com>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Add cross-reference module for Dev.to attribution and related posts
- Implement comprehensive post enhancement with backlinks
- Add related posts generation based on tag similarity
- Create unit tests 10+ for cross-reference module

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Enhance Makefile with comprehensive validation pipeline
- Add security, coverage, and validation commands
- Simplify GitHub Actions to use unified make check
- Fix flake8 violations in site generation templates
- Update secrets baseline and documentation
- Improve development workflow with better tooling

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
… clean unit tests

- Create .env.example template for local development configuration
- Replace custom load_env with standard python-dotenv library
- Create comprehensive DEV_GUIDE.md for local development workflow
- Add detailed CI_GUIDE.md covering GitHub Actions workflows and technical architecture
- Update README.md to reference focused documentation guides
- Add comprehensive unit tests for validate_site_generation module
- Add print mocking to eliminate test noise and improve developer experience
- Consistent environment variable handling across all scripts
- Improve developer onboarding with clear setup instructions and clean testing

Generated-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Extract DevToSchemaGenerator from monolithic script to proper module
- Remove unnecessary abstract base class interface
- Add comprehensive JSON-LD schema generation for articles and websites
- Include validation utilities for Schema.org compliance
- Update package exports and fix test expectations

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Extract DevToMetadataEnhancer from scripts/ai_optimization.py
- Add AI-specific meta tags and source attribution
- Include comprehensive test coverage for metadata enhancement
- Keep implementation simple without unnecessary abstractions

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Extract DevToAISitemapGenerator from scripts/ai_optimization.py
- Add AI-optimized sitemap generation with content categorization
- Include comprehensive test coverage for sitemap functionality
- Support main sitemaps, content-specific sitemaps, and discovery feeds
- Maintain backward compatibility with existing sitemap format

Generated-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
anchildress1 and others added 3 commits October 30, 2025 08:48
- Create AIOptimizationManager class to coordinate all AI optimization components
- Add factory function for default manager configuration with all components
- Extract validate_json_ld_schema to utils module for better organization
- Update package exports to include new manager and utils components
- Add comprehensive test coverage for manager and utils modules
- Improve test assertion style in metadata enhancer tests

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Add typo with missing comma in sitemap generator
- Remove support for matrix versions of python and limit to 3.12

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
- Add AI optimization manager initialization to generate_site.py
- Apply AI enhancements to all posts during generation process
- Create post template with JSON-LD schema and cross-reference support
- Integrate AI-optimized sitemap generation with graceful fallback
- Extract post template to separate file for better maintainability
- Enhance content analyzer with Dev.to tag-based language detection
- Add engagement metrics to metadata and schema generation
- Ensure backward compatibility when AI optimization unavailable

Co-authored-by: Kiro <noreply@kiro.ai>
Signed-off-by: Ashley Childress <6563688+anchildress1@users.noreply.github.com>
@anchildress1 anchildress1 merged commit f86fe31 into main Oct 31, 2025
3 checks passed
@anchildress1 anchildress1 deleted the ai-optimization branch October 31, 2025 07:44
This was referenced Feb 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant