Welcome to the EU Parliament Monitor technical documentation hub!
This directory contains comprehensive documentation generated automatically on each release:
- Documentation Index - Main hub with links to all reports
- API Documentation - Complete JSDoc-generated API reference
- Test Coverage - Vitest coverage reports with line-by-line analysis
- Test Results - Unit and integration test results
- E2E Test Report - Playwright end-to-end test results
- Code Standards - Coding guidelines and best practices
- README - Project overview and getting started guide
- Security Architecture - Comprehensive security documentation
Documentation is automatically generated on each release via the GitHub Actions workflow:
# Generate all documentation locally
npm run docs:generate
# Or run individual steps
npm run docs:api # Generate API documentation
npm run docs:copy-reports # Copy test reports
npm run docs:index # Generate documentation indexThis documentation follows the documentation as code principle:
- ✅ Automated Generation - Generated automatically on each release
- ✅ Version Controlled - Committed to repository for full traceability
- ✅ Always Up-to-Date - Reflects the exact state of the release
- ✅ Comprehensive - Includes API docs, test results, and coverage
- ✅ Accessible - Available in release artifacts and GitHub Pages
The release workflow performs the following steps:
- Validation - Lint and validate code
- Testing - Run unit, integration, and E2E tests
- Coverage - Generate test coverage reports
- Documentation - Generate API docs and copy reports
- Verification - Verify documentation structure
- Commit - Commit documentation to main branch
- Attestations - Generate SBOM and build provenance
- Release - Create GitHub release with all artifacts
The coverage reports provide detailed insights into test coverage:
- Line Coverage - Which lines of code are executed by tests
- Branch Coverage - Which code branches are tested
- Function Coverage - Which functions are tested
- Statement Coverage - Which statements are executed
Target thresholds:
- Lines: ≥80%
- Functions: ≥80%
- Branches: ≥75%
- Statements: ≥80%
Playwright test reports include:
- Test execution results per browser
- Screenshots on failure
- Video recordings on failure
- Network activity logs
- Accessibility scan results (axe-core)
The release includes security attestations:
- SBOM - Software Bill of Materials (SPDX format)
- Build Provenance - SLSA Level 3 attestations
- Artifact Verification - GitHub Attestations API
Verify release artifacts:
gh attestation verify euparliamentmonitor-v*.zip --owner Hack23This project follows Hack23 ISMS standards:
- C4 Architecture Models - Context, Container, Component, Code
- Security Architecture - STRIDE threat modeling
- Data Models - ER diagrams and data flows
- Compliance Mapping - ISO 27001, GDPR, NIS2, EU CRA
For contribution guidelines, see CONTRIBUTING.md.
Apache-2.0 - see LICENSE file for details.
Last Updated: 2026-02-18
Generated By: Release Workflow v1.0