Repository navigation
Adding pkgdown site built by GHA - #1955
Conversation
|
What is missing to move ahead for a first version online on the new website ? I think currently we are on a weird state with:
So we got two sites and I don't think that is ideal - or at least they should be in sync regarding the version. One generic remark about our pkgdown site : How do we position regarding dev version ?
Are we okay with only one site as we have currently ? Or do we need to get two sites ? |
Merge branch 'master' of github.com:rstudio/rmarkdown into pkgdown-quillt # Conflicts: # .github/workflows/pkgdown.yaml # pkgdown/_pkgdown.yml
Conflicts: .github/workflows/pkgdown.yaml: Merge two workflows and deactivate publishing to avoid overwrite the current website pkgdown/_pkgdown.yml: Keep the new yaml in this branch
…s and you want to ignore it.
- rmarkdown.rmd vignette is used as Get Started - Add link to community.rstudio.com - Remove link to pandoc vignette
|
I think this is now ready. If I take the checklist from your first post
During the work session with @apreshill we discussed a bit #1955 (comment). Currently, the versionning of our packages is not supported by the mode auto for development. This means that currently our site is build for the development version always. So, about that:
A part from the both uncheck box above, I think this is ready to be merged now. We just need you final review @yihui and come up with a switch plan with the two websites. As a reminder the published version of this branch is here: https://pkgs.rstudio.com/rmarkdown/ |
* build on Linux * install sys deps * install package after deps
yihui
left a comment
There was a problem hiding this comment.
- Add 2 secrets (NETLIFY_AUTH_TOKEN and NETLIFY_SITE_ID) to this repo. I don't have admin access to add myself. => Secrets are currently there, but used to deploy to https://rmarkdown.rstudio.com/docs/ . => this will require a switch of SITE ID or a parallel run of both sites with two different secrets
I have added these secrets and the site should be published to rmarkdown-pkg.netlify.app now. With d52322f, https://rmarkdown.rstudio.com/docs/ should also point to this site. Previously, it pointed to rmarkdown-docs.netlify.com, and this site will be retired.
Currently, the versionning of our packages is not supported by the mode auto for development.
I feel pkgdown's auto mode could have been able to detect if a version is a dev version regardless of the version number scheme (i.e. not requiring authors to use x.y.z.9000). For example, when building NEWS.md, it knows that a version is unreleased: https://pkgs.rstudio.com/rmarkdown/news/index.html#rmarkdown-2-8-unreleased
Anyway, that's not super important to me, and the tooltip is good enough. I don't really care. I prefer not having both https://pkgs.rstudio.com/rmarkdown/ and https://pkgs.rstudio.com/rmarkdown/dev/.
- Add a code of conduct (required by Netlify's open source policy)
That is required only for users of their open source plan. We use their Pro plan, so this requirement doesn't really apply to us. That said, I'm okay with adding a link to https://www.contributor-covenant.org/version/2/0/code_of_conduct/.
Thanks!
|
Just a note: That is required only for users of their open source plan. We use their Pro plan, so this requirement doesn't really apply to us. That said, I'm okay with adding a link to https://www.contributor-covenant.org/version/2/0/code_of_conduct/. Yes, this was because we were planning to move our pkgdown sites for open source packages to an open source org, off the Pro account. |
usethis::use_code_of_conduct(".github")
|
Oh I forgot to mention one minor thing yesterday: make sure the PNGs are optimized (you can |
|
Yes I'll recheck that but I did use |
|
Okay. We also have other PNG files (e.g., the hex logos and icons). |
| netlify deploy --prod --dir docs | ||
| - name: Deploy to Netlify | ||
| # only deploy on the fork for now | ||
| if: github.repository_owner == 'apreshill' |
|
@apreshill I believe this is now ready. Yihui has set the secrets to prepare the switch so we are good. Is it good for you for this one ? Is this ok to merge ? Thanks. |
|
I think so! |
Merge remote-tracking branch 'rstudio_origin/master' into jg-devel * rstudio_origin/master: (26 commits) Use data-external=1 to prevent encoding by Pandoc of img src add `subdirs` documentation for site generator (rstudio#2058) fix: corrected typo in `ghostscript` (rstudio#2059) Add CoC contact email quillt has moved to rstudio/quillt fix invalid HTML code in shiny_prerendered documents (rstudio#1942) Allow pkgdown PR preview (rstudio#2055) Adding pkgdown site built by GHA (rstudio#1955) Add shiny bslib dependency inside html_document_base pre-process (rstudio#2049) start the next version CRAN release v2.7 place <div> in \code{} amend 62ae2ed and rstudio#1989: make sure output_format_filter is a function; testing NULL is not enough, e.g., the radix package still calls use CRAN releases of shiny and bslib tweak news Only keep the first url in citation (rstudio#2041) Fix for knit_print.data.frame (rstudio#2050) set gfm_auto_identifiers to input format if toc is TRUE (rstudio#2040) Enable pkgdown/downlit cross-package links to rmarkdown (rstudio#1843) update CONTRIBUTING.md ... # Conflicts: # DESCRIPTION
Leaving as a draft for now while we finalize the pkgdown template design (cc @cderv)
This site currently publishes to: https://pkgs.rstudio.com/rmarkdown/
The site is in the RStudio Netlify org.
To do before merging:
Finalize pkgdown template (adding book to homepage)
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.