Modelling the compact jet in MAXI J1836-194 with disc-driven shocks