rstudio/bookdown.org

Automatically generate description if not provided or too short

yihui opened this issue ยท 5 comments

yihui commented

Idea: https://yihui.name/en/2017/08/hugo-post-summary/ Extract paragraphs from the book's homepage (using R/xml), and truncate to a certain number of characters.

yihui commented

@cderv Perhaps you can help with this one. I'll just let you decide how short is "too short".

yihui commented

@cderv Sorry I ruined some of your tidyverse code (in particular, the purrr code) while working on other issues ๐Ÿ˜Š If you feel lost in base R, I'll be happy to work on this issue by myself (I guess it should be fairly simple).

yihui commented

FYI I have finished it (still testing). Thanks anyway!

cderv commented

Very interesting to see how you rewrote some code. No worries, I can deal with base R too. I understand why you did this too. I saw some style guide to follow with you no more <- but just =. ๐Ÿ˜„

You go very fast now on this project and it is good. I can't follow the pace during the week because of workload on other subjects. Just morning (like now), end of day or week end. I'll be there to help you when needed but for now I think you are way more efficient by yourself!

Very nice improvements, the website looks very good !

yihui commented

I'm working full-time on it, so yeah, I can go very fast.

I'm totally fine with <- if the code is written and maintained by a <- person. If I'm going to touch the code and maintain it by myself, I'll switch to =.