Multipage docs rewrite