Skip to content
This repository was archived by the owner on Jun 20, 2023. It is now read-only.

Commit 451d729

Browse files
committed
Remove Details.md from SCM
These files will be generated during build on demand through the Details.template.md files
1 parent d553cce commit 451d729

File tree

19 files changed

+13
-285
lines changed

19 files changed

+13
-285
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ output/
1717

1818
Resource.designer.cs
1919
component.yaml
20+
Details.md

animated-vector-drawable/component/Details.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

build.cake

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ Task ("component-setup").Does (() =>
239239
}
240240
});
241241

242-
Task ("component").IsDependentOn ("component-setup").IsDependentOn ("component-base");
242+
Task ("component").IsDependentOn ("component-docs").IsDependentOn ("component-setup").IsDependentOn ("component-base");
243243

244244
Task ("clean").IsDependentOn ("clean-base").Does (() =>
245245
{
@@ -260,21 +260,23 @@ Task ("component-docs").Does (() =>
260260
gettingStartedTemplates.Add (key, val);
261261
}
262262

263-
var componentDirs = GetDirectories ("./AndroidSupport*");
263+
var componentDirs = GetDirectories ("./*");
264264

265265
foreach (var compDir in componentDirs)
266266
Information ("Found: {0}", compDir);
267267

268268
foreach (var compDir in componentDirs) {
269269

270-
if (!FileExists (compDir.CombineWithFilePath ("./component/GettingStarted.template.md")))
270+
var f = compDir.CombineWithFilePath ("./component/GettingStarted.template.md");
271+
272+
if (!FileExists (f))
271273
continue;
272274

273275
Information ("Transforming: {0}", compDir);
274276

275277
var apiLevel = "Android 4.0.3 (API Level 15)";
276278

277-
var t = TransformTextFile (compDir.CombineWithFilePath ("./component/GettingStarted.template.md"), "{", "}");
279+
var t = TransformTextFile (f, "{", "}");
278280

279281
foreach (var kvp in gettingStartedTemplates) {
280282
var v = TransformText (kvp.Value, "{", "}").WithToken ("APILEVEL", apiLevel).ToString ();
@@ -292,19 +294,21 @@ Task ("component-docs").Does (() =>
292294
var key = f.GetFilenameWithoutExtension ().FullPath.Replace ("Details.", "");
293295
var val = TransformTextFile (f).ToString ();
294296

295-
gettingStartedTemplates.Add (key, val);
297+
detailsTemplates.Add (key, val);
296298
}
297299

298300
foreach (var compDir in componentDirs) {
299301

300-
if (!FileExists (compDir.CombineWithFilePath ("./component/Details.template.md")))
302+
var f = compDir.CombineWithFilePath ("./component/Details.template.md");
303+
304+
if (!FileExists (f))
301305
continue;
302306

303307
Information ("Transforming: {0}", compDir);
304308

305-
var t = TransformTextFile (compDir.CombineWithFilePath ("./component/Details.template.md"), "{", "}");
309+
var t = TransformTextFile (f, "{", "}");
306310

307-
foreach (var kvp in gettingStartedTemplates)
311+
foreach (var kvp in detailsTemplates)
308312
t = t.WithToken (kvp.Key, kvp.Value);
309313

310314
FileWriteText (compDir.CombineWithFilePath ("./component/Details.md"), t.ToString ());

customtabs/component/Details.md

Lines changed: 0 additions & 49 deletions
This file was deleted.

design/component/Details.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

percent/component/Details.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

recommendation/component/Details.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

v13/component/Details.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

v17-leanback/component/Details.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

v4/component/Details.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)