Пример #1
0
        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();
        }
Пример #2
0
        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);
        }
Пример #3
0
 public Document(WikiContent content)
 {
     this.content = content;
 }