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

Update the book #621

Open
apreshill opened this issue Apr 28, 2021 · 9 comments
Open

Update the book #621

apreshill opened this issue Apr 28, 2021 · 9 comments

Comments

@apreshill
Copy link
Contributor

apreshill commented Apr 28, 2021

I'm using this issue to flush out some things I'd like to update in the blogdown book:

Get started

  1. Installation (updated in new quick example #618)
  2. A quick example (updated in new quick example #618) [notes: no GitHub, hugo-lithium theme, no deploy, edit post only]
  3. A quick deploy (added in Quick deploy #619) [notes: still no GitHub, hugo-lithium theme, Netlify Drop]
  4. A complete example (draft in A complete example #623) [notes: GitHub, wowchemy theme, edit + add new post, Netlify continuous deployment]
  5. Other themes (updated in Using themes #620)
  6. Recommended workflows (will need an update after all of the above, idea is more like a cheatsheet/tl;dr version of above content, will include GitHub)

The blogdown package

Propose a new chapter with these sections:

  1. RStudio Addins (adapt from https://bookdown.org/yihui/blogdown/rstudio-ide.html)
  2. Using R Markdown (adapt from https://bookdown.org/yihui/blogdown/output-format.html, plus add https://blog.rstudio.com/2021/01/18/blogdown-v1.0/#better-support-for-markdown-format)
  3. Global options (adapt from https://bookdown.org/yihui/blogdown/global-options.html; be sure to mention all of these)
  4. Checking functions (adapt from https://blog.rstudio.com/2021/01/18/blogdown-v1.0/#checking-functions)
  5. Hugo versioning system (adapt from https://blog.rstudio.com/2021/01/18/blogdown-v1.0/#hugo-versioning-system)

WIP draft chapter in branch here: https://github.com/apreshill/blogdown/blob/blogdown-chapter/docs/02-blogdown.Rmd

Some rationale

Help users realize what blogdown actually does, vs Hugo/GitHub/Netlify. Folks often ask this in workshops and meetups, and with the checking functions and versioning system, I think the package now deserves its own chapter to highlight how we make using Hugo in the RStudio IDE easier.

Hugo...

(and all other chapter updates I leave up to @yihui)

Advanced

Wonder if we should add a section on GitHub Actions for blogdown? See: https://drmowinckels.io/blog/2021-03-23-using-github-actions-to-build-your-hugo-website/

Notes to self

Need a link to early demo sites. Also this is effectively a gallery: https://github.com/rbind, as is: https://pkgs.rstudio.com/blogdown/articles/articles/examples.html

@cderv
Copy link
Collaborator

cderv commented Apr 29, 2021

I like this outline.

Personal thoughts and feelings:

  • For the new chapter called blogdown, I see that as "Going Further" which is the usual path after "Getting Started". Having a chapter called with the same name of the book feels weird to me.
  • I would not but RStudio IDE chapter first. I think you already show some new project screenshot in get started so maybe it is just a part about the Addin to add in the book ?
  • Regarding output format, is this where you plan to talk about the different methods ? with new markdown mode to be able to do .Rmd -> .md directly ?
    Currently the other supported method after the default html was custom and it was explained in Appendix only https://bookdown.org/yihui/blogdown/methods.html
    Maybe that worth mentioning in this chapter about output formats and keep the custom method as advanced topic for Appendix.

Thank you for all this @apreshill ! 💪

@apreshill

This comment has been minimized.

@cderv
Copy link
Collaborator

cderv commented Apr 29, 2021

a major point of confusion is "what DOES blogdown actually do" vs. Hugo/themes/GitHub/Netlify/etc. So I'd prefer to be ridiculously clear here.

That make sense. It would indeed be more clear if it is called : the blogdown package.

I do not have another name idea for now. It just feels that with a chapter with this name I would expect to find everything about the package in this part - for now blogdown::shortcode() is mentionned in the Hugo chapter when shortcodes are mentioned. So other chapters also mentioned blogdown features. That is what I guess I am unsure.

I think Addins are really important and I highlight when teaching. Where would you put this?

We could rename the RStudio IDE current chapter to RStudio Addins : it is currently mainly about that.
Other thing it currently mentions is New project and build site, but it could be shown in Get started

I would definitely not touch the build_site() args here

If we don't mention the build_site agument in the Blogdown chapter, I don't know where except appendix maybe for a part specific on this if we consider too advanced for main book.
In the main book, I was thinking in this part:

5.Using R Markdown (adapt from bookdown.org/yihui/blogdown/output-format.html, plus add blog.rstudio.com/2021/01/18/blogdown-v1.0/#better-support-for-markdown-format)

@apreshill

This comment has been minimized.

@bbolker
Copy link

bbolker commented Jun 3, 2021

@yihui
Copy link
Member

yihui commented Jun 3, 2021

@bbolker Thanks for the report!

@apreshill Could you add a 301 redirect to your website? Thanks!

@apreshill
Copy link
Contributor Author

oof! yes thank you!

@apreshill
Copy link
Contributor Author

Done- I forgot to do my splats correctly, thanks!

@yihui

This comment has been minimized.

@yihui yihui reopened this Jun 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants