Given spaces $X,Y$, where $X$ is Hausdorff, and the topology on $Y$ has basis $\mathcal{U}$, I would like to show that the set $\mathcal{S} := \{ S(K,U) \mid K \subset X, K \text{ compact, } U \in \mathcal{U} \}$, where $S(K,U) = \{ f \in C(X,Y) \mid f(K) \subset U\}$ defines a sub-basis for the compact-open topology on $C(X,Y)$.
I know that $\mathcal{S}$ is contained inside the usual subbasis for $C(X,Y)$. If I were dealing with bases, I would just pick some $f \in C(X,Y)$ and some basis element $B$ of $C(X,Y)$ containing $f$, then prove that there exists some $S \in \mathcal{S}$ with $f \in S \subset B$ (a la Lemma 13.3 in Munkres). But I don't know that such a result works for just subbases. If anyone could shed some light on a result like this, I'd appreciate it.
Other than this potential approach, I'm really not used to work with subbasis, and this is my first time seeing the compact-open topology so I'm not sure what I should do here. Any hints would be nice! Thanks!