This repository was archived by the owner on Feb 28, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-3
lines changed
Microsoft.Content.Build.Code2Yaml.Constants
Microsoft.Content.Build.Code2Yaml.Steps Expand file tree Collapse file tree 4 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ public static class Constants
31
31
public const string CmdArgLanguage = "lang:" ;
32
32
public const string Dot = "." ;
33
33
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
+
34
41
public static class Doxyfile
35
42
{
36
43
public const string INPUT = "INPUT" ;
Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ await pages.ForEachInParallelAsync(
116
116
}
117
117
using ( var writer = new StreamWriter ( Path . Combine ( outputPath , page . Items [ 0 ] . Href ) ) )
118
118
{
119
+ writer . WriteLine ( Constants . YamlMime . ManagedReference ) ;
119
120
YamlSerializer . Value . Serialize ( writer , page ) ;
120
121
}
121
122
} ) ;
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ orderby toc.Name.ToLower()
47
47
string tocFile = Path . Combine ( outputPath , Constants . TocYamlFileName ) ;
48
48
using ( var writer = new StreamWriter ( tocFile ) )
49
49
{
50
+ writer . WriteLine ( Constants . YamlMime . TableOfContent ) ;
50
51
new YamlSerializer ( ) . Serialize ( writer , tocYaml ) ;
51
52
}
52
53
Original file line number Diff line number Diff line change @@ -34,9 +34,7 @@ static int Main(string[] args)
34
34
new List < IStep >
35
35
{
36
36
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 ) } ,
40
38
} ) ) ;
41
39
var status = 1 ;
42
40
var watch = Stopwatch . StartNew ( ) ;
You can’t perform that action at this time.
0 commit comments