예제 #1
0
        /// <summary>
        /// Updates the Wiki
        /// </summary>
        public static void UpdateWiki(Hg wiki, Hg samples, string releaseNotes, string zipDir)
        {
            // Make the changes.
            CommandLine.WriteAction("Updating 'APILibraries.wiki' ...");
            new APILibrariesPage(samples).InsertIntoFile(Path.Combine(wiki.WorkingDirectory, "APIs.wiki"));

            if (releaseNotes != null)
            {
                CommandLine.WriteAction("Updating 'Downloads.wiki' ...");
                new DownloadsPage(releaseNotes, zipDir).InsertIntoFile(
                    Path.Combine(wiki.WorkingDirectory, "Downloads.wiki"));
            }
        }
예제 #2
0
 public APILibrariesPage(Hg samples)
 {
     Samples = samples;
 }