Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

develop vignette to show how to set up pkgdown #9

Open
k-doering-NOAA opened this issue Jan 18, 2022 · 6 comments
Open

develop vignette to show how to set up pkgdown #9

k-doering-NOAA opened this issue Jan 18, 2022 · 6 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@k-doering-NOAA
Copy link
Collaborator

The level of detail in the readme may not yet be sufficient for people new to github actions. We may want to create a vignette that shows step-by-step how to set up the workflows and describe potential issues/decision points.

@k-doering-NOAA k-doering-NOAA added documentation Improvements or additions to documentation enhancement New feature or request labels Jan 18, 2022
@k-doering-NOAA
Copy link
Collaborator Author

Maybe we could add to the FIT pages instead of making a vignette; for example, we can add on to this pkgdown setup instructions to include instructions on setting up the automated workflow, for example. We could then link to it in the readme.

@Bai-Li-NOAA
Copy link
Contributor

Good idea. Below are two links that I found very helpful when setting up some of the reusable workflows.

@iantaylor-NOAA
Copy link

+1 for this issue.
I was just suggesting the use of {ghactions4r} and realized that I didn't know the right sequence of steps related to changing the settings to deploy pages from a branch (and you can't choose the branch before it exists).

@k-doering-NOAA
Copy link
Collaborator Author

Thanks @iantaylor-NOAA I was just thinking about this issue today, that in particular setting up pkgdown or bookdown is not documented here but should be.

@k-doering-NOAA
Copy link
Collaborator Author

One thing that could help would be using the usethis ui_* functions to provide more info when the user sets up the action.

@k-doering-NOAA k-doering-NOAA changed the title develop longer docs (vignette?) to show users how to set up the gh actions develop vignette to show how to set up pkgdown Mar 22, 2024
@k-doering-NOAA k-doering-NOAA removed the enhancement New feature or request label Mar 22, 2024
@k-doering-NOAA
Copy link
Collaborator Author

I just went through the process of setting up pkgdown on SSMSE by following these instructions: https://noaa-fisheries-integrated-toolbox.github.io/resources/noaa%20resources/NOAA-pkgdown/

It was pretty straightforward, except I also had a bookdown user manual that needed to live in the docs/ folder. I ended up setting up a custom workflow so I could render the pkgdown followed by bookdown, then deploy both. If I didn't also have the bookdown, there would have not been any issues.

I think the takeaway here is to tell people to set up their pkgdown locally, check that it works, then tell them to add the github action and point it to gh pages. All of the steps are listed in the FIT blog post so I think linking it in the vignette/use_pkgdown function reference should be sufficient.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants