One piece of advice: set your expectations appropriately upfront on how long you’ll be off the bike, and don’t be tempted to rush back into things and risk re-injury.
I had ankle surgery in January, and from the outset, viewed 2018 as a recovery year (even before surgery, I postponed my 2018 Leadville entry to 2019).
I took the first 3 months off completely (NWB for 6 weeks, PWB for 4 weeks). April and May I did easy rides on Zwift, and in late May started riding outside.
My initial outside rides were easy hour long rides just to get back into things. By July I started doing some outside “training rides”, and I did a few ”races” in late July/August.
I only started proper traning again in October with TR. So most of 2018 turned out as I expected - a recovery year.
This seems like a long time, but was the right approach given the nature of my injury (at times, I wondered if I was even pushing too hard too soon).
Now I feel like I’m well set for what will hopefully be a good 2019.