Skip to content

Latest commit

 

History

History
49 lines (41 loc) · 1.23 KB

CONTRIBUTING.md

File metadata and controls

49 lines (41 loc) · 1.23 KB

Contributing to holiday-calendar

Thank you for your interest in contributing to holiday-calendar! This document provides guidelines and instructions for contributing.

How to Contribute

Adding New Holiday Data

  1. Create new JSON file in data/{region}/{year}.json
  2. Follow the data format:
{
  "year": 2025,
  "region": "CN",
  "dates": [
    {
      "date": "2025-01-01",
      "name": "元旦",
      "name_cn": "元旦",
      "name_en": "New Year's Day",
      "type": "public_holiday"
    }
  ]
}

Data Sources

Pull Request Process

  1. Fork the repository
  2. Create a new branch
  3. Add or update holiday data
  4. Submit a Pull Request with:
    • Link to official holiday announcement
    • Brief description of changes
    • Screenshot of official announcement (if possible)

Code Style

  • Use 2 spaces for indentation in JSON files
  • Sort dates by date
  • Follow existing naming conventions

Data Validation

Before submitting:

  1. Verify all dates match official announcements
  2. Ensure JSON is valid
  3. Check all required fields are present