A collection of reusable Rake tasks for maintaining Adobe Experience League documentation repositories. This gem provides standardized tools for managing include relationships, timestamps, images, and other common documentation maintenance tasks.
- Include Management: Automatically discover and maintain include file relationships
- Timestamp Updates: Keep main files updated with latest include file changes
- What's New Generation: Generate news digests from GitHub activity
- Image Optimization: Find and optimize unused images
- Include Auditing: Identify orphaned include files
- Utility Tasks: Template rendering and task management
Add these lines to your repository's Gemfile:
gem 'adobe-comdox-exl-rake-tasks', git: 'https://github.com/commerce-docs/adobe-comdox-exl-rake-tasks.git'
# Required for whatsnew task (generates What's New digests from GitHub activity)
gem 'whatsup_github', git: 'https://github.com/commerce-docs/whatsup_github', tag: 'v1.2.0'Then execute:
bundle installNote: The
whatsup_githubgem is required for thewhatsnewrake task. If you don't need What's New generation, you can omit it.
Once installed, all tasks are automatically available in your repository. You can list all available tasks with:
bundle exec rake -TMaintain include file relationships and timestamps:
# Discover and maintain include relationships
bundle exec rake includes:maintain_relationships
# Update timestamps in main files
bundle exec rake includes:maintain_timestamps
# Run both tasks in sequence
bundle exec rake includes:maintain_allGenerate news digests from GitHub activity:
# Generate What's New digest since last update
bundle exec rake whatsnew
# Generate Best Practices What's New digest
bundle exec rake whatsnew_bp
# Generate for specific time period
bundle exec rake whatsnew since="jul 4"Optimize and audit images:
# Optimize images in modified files
bundle exec rake image_optim
# Find unused images
bundle exec rake unused_images
# Find unused include files
bundle exec rake unused_includes# Render templated files
bundle exec rake render
# Show task help
bundle exec rake -TThe gem automatically detects your repository structure and works with the standard Adobe docs layout:
repository/
├── help/
│ ├── _includes/ # Include files
│ └── *.md # Main documentation files
├── include-relationships.yml # Generated relationships file
└── Rakefile # Your main Rakefile
gem build adobe-comdox-exl-rake-tasks.gemspecgem install ./adobe-comdox-exl-rake-tasks-0.3.0.gembundle exec rake test- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For issues and questions, please open an issue on the GitHub repository or contact the Adobe Documentation Team.