GithubHelp home page GithubHelp logo

yihui / blogdown-static Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 13.0 128 KB

A minimal example of building Rmd files under the static/ directory of a website based on blogdown and Hugo

Home Page: https://blogdown-static.yihui.name

License: MIT License

R 0.77% CSS 36.32% HTML 62.92%
blogdown example hugo rmarkdown

blogdown-static's Introduction

This is a repo to host the (Markdown) source files of my personal website, including my Chinese and English blogs, as well as several project websites (such as knitr.) The content of all pages is licensed under CC BY-NC-SA 4.0.

You are welcome to post comments on my site. To do so, you need to log in using your GitHub account at the bottom of a page. If you have any other feedback, comments, or questions, please post them to my GitHub discussion board.

A technical note

To build the website locally, you must clone this repo with its submodule (use the --recursive argument), e.g.,

git clone --recursive [email protected]:yihui/yihui.org.git

The website is built via the R package blogdown. Please read its documentation for how to use it.

I don't recommend you to study how my website is built, because it is complicated. In particular, the way I manage images is fairly complicated.

blogdown-static's People

Contributors

yihui avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

blogdown-static's Issues

Rendering xaringan slides with blogdown: myslides-files directory does not get copied to public/slides/

Hi YiHui

I'm trying to embed xaringan slides in my blogdown/hugo-academic blog, which I created today with current package versions.
I followed the instructions here and the html file in the static/slides/myslides directory is absolutely fine, because it has all its dependencies. However, when it and its dependencies are copied to the public/slides directory during the build_site() process, the myslides-files directory is missed out, so all my lovely ggplots are missing. This is also one of the files that gets cleaned up by rmarkdown::clean_site(), so even if it was not a horrible kludge, manually copying it over isn't a good idea. Have I missed a trick here?

Susannah

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.