retype icon indicating copy to clipboard operation
retype copied to clipboard

Config – output is not working?

Open blaasvaer opened this issue 1 year ago • 3 comments

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 avatar Nov 24 '23 09:11 blaasvaer

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

blaasvaer avatar Nov 24 '23 09:11 blaasvaer

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.

geoffreymcgill avatar Nov 24 '23 09:11 geoffreymcgill

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.

blaasvaer avatar Nov 24 '23 09:11 blaasvaer