Repository navigation
Adding pkgdown site built by GHA - #511
Conversation
and removed leftover from distill
|
I did the main part of it for this one. I think apart from the generic pieces to fill (CoC, netlify env var, branches, ...) there is only the example page which is still missing. @apreshill you can have a wording review as for bookdown one. And maybe also the grouping for the references. |
|
@apreshill as discussed last Friday, I have now added examples of some blogdown websites in the community. I got some link from the rbind organization. See https://pkgs.rstudio.com/blogdown/articles/articles/examples.html for the result. It is easy now to add new url and source, then takes screenshot and generate the YAML for integration. Feel free to provide other examples, I can rebuild easily. thanks! |
This reverts commit 58f98ca. PR has been merged in quillt
yihui
left a comment
There was a problem hiding this comment.
It is easy now to add new url and source, then takes screenshot and generate the YAML for integration.
Genius! You did something that I wanted to do a few years ago: rbind/support#38. My only request for this PR is to cache the screenshots on GHA instead of storing the images in the repo, since they are relatively big and the list of websites may grow in the future (we don't want to store megabytes of screenshots in GIT when they can be dynamically generated).
I have added the secret env vars. Thanks!
|
Currently the chunks are with About the caching, it can be at least on a cache key based on YAML file change. If a new YAML is pushed, then we would re-screenshot. |
|
@yihui it seems to work fine.
Since
This is also supported by pkgdepends used by pak. I find it a nice way to have all dependencies contained in DESCRIPTION without needing to add to Suggests for a pkgdown website or for book for example. Just sharing this for future usage maybe. |
|
|
||
| - name: Deploy to Netlify | ||
| # only deploy on the fork for now | ||
| if: github.repository_owner == 'apreshill' |
|
@apreshill is this ready to merge for you ? Seems ok to me. Secrets are set and the correct contact email for CoC should be added once confirmed - we can do it later. I recall you wanted to rewrite the Get Started article maybe - is it still the case ? Thanks. |
|
I'm fine with it as is! I'd love to reorg the reference page- some of the Hugo functions cannot be separated because of |
to store pkgdown dependencies
This reverts commit e6e3a64. pak is not fixed yet for Linux
Leaving as a draft for now while we finalize the pkgdown template design (cc @cderv)
This site currently publishes to: https://pkgs.rstudio.com/blogdown/
The site is in the RStudio Netlify org.
To do before merging:
Finalize pkgdown template (adding book to homepage, add examples, group reference page)
Change the branch to deploy from in the GH action to
masterAdd 2 secrets (
NETLIFY_AUTH_TOKENandNETLIFY_SITE_ID) to this repo. I don't have admin access to add myself.Add a code of conduct (required by Netlify's open source policy)
Note: we currently depend on the dev version of pkgdown to render
NEWS.mdcorrectly.