[docs] [issue13574] refresh example in doc for Extending and Embedding