retypeapp / retype

Retype is an ✨ ultra-high-performance✨ static site generator that builds a website based on simple text files.
https://retype.com
Other
1.01k stars 201 forks source link

Config – output is not working? #662

Open blaasvaer opened 7 months ago

blaasvaer commented 7 months ago

I would expect a folder to be created containing the files for the docs I'm writing:

output: ./docs

But retype consistenly states:

OUTPUT: [in-memory]

And no folder is created anywhere. Now, is this by design, or? I certainly would expect a folder to be created.

blaasvaer commented 7 months ago

OK, the docs seems to be wrong!

I've been using retype start all the time:

After making a change to the retype.yml, if you are running retype start, Retype will automatically rebuild the project for you and your web browser will refresh with the changes.

If you started the local web server using retype serve, you will need to call retype build to regenerate a ✨ sparkly ✨ fresh new build of the project, then manually refresh your web browser to see the update. Using the command retype serve --live will automatically update all web browsers.

Only when I run retype build will it actually create the output folder

geoffreymcgill commented 7 months ago

That output location should be used if retype build is called.

If using retype start, then by default the files are served from an in-memory cache, but you can override by adding the following config to your project retype.yml file:

serve:
  watch:
    mode: disk

Hope this helps.

blaasvaer commented 7 months ago

Then the docs are at least misleading. Please, be specific of what it does and does not do.

I can only read it as if it does 'everything' automagically.

Retype will automatically rebuild the project for you … (when using retype start)

when in fact it doesn't.