Hypertextopia is a web platform for writing and publishing hypertext stories. I made it to address the problem of linking within documents, as opposed to just among them. It uses Rails for the backend, and fancy Javascript and Canvas work for the interface. You're missing out if you don't give it a try.
The theory behind the site is based on studying how links are actually used on the web. Eventually, you'll be able to read more about it in the manifesto.