trilbymedia / grav-plugin-git-sync

Collaboratively Synchronize your Grav `user` folder hosted on GitHub, BitBucket or GitLab
Apache License 2.0
243 stars 58 forks source link

Default git sync folder #118

Closed coolemur closed 5 years ago

coolemur commented 5 years ago

After remote website data is changed plugin syncs changes in root git repo folder.

/pages /plugins /themes

Is there a way to set custom location for sync data ?

For example:

/custom-folder/pages /custom-folder/plugins /custom-folder/themes

paulhibbitts commented 5 years ago

Hi @coolemur , you should be able to add any custom folders within the user folder. For example, I've added an images folder within my user folder to sync all global site images.

coolemur commented 5 years ago

@paulhibbitts Hello. That is right. I can add custom folders to user folder. But when they are mapped into git repo, they appear in git root folder (/git/themes or /git/pages). Instead I would like to have for example /git/my-custom-folder/themes or /git/my-custom-folder/pages. How can I customise where those folders appear in git if that is possible ?

paulhibbitts commented 5 years ago

Hi @coolemur at this time no. There is a request for support of custom paths (https://github.com/trilbymedia/grav-plugin-git-sync/issues/113) which might address this in the future.