protected function cleanupPublic() { $pagePaths = $this->listScPagesPaths(); foreach ($pagePaths as $pagePath) { $page = new Page($this->fs->read($pagePath)); $page->removePageId(); $page->cleanupContainerNames(); $page->removeMetadata(); $page->unprefixResourceUrls($this->draftBaseUrl()); $this->fs->update($pagePath, (string) $page); } }