Skip to content

Commit

Permalink
Revert comments in DocFxChangelogDownloadTask
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyAkinshin committed Jan 4, 2023
1 parent 7694d0e commit 5e8a318
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions build/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -446,26 +446,26 @@ public class DocFxChangelogDownloadTask : FrostingTask<BuildContext>
{
public override void Run(BuildContext context)
{
// if (context.Argument("AllVersions", false))
// {
// context.DocfxChangelogDownload(
// DocumentationHelper.BdnAllVersions.First(),
// DocumentationHelper.BdnFirstCommit);
//
// for (int i = 1; i < DocumentationHelper.BdnAllVersions.Length; i++)
// context.DocfxChangelogDownload(
// DocumentationHelper.BdnAllVersions[i],
// DocumentationHelper.BdnAllVersions[i - 1]);
// } else if (context.Argument("LatestVersions", false))
// {
// }
//
// if (!context.Argument("StableVersions", false))
// context.DocfxChangelogDownload(
// DocumentationHelper.BdnNextVersion,
// DocumentationHelper.BdnAllVersions.Last(),
// "HEAD");
if (context.Argument("AllVersions", false))
{
context.DocfxChangelogDownload(
DocumentationHelper.BdnAllVersions.First(),
DocumentationHelper.BdnFirstCommit);

for (int i = 1; i < DocumentationHelper.BdnAllVersions.Length; i++)
context.DocfxChangelogDownload(
DocumentationHelper.BdnAllVersions[i],
DocumentationHelper.BdnAllVersions[i - 1]);
} else if (context.Argument("LatestVersions", false))
{
}

if (!context.Argument("StableVersions", false))
context.DocfxChangelogDownload(
DocumentationHelper.BdnNextVersion,
DocumentationHelper.BdnAllVersions.Last(),
"HEAD");

for (int i = DocumentationHelper.BdnAllVersions.Length - 3; i < DocumentationHelper.BdnAllVersions.Length; i++)
context.DocfxChangelogDownload(
DocumentationHelper.BdnAllVersions[i],
Expand Down

0 comments on commit 5e8a318

Please sign in to comment.