These two suggestions would use the WP engine, and much of the functionality. Plus additional functions as needed. The branches are:
WikiPress: A wiki app using WordPress as a base, and HTML instead of a fussbudget wiki ML
BookPress: An app for putting a book online, complete with formatting, layout, front cover, back cover, title page, contents, and all the rest should the author choose.