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

Afficher le fichier Open project: dotnet/docfx Class Usage Examples

Méthodes publiques

Méthode Description
Generate ( InternalManifestItem item ) : SystemMetadata
SystemMetadataGenerator ( IDocumentBuildContext context ) : System

Private Methods

Méthode Description
GetDefaultToc ( string fileKey ) : FileInfo
GetFileKey ( string key ) : string
GetNearestToc ( IEnumerable tocFiles, Microsoft.DocAsCode.Common.RelativePath file ) : FileInfo

return the nearest toc relative to the current file "near" means less subdirectory count when subdirectory counts are same, "near" means less parent directory count e.g. "../../a/TOC.md" is nearer than "b/c/TOC.md"

Method Details

Generate() public méthode

public Generate ( InternalManifestItem item ) : SystemMetadata
item InternalManifestItem
Résultat SystemMetadata

SystemMetadataGenerator() public méthode

public SystemMetadataGenerator ( IDocumentBuildContext context ) : System
context IDocumentBuildContext
Résultat System