示例#1
0
 private void CreateIndexFile()
 {
     ExecuteOnStepMessage(StepInput.ChmStrings.CreateIndex);
     var indexHtmlFile = Path.Combine(StepInput.TmpPath, StepInput.SDProject.ProjectName.Replace(" ", "") + "-Index.html");
     var template = new IndexTemplate();
     File.WriteAllText(indexHtmlFile, template.TransformText());
 }
示例#2
0
 private void CreateIndexFile()
 {
     var indexHtmlFile = Path.Combine(_tmpFilepath, _repository.ProjectInfo.ProjectName.Replace(" ", "") + "-Index.html");
     var template = new IndexTemplate { ProjectInfo = _repository.ProjectInfo, CurrentLanguage = _currentLanguage };
     File.WriteAllText(indexHtmlFile, template.TransformText());
 }