Skip to content

Commit

Permalink
Updated to delete the old documentation if it exists
Browse files Browse the repository at this point in the history
  • Loading branch information
orpiske committed Sep 17, 2024
1 parent 9cadd4f commit a19a2f0
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ private void doGenerate(String componentName) throws IOException {
File outputDir = new File(taxonomyPath, componentName);
outputDir.mkdirs();

File outputFile = new File(outputDir, componentName + ".yaml");
File oldOutputFile = new File(outputDir, componentName + ".yaml");
if (oldOutputFile.exists()) {
oldOutputFile.delete();
}

File outputFile = new File(outputDir, "qna.yaml");
FileUtils.writeStringToFile(outputFile, qna, StandardCharsets.UTF_8);
}

Expand Down

0 comments on commit a19a2f0

Please sign in to comment.