varabyte / kobweb

A modern framework for full stack web apps in Kotlin, built upon Compose HTML
https://kobweb.varabyte.com
Apache License 2.0
1.46k stars 65 forks source link

Exporting static layout on windows ignores subdirs under markdown #166

Closed bitspittle closed 1 year ago

bitspittle commented 1 year ago

This folder structure:

jsMain/resources/markdown/subdir/Test.md

when kobweb export --layout static is run, should export to:

kobweb/.site/subdir/test.html

However, it currently drops the file in the site root instead.

bitspittle commented 1 year ago

Note: This looks like a pretty suspect line

https://github.com/varabyte/kobweb/blob/258749b480e9e7725b34812a702de207aebc5c37/gradle-plugins/extensions/markdown/src/main/kotlin/com/varabyte/kobwebx/gradle/markdown/tasks/ConvertMarkdownTask.kt#L68

Gotta love slashes vs. backslashes on Windows :)