pat-jpnk

Results 2 issues of pat-jpnk

Fixes #21741 Changing the [reference documentation](https://bazel.build/contribute/docs). Fix was first tested in private project, based on the comments contained in [runfiles_src.h](https://github.com/bazelbuild/bazel/blob/master/tools/cpp/runfiles/runfiles_src.h). Related to comments of issue #11212.

team-Rules-CPP
awaiting-review

Added .pre-commit-hooks.yaml to expose OpenApi documentation generation to JSON and YAML