Giter Site home page Giter Site logo

xy2i / tidyverse.org Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tidyverse/tidyverse.org

0.0 1.0 0.0 60.96 MB

Source of tidyverse.org

Home Page: https://tidyverse.org

License: Creative Commons Attribution Share Alike 4.0 International

R 0.35% HTML 89.06% CSS 10.47% JavaScript 0.12%

tidyverse.org's Introduction

Netlify Status

tidyverse.org

This repo is the source of https://tidyverse.org, and this readme tells you how it all works.

  • If you spot any small problems with the website, please feel empowered to fix them directly with a PR.

  • If you see any larger problems, an issue is probably better: that way we can discuss the problem before you commit any time to it.

  • If you'd like to contribute a blog post, please chat with one of us first. Then read the contributing guide.

This repo (and resulting website) is licensed as CC BY-SA.

Structure

The source of the website is a collection of .md and .Rmd files stored in content/, which are rendered for the site with blogdown.

  • content/*.md: these files generate the top-level pages on the site: packages, learn, help, and contribute.

  • content/articles/: these files are the tidyverse blog. New blog entries should be given name year-month-slug.md. Unfortunately this data isn't actually used when generating the output file: you'll need to set up the yaml metadata. More on that below.

    • For *.md posts, no *.html file should be committed. If you generate one locally during development, delete it once it's no longer useful to you. Keep it out of this repo.

    • For *.Rmd posts, an *.html file should be committed. It will be generated when you run blogdown::serve_site() (see recommended workflow below).

    • If your post includes emoji, use the .Rmd format, and incorporate emoji using the emo package.

  • data/events.yaml: this yaml file contains information about upcoming events. The site automatically filters out events that have happened, sorts by date, and then shows at most two events.

Previewing changes

Use blogdown::serve_site()

To build the site locally, you'll need to install blogdown, and then install hugo, the music behind the magic of blogdown:

install.packages("blogdown")
blogdown::install_hugo()

Then run

blogdown::serve_site()

This will open a preview of the site in your web browser, and it will automatically update whenever you modify one of the input files. For .Rmd, this will generate an .html file, which you should commit and push to GitHub.

Other methods of local preview

You should really preview the site using blogdown::serve_site(). But if, accidentally or intentionally, you knit or preview the content using another method (e.g. click the Preview button in RStudio for .[R]md), make sure you don't commit an .html file from an .md file.

In PRs

The tidyverse site is automatically published with netlify. One big advantage of netlify is that every PR automatically gets a live preview. Once the PR is merged, that preview becomes the live site.

tidyverse.org's People

Contributors

alexpghayes avatar apreshill avatar batpigandme avatar behrman avatar bwalsh5 avatar carneybill avatar davisvaughan avatar edgararuiz-zz avatar elben10 avatar emilhvitfeldt avatar gaborcsardi avatar hadley avatar ismayc avatar jayhesselberth avatar jennybc avatar jimhester avatar karawoo avatar krlmlr avatar lionel- avatar lorenzwalthert avatar lucymcgowan avatar maelle avatar markdly avatar mine-cetinkaya-rundel avatar mitchelloharawild avatar pkq avatar romainfrancois avatar sharlagelfand avatar thomasp85 avatar topepo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.