A topologically ringed space is a pair where is topological space and is a sheaf of topological rings. Most often, e.g. in the standard theory of formal schemes, one has a sheaf of complete local rings.
The theory is very similar and generalizes the discrete case of the ringed spaces.