yet-another-static-site-generator/yass

Fails when working from the site directory

Closed this issue · 2 comments

YASS does not create subdir in _output directory when run from inside the project with yass server .
The output hints of what is wrong:

% yass server .
Server was started. Web address: http://localhost:8888/index.html Press "Q" for quit.
[2022-09-09 18:56:55] File: /Users/jquorning/site/./_outputndex.html was added.
[2022-09-09 18:56:55] File: /Users/jquorning/site/./_outputubdir/index.html was added.
[2022-09-09 18:56:55] Site was rebuild.
[2022-09-09 18:57:00] File: /Users/jquorning/site/./_outputndex.html was added.
[2022-09-09 18:57:00] File: /Users/jquorning/site/./_outputoutputubdir/index.html was added.
[2022-09-09 18:57:00] Site was rebuild.
...

To Reproduce

% yass createnow site; cd site; mkdir subdir
% cat >subdir/index.md
-- layout: default
Hello, YASS
<coltrol-D>
% yass server .

Expected behavior
Expected output something like:

Server was started. Web address: http://localhost:8888/index.html Press "Q" for quit.
[2022-09-09 18:56:55] File: /Users/jquorning/site/./_output/index.html was added.
[2022-09-09 18:56:55] File: /Users/jquorning/site/./_output/subdir/index.html was added.
[2022-09-09 18:56:55] Site was rebuild.

And generated file structure:

_output/
_output/index.html     # and other files
_output/subdir/
_output/subdir/index.html

Technical Info:
macOS 10.15.7, GNAT FSF11

@jquorning Sorry for the late response! Would you mind giving the dev branch a try? I think I got it working. Here's a direct zip file with those sources:
https://github.com/yet-another-static-site-generator/yass/archive/refs/heads/dev.zip

Please let me know if it does or doesn't solve this on your end, and if it does, I'll merge it into the main branch.

If it doesn't work, what happens when trying yass build . from within the site directory? Same thing? Does it create an error.log file I could take a look at?

Thanks!

@jquorning I'm going to go ahead and close this, if it's been fixed with #6
If not, please let me know!