add apollo support, include doc_build and preview