Content Quality Badges
This guide explains how to add and interpret content quality badges for the RallyPoynt OS documentation.
Available Badges
The RallyPoynt OS repository includes several badges that indicate the status and quality of the documentation:
-
Documentation Validation: Shows whether the documentation passes basic validation checks
 -
Content Quality Score: Indicates the overall quality score of documentation
Color codes for quality scores:
- Red: 1-4 (Needs significant improvement)
- Yellow: 5-6 (Acceptable)
- Green: 7-10 (Good to excellent)
Adding Badges to README
To add these badges to your README.md file, insert the markdown code at the top of the file under the title:
# Project Title


Automated Badge Updates
The Content Quality Score badge is automatically updated through GitHub Actions:
- The
docs-workflow.ymlGitHub Action runs the content quality assessment - It calculates the average score across all documentation files
- A script updates the badge in the README.md file with the current score
- The changes are committed back to the repository
This ensures the badge always reflects the current state of the documentation quality.
Manual Badge Updates
To manually update the badge:
-
Run the content quality assessment locally:
node scripts/js/content-quality-cli.js --file=docs/**/*.md > quality-report.txt -
Calculate the average score from the report
-
Update the badge URL in the README.md with the new score
Replace
YOUR_SCOREwith the calculated score andCOLORwith:redfor scores 1-4yellowfor scores 5-6brightgreenfor scores 7-10
Interpreting Quality Scores
The content quality score is calculated based on several factors:
- Flesch Reading Ease: Measures how easily readers can understand the text
- Sentence complexity: Analyzes sentence structure and length
- Passive voice usage: Measures usage of passive voice constructions
- Jargon density: Detects technical jargon and specialized terminology
A higher score indicates more readable, clear documentation that follows best practices.