krasimir / techy

A flat file CMS based on Gulp and AbsurdJS
http://krasimir.github.io/techy
MIT License
250 stars 23 forks source link

Unable to set custom source directory for MD pages #33

Open ZaLiTHkA opened 9 years ago

ZaLiTHkA commented 9 years ago

I think I may have found a bug with the CLI usage. On two separate computers (Windows 8.1 and 10), I cannot get version 1.2.4 to use anything other than the current directory as it's "source" folder.

The command I'm running is techy --src ./_pages, but regardless of my current folder structure, it always runs from the folder where I'm running the command. I can confirm this because the README.md file in my project root is also being converted to .html.

I discovered in a comment on #20 that this CLI parameter usage was added in 1.0.0, so I installed that version specifically to test and the issue doesn't exist there. This must have been something that went wrong since then. I should note here that the --dest parameter works correctly; the output definitely goes to the folder I specify. I can't confirm the --theme parameter though, since 1.2.4 doesn't seem to generate any themes folder as I see version 1.0.0 doing.

Unfortunately I can't find a list of releases, so I haven't been able to work out which specific release these issues in.. Please let me know if you need help with debugging this further.

Edit: I found a list of the versions using npm view, I'll see if I can work out which version broke this functionality and leave a comment if I find anything useful.

krasimir commented 9 years ago

Hello @ZaLiTHkA,

Thank you for filing an issue here. I'll try finding some time next week for that.