Mentoring doesn't mean do the work for them, so first thing you may want to do is provide the new hire with the minimum knowledge to setup a local dev environment and navigate the codebase.
For a new hire I also made one slide with a diagram to explain how to go from 0 to production, this gave him a high level overview of the whole system.
Try to make them push something on the first week is very important, the sooner they finish their first ticket the sooner they do the 2nd, 3rd and can repeat and familiarise with the development process.
Finally ask new hires to document what they are learning or improve existing docs – a fresh pair of eyes/mind is priceless.
With time your poorly documented system will be very onboard-friendly.