You don't typically configure the baseboard around the treads and risers. At the top you would stop at the door frame. Bottom dies into the first riser.
Another way it's done is a notched finish decorative stringer is nailed against the wall, above the stair carriage. Your baseboards terminate into each end.