moj-analytical-services / shinyGovstyle

Apply GOV.UK styled components and formats in shiny
https://moj-analytical-services.github.io/shinyGovstyle/
40 stars 7 forks source link

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

Open cjrace opened 5 months ago

cjrace commented 5 months 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.