This repository contains the documentation for the Task Management API, following a "Docs as Code" approach with automated validation and deployment.
├── docs/
│ ├── getting-started.md
│ └── api-guide.md
├── api/
│ └── openapi.yaml
├── .vale.ini
├── .spectral.yaml
├── .github/
│ └── workflows/
│ ├── vale-check.yml
│ └── openapi-check.yml
└── README.md
This project uses automated tools to ensure documentation quality:
- Vale: Lints Markdown files for style, grammar, and consistency
- Spectral: Validates OpenAPI specifications for best practices and standards
- Node.js (v16 or higher)
- Vale CLI
- Redocly CLI
-
Install Vale:
# macOS brew install vale # Or download from https://vale.sh/
-
Install Redocly CLI:
npm install -g @redocly/cli
-
Run local validation:
# Validate Markdown files vale docs/ # Validate OpenAPI spec spectral lint api/openapi.yaml
The project includes GitHub Actions workflows that automatically:
- Vale Check: Validates all Markdown documentation on every push and PR
- OpenAPI Check: Validates the OpenAPI specification and generates/deploys API reference documentation
When contributing to the documentation:
- Follow the established writing style guidelines
- Ensure your changes pass Vale validation
- Update the OpenAPI specification if adding new endpoints
- Test your changes locally before submitting a PR
The live API reference documentation is available at: https://[username].github.io/[repo-name]/