-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Optimization for structured AI #21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- 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>
- 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>
This was referenced Feb 1, 2026
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.