Files
rag-tutor-documentation/01_Konzeption/Abbildungen/convert.ps1
T

16 lines
597 B
PowerShell

$scriptDir = $PSScriptRoot
$cfgFile = Join-Path $scriptDir 'mermaid-config.json'
$imgName = "ext-kunde__stufen"
$srcFile = Join-Path $scriptDir "$imgName.mmd"
$destFile1 = Join-Path $scriptDir "$imgName.svg"
$destFile2 = Join-Path $scriptDir "$imgName.png"
mmdc -i $srcFile -o $destFile1 -c $cfgFile
mmdc -i $srcFile -o $destFile2 -s 3
$imgName = "ext-kunde__architektur"
$srcFile = Join-Path $scriptDir "$imgName.mmd"
$destFile1 = Join-Path $scriptDir "$imgName.svg"
$destFile2 = Join-Path $scriptDir "$imgName.png"
mmdc -i $srcFile -o $destFile1 -c $cfgFile
mmdc -i $srcFile -o $destFile2 -s 3