Specifically, see our typography manual, semantics manual, and the step-by-step guide to producing an ebook (all linked from the contributors page) for details.
You can also check out our toolset, which automates a lot of what we do: https://github.com/standardebooks/tools