Meaning of “do sth by the book” - Learner’s Dictionary

do sth by the book

to do something exactly as the rules tell you

(Definition of “do sth by the book” from the Cambridge Learner’s Dictionary © Cambridge University Press)