Runner.ps1

clear
cd $PSScriptRoot
Import-Module .\ProductivityTools.ConvertDocuments.psm1 -Force
cd "D:\OneDrive\Dokumenty\Articles\2019.12.30 - Setup the release schedule\"
ConvertFrom-Docx -verbose -Path ".\Setup the release schedule.docx" -TargetFormat Html -OutputDirectory D:\Trash\ArticlesHTML\Docx
cd $PSScriptRoot

cd d:\Trash\Readmes\ProductivityTools.CloneGithubRepositories\
ConvertFrom-Markdown -verbose -Path "README.md" -TargetFormat Html -OutputDirectory D:\Trash\ArticlesHTML\MD

#=== articles from doc to html
#$articles2=Get-ChildItem D:\OneDrive\Dokumenty\Articles\*.docx -Recurse | Where-Object {$_.Directory -notlike "*Arch*"}
#
#foreach($article in $articles2)
#{
# $sourceName=$article.FullName
# $destinationDirectoryName=$article.Directory.BaseName
# write-host $destinationDirectoryName
# $destinationDirectoryFullName=Join-Path "d:\Trash\ArticlesHTML\" $destinationDirectoryName
# ConvertFrom-Docx -verbose -Path $sourceName -TargetFormat Html -OutputDirectory $destinationDirectoryFullName
#}
#====