Runner.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
clear
cd $PSScriptRoot
Import-Module .\ProductivityTools.PSConvertDocuments.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.PSCloneGithubRepositories\
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
#}
#====