C# Class Microsoft.DocAsCode.Build.Engine.TemplateModelTransformer

Show file Open project: dotnet/docfx Class Usage Examples

Public Methods

Method Description
TemplateModelTransformer ( DocumentBuildContext context, TemplateCollection templateCollection, ApplyTemplateSettings settings, object>.IDictionary globals ) : System

Private Methods

Method Description
AppendGlobalMetadata ( object>.IDictionary model ) : object>.IDictionary
ConvertObjectToDictionary ( object model ) : object>.IDictionary
ExportModel ( object model, string modelFileRelativePath, ExportSettings settings ) : string
Transform ( InternalManifestItem item ) : ManifestItem

Must guarantee thread safety

TransformDocument ( string result, string extension, IDocumentBuildContext context, string outputPath, string relativeOutputPath, HashSet missingUids, ManifestItem manifestItem ) : void
TransformHtml ( IDocumentBuildContext context, string html, string relativeModelPath, StreamWriter outputWriter ) : void
TransformHtmlCore ( IDocumentBuildContext context, string relativeModelPath, HtmlAgilityPack html ) : List
TransformXrefLink ( HtmlAgilityPack node, IDocumentBuildContext context ) : void
UpdateHref ( HtmlAgilityPack link, string attribute, IDocumentBuildContext context, string relativePath ) : void
UpdateXref ( HtmlAgilityPack node, IDocumentBuildContext context, string language ) : void

Method Details

TemplateModelTransformer() public method

public TemplateModelTransformer ( DocumentBuildContext context, TemplateCollection templateCollection, ApplyTemplateSettings settings, object>.IDictionary globals ) : System
context DocumentBuildContext
templateCollection TemplateCollection
settings ApplyTemplateSettings
globals object>.IDictionary
return System