public void Publish(WikiContent content, string targetPath) { var processor = new EpubPublisherProcessor(content, new CssStyleManager(), targetPath); processor.Enqueue(new CategoryTaskQueueItem(content.GetCategory(string.Empty))); processor.ProcessTasks(); processor.Publish(); }
public EpubPublisherProcessor(WikiContent content, ICssStyleManager styleManager, string targetPath) { this.content = content; this.targetPath = targetPath; resourceManager = new EpubResourceManager(this); htmlCompiler = new HtmlCompiler(resourceManager, styleManager); packager = new EpubPackager(content.Title, resourceManager, styleManager); }
public Document(WikiContent content) { this.content = content; }