Skip to content
Permalink
Browse files
added powershell script for cw and updated labs
  • Loading branch information
ab6459 committed Nov 8, 2022
1 parent 929f2a7 commit d6f42e51f4027a0b98a6d11f0ec0ec79f50f87d7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
@@ -0,0 +1,15 @@
Get-ChildItem .\master_files\assessments -Recurse -filter "*.md" | foreach {
$name = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
$fullName = $_.FullName
pandoc.exe `
-f markdown `
--to html5 `
--template=https://github.coventry.ac.uk/pages/ab6459/reveal.js/dist/templates/cw_template.html `
-o .\docs\labs\html\$name.html `
$fullName
}

Get-ChildItem .\docs\assessments\html -Recurse -filter "*.html" | foreach {
$name = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
weasyprint -q .\docs\assessments\html\$name.html .\docs\lectures\pdf\$name.pdf
}
@@ -2,12 +2,4 @@ Get-ChildItem .\master_files\labs -Recurse -filter "*.md" | foreach {
$name = [System.IO.Path]::GetFileNameWithoutExtension($_.Name)
$fullName = $_.FullName
Copy-Item $fullName .\docs\labs\html\$name.md
# pandoc.exe `
# -f markdown `
# --to html5 `
# --template=https://github.coventry.ac.uk/pages/ab6459/reveal.js/dist/templates/lab_template.html `
# -B https://github.coventry.ac.uk/pages/ab6459/reveal.js/headers/lab/4061cem.html `
# -A .\master_files\labs\checklists\$name.html `
# -o .\docs\labs\html\$name.html `
# $fullName
}

0 comments on commit d6f42e5

Please sign in to comment.