Text this: Thermodynamically consistent space-time discretization of non-isothermal mechanical systems in the framework of GENERIC