Wikibooks has a book on the topic of Mandarin Chinese.