Here is how I did a relace on the front wheel after a rock bent my rim--this is only how I did it and it is not meant to be guide.
Numbered the wheel both on the rim
and on the hub
removed the rotor
removed tire and tube
better pic of the problem area
Unlace
Removed the damaged rim
Began installation of new rim
Reinstalled spokes to original positons
Almost done
Off to my truing stand for radial and axial truing plus check for correct lacing of all spokes--yep got them right!
Minor tweaking of spokes and then double check on correct torque. Reinstall tube and tire-- All done in about 4 hours.