private static void TestMain(BuildDocumenter documenter, TestOptions options) { string helpTestDir = Path.Combine(sampleDir, @"SampleTopics\"); // Prepare the documents and project file paths //string projectFile = Path.Combine(helpTestDir, "Topics.xml"); string projectFile = Path.Combine(helpTestDir, "Topics.sandtopics"); string documentsDir = Path.Combine(helpTestDir, "Documents"); // First add the conceptual contents for the topics... ConceptualGroup testsGroup = new ConceptualGroup( "Test Topics", TestGroupIds.SampleTopicsGroupId); testsGroup.ChangeHistory = ConceptualChangeHistory.ShowFreshnessDate; testsGroup.RunningHeaderText = "Sandcastle Helpers: Test Topics"; testsGroup.CreateContent(documentsDir, projectFile); string mediaLinks = Path.Combine(helpTestDir, "MediaContent.media"); testsGroup.AddMedia(new MediaContent(mediaLinks, Path.Combine(helpTestDir, "Media"))); testsGroup.AddSnippet(new CodeSnippetContent(Path.Combine( helpTestDir, "CodeSnippetSample.snippets"))); documenter.AddGroup(testsGroup); }
private static void TestOthers(BuildDocumenter documenter, TestOptions options) { string helpRegisterDir = Path.Combine(sampleDir, @"SampleRegisterTopics\"); // Prepare the documents and project file paths //string projectFile = Path.Combine(helpRegisterDir, "Topics.xml"); string projectFile = Path.Combine(helpRegisterDir, "Topics.sandtopics"); string documentsDir = Path.Combine(helpRegisterDir, "Documents"); // First add the conceptual contents for the topics... ConceptualGroup registerGroup = new ConceptualGroup( "HelpRegister User Manual", TestGroupIds.RegisterTopicsGroupId); registerGroup.RunningHeaderText = "Sandcastle HelpRegister: User Manual"; registerGroup.CreateContent(documentsDir, projectFile); string mediaLinks = Path.Combine(helpRegisterDir, "MediaContent.media"); MediaContent mediaContent = new MediaContent(mediaLinks, Path.Combine(helpRegisterDir, "Media")); //mediaContent.Load(); registerGroup.AddMedia(mediaContent); ConceptualContent content = registerGroup.Content; registerGroup.ContentFile = new BuildFilePath(Path.Combine(workingDir, "OtherConceptual" + BuildFileExts.ConceptualGroupExt)); content.ContentFile = new BuildFilePath(Path.Combine(workingDir, "OtherConceptual" + BuildFileExts.ConceptualContentExt)); documenter.AddGroup(registerGroup); }