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:
This site is not tzuras hadaf but it is community editable both text and commentary. http://www.sefaria.org/
I suspect that this is what you might be looking for:
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.