Search Results for

    Show / Hide Table of Contents

    Interface IDocumentBuildContext

    Namespace: Microsoft.DocAsCode.Plugins
    Assembly: Microsoft.DocAsCode.Plugins.dll
    Syntax
    public interface IDocumentBuildContext

    Properties

    | Improve this Doc View Source

    GroupInfo

    Current context's group information

    Declaration
    GroupInfo GroupInfo { get; }
    Property Value
    Type Description
    GroupInfo
    | Improve this Doc View Source

    HrefGenerator

    Custom href generator

    Declaration
    ICustomHrefGenerator HrefGenerator { get; }
    Property Value
    Type Description
    ICustomHrefGenerator
    | Improve this Doc View Source

    RootTocPath

    The Root Toc Path of current version

    Declaration
    string RootTocPath { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    VersionFolder

    Current context's version root output path from ~ ROOT

    Declaration
    string VersionFolder { get; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    VersionName

    Current context's version name

    Declaration
    string VersionName { get; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    GetFilePath(String)

    Get final file path from working folder, starting with ~/

    Declaration
    string GetFilePath(string key)
    Parameters
    Type Name Description
    String key

    Key is the original file path from working folder, starting with ~/

    Returns
    Type Description
    String

    The final file path for current file

    | Improve this Doc View Source

    GetTocFileKeySet(String)

    Get a set of file key for the toc files that current file belongs to

    Declaration
    IImmutableList<string> GetTocFileKeySet(string key)
    Parameters
    Type Name Description
    String key

    The key of current file

    Returns
    Type Description
    IImmutableList<String>

    The set of file key for the toc files that current file belongs to

    | Improve this Doc View Source

    GetTocInfo()

    Get all the registered toc information

    Declaration
    IImmutableList<TocInfo> GetTocInfo()
    Returns
    Type Description
    IImmutableList<TocInfo>

    All the registered toc information

    | Improve this Doc View Source

    GetXrefSpec(String)

    Get internal xref spec for current uid

    Declaration
    XRefSpec GetXrefSpec(string uid)
    Parameters
    Type Name Description
    String uid

    The uid of the file

    Returns
    Type Description
    XRefSpec

    The file key of current file

    | Improve this Doc View Source

    RegisterInternalXrefSpec(XRefSpec)

    Register internal xref spec

    Declaration
    void RegisterInternalXrefSpec(XRefSpec xrefSpec)
    Parameters
    Type Name Description
    XRefSpec xrefSpec

    The xref spec to be registered

    | Improve this Doc View Source

    RegisterInternalXrefSpecBookmark(String, String)

    Register internal xref spec bookmark

    Declaration
    void RegisterInternalXrefSpecBookmark(string uid, string bookmark)
    Parameters
    Type Name Description
    String uid

    The uid of the xref spec to be registered the bookmark

    String bookmark

    The bookmark to be registered

    | Improve this Doc View Source

    RegisterToc(String, String)

    Register the relationship between current toc file and the article

    Declaration
    void RegisterToc(string tocFileKey, string fileKey)
    Parameters
    Type Name Description
    String tocFileKey

    The key of the toc file that the file belongs to

    String fileKey

    The key of the file that belongs to the toc

    | Improve this Doc View Source

    RegisterTocInfo(TocInfo)

    Register the toc file to context with its information provided

    Declaration
    void RegisterTocInfo(TocInfo toc)
    Parameters
    Type Name Description
    TocInfo toc

    The information for the toc, containing the homepage of the toc

    | Improve this Doc View Source

    SetFilePath(String, String)

    Set the final file path for current file

    Declaration
    void SetFilePath(string key, string filePath)
    Parameters
    Type Name Description
    String key

    The file key of current file

    String filePath

    The final file path for current file

    Extension Methods

    JsonUtility.ToJsonString(Object, Formatting, JsonSerializer)
    • Improve this Doc
    • View Source
    • 0 Comments
    In This Article
    Back to top Copyright © Microsoft.
    Generated by DocFX