First of all, this is my first time working with Webby. I have
just installed the 0.9.4 gem in the usual manner. I started out (as
I tend to do) by exploring the options available to me. These are
the commands I ran and the results they gave:
webby -v => Webby 0.9.4
webby --help => normal-looking help
webby -o => Sitefile not found (RuntimeError)
webby -D => Sitefile not found (RuntimeError)
webby -P => Sitefile not found (RuntimeError)
webby -T => Sitefile not found (RuntimeError)
webby . => Sitefile not found (RuntimeError)
webby --options => Sitefile not found (RuntimeError)
At this point I was almost ready to give up, but I did some
searching and found the source code that was generating this error.
From that I finally figured out that I need a file in (I'm guessing
here) the target directory. Running touch Sitefile
seems fixed the issue. At lease it allowed me to run the above
commands without throwing an error.
So my question is, so long as we are generating files,
why not just create an empty Sitefile if one doesn't exist? If not
webby should at least print a helpful error message to inform the
user. For instance this friendly message could easily do the
trick:
Hey! We need a file called Sitefile to exist before
doing anything else. Mind you, this file doesn't actually need to
have anything in it, but Webby isn't going to do anything useful
until this file is created. Try running touch Sitefile
to fix this problem.