scikit-learn is a very well organized website and is a neat way to document source code. Are the webpages automatically-generated? Is there a framework which produces these pages?
Learning which framework has been used can help me document other similar repositories that I own.
They are using sphinx and probably some extensions like sphinx-gallery.
This is indicated here.