Here's a universal documentation tip: Look at documentation for similar products, systems, languages or software (depending on what your thing to be documented is). Copy (in the sense of replicate) the structure, depth of detail, and content categories. This helps you develop a foundation or blueprint for your documentation. This is where all documentation writers aim when they have to start from scratch.
Then pair that foundation with the universal documentation requirement: Know your audience! What do the people who will use your documentation already know, need to know, want to know, and don't need to know? This understanding will help you decide what you must include and what you can leave out. It can also help you decide on format and structure -- are they developers who are familiar with API-style syntax, or users who need recipe-like procedures?