In general, for me a good approach has been with this '3S framework':
1. Support - Write content that educates or supports in a timely fashion
2. Sources - Parse through the discussions in domain specific sources (forums and communities) to get a pulse of what to write
3. Segmentation - Finalize on the stage of the user/developer journey (beginner, intermediate or an expert)
In general, for me a good approach has been with this '3S framework':