Git Ignore Policy Verificationο
For Developers: File Exclusion Compliance
This document verifies that the .gitignore policy is properly enforced to ensure only README.md is the sole .md file tracked by git, with all other documentation in .rst format.
Last Verified: October 23, 2025 Status: β FULLY COMPLIANT
Verification Summaryο
Git Ignore Rules Status:
β docs/.vision/ folder is properly ignored β docs/.vision/** (all contents) are properly ignored β All .md files blocked except README.md β Temporary folders (tmp/, .logs/, data/.backup/) ignored β No untracked .md files in project (excluding ignored directories)
Git Tracked Filesο
Markdown Files Tracked by Git:
README.md β Only allowed .md file β
Total `.md` files tracked: 1
Ignored Directoriesο
The following directories are completely ignored, including any .md files within:
docs/.vision/ - AI/Editor cache and temporary files (docs-specific)
tmp/ - Temporary files
.logs/ - Log files (project root)
data/.backup/ - Backup files (data-specific)
.venv/ - Virtual environment
build/ - Build artifacts
docs/sphinx/_build/ - Documentation build output
Git Ignore Configurationο
Enhanced .gitignore Rulesο
# AI/Editor cache and temporary files
docs/.vision/
docs/.vision/**
# Documentation Policy: NO .md files except README.md
# All documentation goes in docs/sphinx/*.rst files
*.md
!README.md
# Temporary documentation files
FIXES.md
AUDIT.md
VERIFICATION.md
STATUS.md
CHANGES.md
NOTES.md
*_VERIFICATION*.md
*_AUDIT*.md
*_REPORT*.md
*_SUMMARY*.md
Testing Git Ignoreο
To verify that a file or directory is properly ignored:
# Check if a file/directory is ignored
git check-ignore -v docs/.vision/
git check-ignore -v docs/.vision/context.md
git check-ignore -v TERMINOLOGY_AUDIT_SUMMARY.md
# List all tracked .md files (should only show README.md)
git ls-files "*.md"
# Find any .md files not in ignored directories
find . -name "*.md" -not -path "./.git/*" -not -path "./.venv/*" \
-not -path "./tmp/*" -not -path "./docs/.vision/*" | grep -v "README.md"
Documentation Policy Complianceο
Policy: All documentation must be in .rst format except README.md
Enforcement Layers:
Git Ignore - Blocks .md files from being committed
Style Checker - Validates documentation standards
Policy Document - Documents the requirements
This Verification - Regular compliance checks
Compliant Documentation Structure:
RePORTaLiN/
βββ README.md β Only .md file (allowed) β
βββ docs/
βββ sphinx/
βββ user_guide/
β βββ introduction.rst β All .rst β
β βββ installation.rst β All .rst β
β βββ configuration.rst β All .rst β
β βββ ...
βββ developer_guide/
βββ architecture.rst β All .rst β
βββ contributing.rst β All .rst β
βββ documentation_style_guide.rst β All .rst β
βββ ...
Verification Checklistο
Manual Verification Stepsο
Run these commands to verify compliance:
# 1. Check git tracked .md files (should only show README.md)
git ls-files "*.md"
# 2. Verify docs/.vision is ignored
git check-ignore -v docs/.vision/
# 3. Check for untracked .md files in project
find . -name "*.md" -not -path "./.git/*" -not -path "./.venv/*" \
-not -path "./tmp/*" -not -path "./docs/.vision/*" | grep -v "README.md"
# 4. Run documentation style checker
bash scripts/utils/check_docs_style.sh
Expected Resultsο
All checks should pass with:
Git tracked files:
README.mdonlydocs/.vision/ check: Returns gitignore rule match
Untracked .md files: None found (count = 0)
Style checker: All passed, 0 errors
Current Statusο
Last Verification: October 23, 2025
β
Git tracked .md files: 1 (README.md only)
β
docs/.vision/ folder: Properly ignored
β
docs/.vision/** contents: Properly ignored
β
Untracked .md files: 0 found
β
Style checker: All passed
β
Documentation build: Success (0 warnings, 0 errors)
Compliance Status: β FULLY COMPLIANT
Troubleshootingο
If .md Files Appear in Git Statusο
Problem: .md files (other than README.md) showing as untracked
Solution:
# 1. Verify .gitignore is correct
cat .gitignore | grep -A5 "Documentation Policy"
# 2. Test if file is ignored
git check-ignore -v filename.md
# 3. If not ignored, check .gitignore syntax
# Make sure *.md is not commented out
# Make sure !README.md comes after *.md
If docs/.vision/ Files Are Trackedο
Problem: docs/.vision/ files showing in git status
Solution:
# 1. Remove from git cache (if already tracked)
git rm -r --cached docs/.vision/
# 2. Verify ignore rule
git check-ignore -v docs/.vision/
# 3. Commit the removal
git commit -m "Remove docs/.vision/ from git tracking"
If Documentation Build Failsο
Problem: Sphinx build fails after removing .md files
Solution:
# 1. Verify all documentation is in .rst format
find docs/sphinx -name "*.md" -not -name "README.md"
# 2. Check for broken links in .rst files
cd docs/sphinx && make linkcheck
# 3. Rebuild clean
make clean && make html
Best Practicesο
Never commit `.md` files except `README.md`
Use .rst format for all documentation
Run style checker before commits
Keep .gitignore updated
Add new ignored directories as needed
Test ignore rules with git check-ignore
Regular verification
Run verification checks periodically
Update this document after changes
Use automated checks
Run style checker in CI/CD
Add pre-commit hooks if needed
See Alsoο
Git Documentation:
Project Documentation:
.gitignore - Complete ignore rules
scripts/utils/check_docs_style.sh - Automated compliance checker
README.md - The only allowed markdown file
β
Maintained by: Development Team Next Review: As needed when .gitignore changes Automation: Run bash scripts/utils/check_docs_style.sh for automated verification