2.0.0-beta44
This commit is contained in:
@@ -145,7 +145,7 @@ for (const yamlFile of yamlFiles) {
|
||||
fs.writeFileSync(mdPath, mk)
|
||||
}
|
||||
|
||||
console.log(`Converted ${yamlFiles.length} XML files to Markdown`)
|
||||
console.log(`Converted ${yamlFiles.length} YAML files to Markdown`)
|
||||
|
||||
// Process Enums
|
||||
const yamlEnumFiles = fs.readdirSync(yamlEnumPath).filter(file => file.endsWith('.yaml'));
|
||||
@@ -191,4 +191,4 @@ for (const yamlFile of yamlEnumFiles) {
|
||||
fs.writeFileSync(mdPath, mk)
|
||||
}
|
||||
|
||||
console.log(`Converted ${yamlEnumFiles.length} enum XML files to Markdown`)
|
||||
console.log(`Converted ${yamlEnumFiles.length} enum YAML files to Markdown`)
|
||||
@@ -32,8 +32,8 @@ for (const c of data.Classes) {
|
||||
let existingClassDescription = "Missing Documentation";
|
||||
|
||||
if (fs.existsSync(yamlPath)) {
|
||||
const existingXml = fs.readFileSync(yamlPath, "utf-8");
|
||||
const existingData = yaml.parse(existingXml);
|
||||
const existingYaml = fs.readFileSync(yamlPath, "utf-8");
|
||||
const existingData = yaml.parse(existingYaml);
|
||||
|
||||
// Preserve existing class description
|
||||
if (existingData.Description) {
|
||||
@@ -117,8 +117,8 @@ for (const e of data.Enums) {
|
||||
let existingDescriptions = {};
|
||||
let existingEnumDescription = "";
|
||||
if (fs.existsSync(yamlPath)) {
|
||||
const existingXml = fs.readFileSync(yamlPath, "utf-8");
|
||||
const existingData = yaml.parse(existingXml);
|
||||
const existingYaml = fs.readFileSync(yamlPath, "utf-8");
|
||||
const existingData = yaml.parse(existingYaml);
|
||||
|
||||
existingEnumDescription = existingData.Description || "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user