Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config – output is not working? #662

Open
blaasvaer opened this issue Nov 24, 2023 · 3 comments
Open

Config – output is not working? #662

blaasvaer opened this issue Nov 24, 2023 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@blaasvaer
Copy link

blaasvaer commented Nov 24, 2023

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.

@geoffreymcgill geoffreymcgill self-assigned this Nov 24, 2023
@geoffreymcgill geoffreymcgill added the question Further information is requested label Nov 24, 2023
@blaasvaer
Copy link
Author

blaasvaer commented Nov 24, 2023

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
Copy link
Contributor

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
Copy link
Author

blaasvaer commented Nov 24, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants