A couple years ago, I chanced upon a site for creating a tzuras hadaf layout on the Gemara. The website used a custom markup (using tags) to create the layout, and it was a community project that anyone could contribute to. Now I'm looking for it and I can't find it. Does anyone know the name of the site?
I don't know if this is what you're looking for, but I found this:
Which led to this:
I suspect that this is what you might be looking for:
This site is not tzuras hadaf but it is community editable both text and commentary. http://www.sefaria.org/
I think what you are looking for is http://books.613m.org. It's not active and I don't see any links to the source code - but it looks interesting.
An amazing resource that I recently found is called "Meforshei HaOtzar" by 'Otzar Hachochma'.
It has tzuras hadaf with section by section clickable to find many meforshim on each specific piece.
NOTE: Both of these resources are currently FREE (due to world quarantine). I imagine that this is for a limited time.
Otzar HaChochma (regular) can be found here: https://www.otzar.org/otzaren/indexeng.asp