Skip to content

Commit f46d26f

Browse files
committed
Generate tables for both namespace and device docs
1 parent a4c1729 commit f46d26f

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

src/harp.schemaprocessor/Program.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
var builder = new StringBuilder();
1313
builder.AppendLine($@"---
14-
uid: Harp.{deviceModel.device}.Device
14+
uid: Harp.{deviceModel.device}
1515
---
1616
1717
<table>
@@ -79,5 +79,13 @@
7979
}
8080

8181
var output = builder.ToString();
82-
if (args.Length > 1) File.WriteAllText(Path.Combine(args[1], $"Harp_{deviceModel.device}_Device.md"), output);
82+
if (args.Length > 1)
83+
{
84+
File.WriteAllText(Path.Combine(args[1], $"Harp_{deviceModel.device}.md"), output);
85+
File.WriteAllText(Path.Combine(args[1], $"Harp_{deviceModel.device}_Device.md"), $@"---
86+
uid: Harp.{deviceModel.device}.Device
87+
---
88+
89+
[!include[Device](./Harp_{deviceModel.device}.md)]");
90+
}
8391
else Console.WriteLine(output);

0 commit comments

Comments
 (0)