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

fix zola serve not respecting preserve_dotfiles_in_output #2113

Merged
merged 4 commits into from
Feb 23, 2023

Conversation

flxzt
Copy link
Contributor

@flxzt flxzt commented Feb 23, 2023

This PR fixes the behaviour of zola serve to respect the preserve_dotfiles_in_output configuration option. Currently the output -dir is always deleted when the user presses "Ctrl+C" and serve exits. It was an oversight when adding preserve_dotfiles_in_output in #1985 .

Things to discuss:

  • the location of the clean_site_output_folder() function. Is utils::fs the right place for it?

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Code changes

(Delete or ignore this section for documentation changes)

  • Are you doing the PR on the next branch?

@Keats Keats merged commit 1b38989 into getzola:next Feb 23, 2023
@flxzt flxzt deleted the fix-serve-removes-output-dir branch February 23, 2023 21:36
Keats pushed a commit that referenced this pull request Feb 24, 2023
* fix `zola serve` not  respecting `preserve_dotfiles_in_output`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants