Giter Club home page Giter Club logo

tidytemplate's Introduction

tidytemplate

Travis build status Check accessibility

Overview

tidytemplate provides a custom pkgdown template for core tidyverse packages (i.e. packages hosted by the tidyverse organisation). Please don’t use it for your own package.

The theme is built on top of the paper bootswatch theme.

Using tidytemplate

Make sure your _pkgdown.yaml contains:

template:
  package: tidytemplate

development:
  mode: auto

home:
  strip_header: true

You can customise the “part of” in the header, and the footer text with template parameters:

template:
  package: tidytemplate
  params:
    part_of: tidymodels
    footer: ...

To work properly, tidytemplate requires the css files in inst/pkgdown/assets/. Because of this, you should not set default_assets: false in your _pkgdown.yaml.

template:
  package: tidytemplate
  # Do not do this!
  default_assets: false

If you deploy to github pages automatically using travis, add the following to your .travis.yml:

r_github_packages:
  - tidyverse/tidytemplate

CSS files

Three CSS files play a role in styling the site:

  • tidyverse.css is generated from files in scss/ written by Robby Shaver. Generally you should not touch these files; Robby is the owner. If needed you can regenerate tidyverse.css by running this code:

    # devtools::install_github("rstudio/sassr")
    library(sass)
    sass(
      sass_file("scss/tidyverse.scss"),
      output = "inst/pkgdown/assets/tidyverse.css",
      options = sass_options(output_style = "nested")
    )
  • pkgdown.css comes from pkgdown.

  • tidyverse-2.css lives in inst/pkgdown/assets/tidyverse-2.css. Generally, this is the only file you should touch if you want to make changes to the style of the site.

Lorem Ipsum

Added to make the readme long enough that I can check scrolling.

Lorem ipsum dolor sit amet, ea pri paulo facete, in mel choro volumus. Dolore labitur cum no, vis copiosae appareat ex, vix antiopam iudicabit consequat in. Has equidem graecis et. Ea est partem altera, ius id agam debitis. Ex mea minim utroque, harum choro at has.

Vim rebum denique ad. Vocent dignissim ea qui, mea no vocent eruditi. At vix soleat bonorum comprehensam, qui nibh sale epicurei te, ex ullum dicta sit. Sed te vide nostrud. Denique delicata ut vim.

Nec no nobis scaevola, ad his commodo qualisque liberavisse. Sed porro propriae repudiare et, enim viris definitionem mei an. Ridens deserunt conceptam usu et. Cu has eros dicit, ex nec idque fabulas. Eum ei sensibus mnesarchum dissentias.

Eum id essent pericula salutandi, cu mazim congue molestiae usu. No has omnesque conclusionemque, no eos nusquam offendit expetendis. Alii oratio ad usu. Et pri feugait recusabo salutandi, ius ad commune salutandi. Ut graece vivendum vim, decore qualisque mediocritatem vix cu.

Ei nullam postea interesset vix, vix eu case fugit graeco, nec ut ponderum deserunt. Has ex amet neglegentur, eos et porro debet eirmod. Te pri lorem persius facilisis. Eos liber mentitum nominavi id.

tidytemplate's People

Contributors

hadley avatar batpigandme avatar davisvaughan avatar jayhesselberth avatar krlmlr avatar gregrs-uk avatar ras44 avatar

Watchers

James Cloos avatar  avatar  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.