Automate docs for values.yaml via pre-commit config and break them into logical groups like https://github.com/bitnami/charts/tree/master/bitnami/airflow
scripts/ci/pre_commit/pre_commit_json_schema.py
cls = validator_for(schema)
    cls.check_schema(schema)
    return cls(schema)
def _load_spec(spec_file: Optional[str], spec_url: Optional[str]):
    if spec_url:
        spec_file = fetch_and_cache(url=spec_url, output_filename=re.sub(r"[^a-zA-Z0-9]", "-", spec_url))
    else:
        spec_file = spec_file
    with open(spec_file) as schema_file:
        schema = json.loads(schema_file.read())
    return schema
def main() -> int:
    """Main code"""
    parser = _get_parser()
    args = parser.parse_args()
    spec_url = args.spec_url
    spec_file = args.spec_file
    schema = _load_spec(spec_file, spec_url)
    validator = _create_validator(schema)
    file_paths = args.file
    exit_code = _process_files(validator, file_paths)
    return exit_code
sys.exit(main())