The mayor of Ryde breached his council’s code of conduct for using local government material to benefit his own political interests.