public override void SaveToDocumentationFolder() { //we simply do a copy of the markdown file var destination = this.CreateDocumentationLocation(); var document = Document.Load(FileLocation.FullName); // make any modifications var rawVisitor = new RawAsciidocVisitor(FileLocation, destination); document.Accept(rawVisitor); // write out asciidoc to file using (var visitor = new AsciiDocVisitor(destination.FullName)) { document.Accept(visitor); } }
public override Task SaveToDocumentationFolderAsync() { //load the asciidoc file for processing var docFileName = this.CreateDocumentationLocation(); var document = Document.Load(FileLocation.FullName); // make any modifications var rawVisitor = new RawAsciidocVisitor(FileLocation, docFileName); document.Accept(rawVisitor); // write out asciidoc to file using (var visitor = new AsciiDocVisitor(docFileName.FullName)) { document.Accept(visitor); } return(Task.FromResult(0)); }
public override void SaveToDocumentationFolder() { //we simply do a copy of the markdown file var docFileName = this.CreateDocumentationLocation(); #if !DOTNETCORE var document = Document.Load(FileLocation.FullName); // make any modifications var rawVisitor = new RawAsciidocVisitor(FileLocation); document.Accept(rawVisitor); // write out asciidoc to file using (var visitor = new AsciiDocVisitor(docFileName.FullName)) { document.Accept(visitor); } #else this.FileLocation.CopyTo(docFileName.FullName, true); #endif }