Class YamlWriter
Object to save Source
Inheritance
object
YamlWriter
Namespace: BuildSystem .GenDoc .DocFX
Assembly: BuildSystem.GenDoc.DocFX.dll
Syntax
public class YamlWriter : Object
Constructors
YamlWriter(List<SourceInfo>)
Object to save Source
Declaration
public YamlWriter(List<SourceInfo> sourceInfos)
Parameters
Type | Name | Description |
---|---|---|
System. |
sourceInfos |
Methods
CreateToc(string, bool)
Adds links from Build
Declaration
public void CreateToc(string folderPath, bool append = false)
Parameters
Type | Name | Description |
---|---|---|
string | folderPath | Target folder of YML-files |
bool | append | Clean yml before adding |
MergeYmlFolders(string, string)
Copies all YML files into target folder. Merges toc.yml
Declaration
public static void MergeYmlFolders(string fromFolder, string toFolder)
Parameters
Type | Name | Description |
---|---|---|
string | fromFolder | Folder as source of copying files |
string | toFolder | Target folder which will contain files of both folders |
ReadToc(string)
Read toc.yml and return info in it
Declaration
public static Dictionary<string, Dictionary<string, string>> ReadToc(string tocPath)
Parameters
Type | Name | Description |
---|---|---|
string | tocPath |
Returns
Type | Description |
---|---|
System. |
Save(string)
Save group of files into folder
Declaration
public void Save(string folderPath)
Parameters
Type | Name | Description |
---|---|---|
string | folderPath |