fix for merged code examples overlay

This commit is contained in:
darrell-thobe-sp
2025-02-21 10:35:07 -05:00
parent 14be3df537
commit 970656b1fd
4 changed files with 10081 additions and 43345 deletions

View File

@@ -65,8 +65,10 @@ const mergeCodeSamples = (powershellData, pythonData) => {
// Merge the data // Merge the data
const mergedCode = mergeCodeSamples(powershellData, pythonData); const mergedCode = mergeCodeSamples(powershellData, pythonData);
// Convert the merged data to YAML format // Convert the merged data to YAML format with lineWidth: -1 to avoid block-style strings
const mergedYaml = yaml.dump(mergedCode); const mergedYaml = yaml.dump(mergedCode, {
lineWidth: -1 // Avoid wrapping strings into block-style format
});
// Derive the output directory and file name // Derive the output directory and file name
const pythonFileDir = path.dirname(pythonFilePath); const pythonFileDir = path.dirname(pythonFilePath);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff