You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: implement docs workflow with MegaLinter and standardized actions
- Replace custom implementation with MegaLinter documentation flavor
- Use tj-actions/changed-files for file detection
- Create standard configuration files for all tools
- Remove complex composite action in favor of pipeline approach
- Update documentation to reflect new architecture
- Add testing script for validation
While the current documentation workflow system is robust and efficient, there are several areas for potential future enhancements:
346
-
347
-
1. **Incremental Validation**
348
-
- Implement only checking files that have changed since the last validation
349
-
- Create a dependency graph of documentation files to optimize cross-reference checking
350
-
351
-
2. **Advanced Link Checking**
352
-
- Add specialized handling for API endpoint references
353
-
- Implement schema validation for URLs in documentation
354
-
- Add validation for image references
355
-
356
-
3. **Better Local Integration**
357
-
- Create a pre-commit hook that runs the same validation locally
358
-
- Develop a VSCode extension for real-time documentation validation
359
-
360
-
4. **Enhanced Reporting**
361
-
- Implement trending analysis of documentation issues
362
-
- Add visualization of common problem areas
363
-
- Create a documentation quality dashboard
364
-
365
-
5. **Automated Fixes**
366
-
- Implement auto-correction for common documentation issues
367
-
- Add AI-assisted suggestions for improvement
368
-
369
-
6. **Integration with External Systems**
370
-
- Sync validation results with project management tools
371
-
- Implement notification integrations beyond GitHub and Slack
372
-
373
-
By continuously improving the documentation workflow, we can maintain high-quality documentation while making the validation process more efficient for contributors.
374
-
375
-
## Troubleshooting
376
-
377
-
### Common Issues and Solutions
378
-
379
-
#### File Detection Problems
380
-
If changed files aren't being detected correctly:
381
-
- The workflow includes fallback mechanisms to ensure validation occurs
382
-
- Check workflow logs for fallback notices
383
-
- Verify you have changes in the docs/ directory
384
-
385
-
#### Link Checking Errors
386
-
If you see link checking errors:
387
-
- Run link checking locally: `lychee docs/**/*.md`
388
-
- Add exceptions to `.github/docs/.lycheeignore` if needed
389
-
- For internal cross-references, ensure anchors match headers exactly
390
-
391
-
#### Style Validation Issues
392
-
If you encounter Vale style warnings:
393
-
- Check specific rules in the output
394
-
- Use inline comments to disable specific rules when appropriate:
395
-
`<!-- vale StyleName.RuleName = NO -->`
396
-
- Consider updating the Vale style rules if the issue occurs frequently
397
-
398
-
#### Preview URL Issues
399
-
The preview URL system converts branch names to URL-friendly format:
400
-
- Branch names with slashes are converted to dashes
401
-
- Default links are provided even when no files change
402
-
- The format is: `https://coder.com/docs/@<branch-name>`
403
-
404
252
## Using Documentation Validation in Custom Workflows
405
253
406
254
To use documentation validation in your own workflows:
0 commit comments