Consider a compact Hausdorff space $A$. Suppose we have a family of compact Hausdorff spaces $\{B_a\}_{a\in A}$ indexed by the space $A$. Then is it true that the space $$X=\sqcup_{a\in A} B_a$$ is also compact Hausdorff? The Hausdorff part is clear. But I'm not sure how one might show compactness. It's clear when the spaces $B_a$ are identical, and when $A$ is finite. But how does one show in general? I'm not certain if the usual disjoint union topology is correct here, because I believe in the usual disjoint union, the indexing set is considered discrete, but here the indices also have a topology, so we may also need to consider the continuity of the map $g:X\to A$. So maybe the question is better phrased as --
Is there a way to topologize $X$ such that it is compact Hausdorff, which generalizes the disjoint union topology from wikipedia, when $A$ is discrete?
Perhaps one might need to use the finite intersection property, to show compactness, but it's not clear to me if that works because I'm not sure what the topology should be. Thanks for any help.
Edit : As posted in the comments, considering the usual disjoint union won't quite work. So my proposal is topologize $X$ by the basis of opens $$W=\{(x,a) : x\in U_a\subset B_a, a\in V\}$$ where each $U_a$ is an open subset of $B_a$, and $V$ is open in $A$. But I'm not sure if this correct.