I have recently been interested in studying an extension of 'usual' algebraic geometry to take into account the topology of $R$ in the definition of the affine scheme $\mathrm{Spec}\, (R)$ when the ring comes equipped with a given topology. For example, I am curious to investigate schemes over $C ^\infty (\mathbb{R}^d)$, where it is obvious from the beginning that it would be 'wrong' to ignore the canonical Fréchet space topology (for example, the 'correct' definition of $\mathrm{Spec}\, (R)$ in this case should probably be the collection of all closed prime ideals). (Part of the motivation for this is, in the spirit of Grothendieck's famous quote, to replace a bad category of only good objects (the smooth category) with a good category containing some bad objects.)
I can't imagine that people haven't investigated things like this before. On the other hand, I don't know what this subject would be called, and so I don't know where to begin looking to read up on the subject. Could someone help point me in the right direction?