Closed kimisgold closed 4 years ago
What happens if you create a folder (_myfiles) in the root directory of your project and add your folder in the config include section?
@core77 It works, but doesn't quite fit my use case. I have a separate php project that needs to live within my jekyll directory, and I'd prefer jekyll not to touch it all. As I understand it, Jekyll's "keep_files" configuration is built for use cases like this, so all I want is for that setting to take effect.
This project was built with the intention to fully replace the _site folder when 'yarn start' or 'yarn run build' scripts are running. That's why there's the clean gulp task which wipes the _site folder.
Jekyll is only needed here to generate the HTML.
Perhaps you want to make your own fork to achieve what you want to do?
Running jekyll by itself will preserve files and directories in my
_sites
folder that I've identified in my_config.yml
usingkeep_files
. Running any of the yarn tasks will clean out my_sites
directory and ignorekeep_files
.