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

ファイルを表示 Open project: dotnet/docfx Class Usage Examples

Public Methods

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

Private Methods

Method 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 method

public Resolve ( string file ) : TocItemInfo
file string
return TocItemInfo

TocResolver() public method

public TocResolver ( IHostService host, TocItemInfo>.Dictionary collection ) : System
host IHostService
collection TocItemInfo>.Dictionary
return System