Let $X$ be a (edit: nonsingular) projective complex algebraic curve. The genus of $X$ can be defined as the dimension of the space of holomorphic $1$-forms on $X$, which in turn can be defined either analytically or algebraically in terms of Kahler differentials. It can also be defined as the topological genus of $X$ considered as a surface, which in turn can be defined either topologically as the number of tori in a connected sum decomposition of $X$ or homologically in terms of the Betti numbers of $X$. Does anyone know of a reasonably self-contained reference where some or all of these equivalences are proven?
(There is a related question about computing the genus of a curve from its function field as well as a nice post by Danny Calegari explaining the relationship to the Newton polygon, but I am mostly interested in the algebraic-to-topological step of going from Kahler differentials to the number of tori in a connected sum decomposition.)