C# Class Microsoft.DocAsCode.Build.TableOfContents.TocResolver

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

Méthodes publiques

Méthode Description
Resolve ( string file ) : TocItemInfo
TocResolver ( IHostService host, TocItemInfo>.Dictionary collection ) : System

Private Methods

Méthode Description
GetDefaultHomepageItem ( TocItemViewModel toc ) : TocItemViewModel
IsValidHomepageLink ( TocItemViewModel tocItem ) : bool

Valid homepage href should: 1. relative file path 2. refer to a file 3. folder is not supported 4. refer to an `uid`

NormalizeHref ( string href, Microsoft.DocAsCode.Common.RelativePath relativeToFile ) : string
ResolveItem ( TocItemInfo wrapper, Stack stack ) : TocItemInfo
ResolveItemCore ( TocItemInfo wrapper, Stack stack ) : TocItemInfo

Method Details

Resolve() public méthode

public Resolve ( string file ) : TocItemInfo
file string
Résultat TocItemInfo

TocResolver() public méthode

public TocResolver ( IHostService host, TocItemInfo>.Dictionary collection ) : System
host IHostService
collection TocItemInfo>.Dictionary
Résultat System