new publish doc script