moj-analytical-services / shinyGovstyle

Now up to GDS frontend version v4.0.0
37 stars 6 forks source link

Create pkgdown site hosted on GitHub pages and clean up docs/ folder afterwards #80

Open cjrace opened 1 month ago

cjrace commented 1 month ago

I've started some of this in my branch to add GitHub actions.

The workflow files are there, and hopefully when that makes it to main then we'll see the deploy triggering and the page set up.

Once done we should clean up to remove the /docs folder that is now git ignored. If we want the site locally we can use devtools::build_site() and GitHub actions will run that each time to build a new site for every push to main.

To do this we'll need to run git rm -r --cached docs/, though once this is done it will affect everyone elses repos on their next pull too - hence the waiting until we definitely have the pkgdown site working first.