I have two doors that fit under the staircase for are non standard sizes.
They are still rectangular, no funny angles.
For one I have managed to cut 2 panels off a 4 panel pine door at the stile, making a 2 panel door at 110cm high. The other is more tricky as the height does not fit in...