1. Contracts and evidence.
In its widest sense, documentation means written evidence, which may or may not have legal effect.
2. Financial contracts.
In the context of financial contracts the documentation is the written form of the contract.
Loans are documented in a loan agreement.
Borrowings by bonds are documented in a bond indenture.