And all of this is explained in the relevant KB articles, in particular Understanding X and Y Axes Limits and Homing
If you find anything in there, which needs more details, then let me know. Just be aware that no documentation can potentially cover all cases, as Klipper is a generic firmware that is used on thousands of 3D printers with about the same number of configurations and requirements.