Let $\mathcal{C}$ be a groupoid, and let $B \mathcal{C}:= |N\mathcal{C}|$ be its classifying space, i.e. the geometric realisation of its nerve.
How to prove that $B \mathcal{C}$ is a disjoint union of $K(\pi,1)$'s? Ultimately I would like to give a precise argument to show that the classifying space construction induces an equivalence $\mathrm{Ho}(\mathsf{Grpd}) \simeq \mathrm{Ho}(\mathsf{Top}^{CW}_{\leq 1})$, see e.g. this ncatLab entry.