This repository was archived by the owner on Feb 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
Microsoft.Content.Build.Code2Yaml.Constants
Microsoft.Content.Build.Code2Yaml.Steps Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ public static class Constants
3131 public const string CmdArgLanguage = "lang:" ;
3232 public const string Dot = "." ;
3333
34+ public static class YamlMime
35+ {
36+ public const string YamlMimePrefix = "### YamlMime:" ;
37+ public const string ManagedReference = YamlMimePrefix + "ManagedReference" ;
38+ public const string TableOfContent = YamlMimePrefix + "TableOfContent" ;
39+ }
40+
3441 public static class Doxyfile
3542 {
3643 public const string INPUT = "INPUT" ;
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ await pages.ForEachInParallelAsync(
116116 }
117117 using ( var writer = new StreamWriter ( Path . Combine ( outputPath , page . Items [ 0 ] . Href ) ) )
118118 {
119+ writer . WriteLine ( Constants . YamlMime . ManagedReference ) ;
119120 YamlSerializer . Value . Serialize ( writer , page ) ;
120121 }
121122 } ) ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ orderby toc.Name.ToLower()
4747 string tocFile = Path . Combine ( outputPath , Constants . TocYamlFileName ) ;
4848 using ( var writer = new StreamWriter ( tocFile ) )
4949 {
50+ writer . WriteLine ( Constants . YamlMime . TableOfContent ) ;
5051 new YamlSerializer ( ) . Serialize ( writer , tocYaml ) ;
5152 }
5253
Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ static int Main(string[] args)
3434 new List < IStep >
3535 {
3636 new GenerateToc { NameGenerator = NameGeneratorFactory . Create ( _config . Language ) } ,
37- new StepCollection (
38- new GenerateArticles { Generator = ArticleGeneratorFactory . Create ( _config . Language ) } ,
39- new GenerateServiceMappingFile ( ) ) ,
37+ new GenerateArticles { Generator = ArticleGeneratorFactory . Create ( _config . Language ) } ,
4038 } ) ) ;
4139 var status = 1 ;
4240 var watch = Stopwatch . StartNew ( ) ;
You can’t perform that action at this time.
0 commit comments