I don't understand why DDG doesn't just hand pick the most popular of these documentation sites and pins them to the top when they show up for a query.
I'm not suggesting this be done for commercial sites, just neutral documentation sites for languages and frameworks. This would be strictly better from the perspective of the searcher.
I'd argue that simply doing that for the top 10 programming languages or frameworks will make a huge difference and is relatively easy to do. Low effort but very high impact.