Giter Club home page Giter Club logo

Comments (9)

yihui avatar yihui commented on August 26, 2024

There is no documentation yet, but this is a solved problem. To publish a website, you need blogdown::build_site(), and the .xml files will be post-processed.

from blogdown.

hturner avatar hturner commented on August 26, 2024

Thanks, I see that now. One thing it would be useful to have in the documentation is it's important to stop any daemonized server first (via servr::daemon_stop()) - I've got used to having the website served locally in the background and then running build_site(local = FALSE) still seems to build as if local = TRUE.

Unfortunately I still have an issue though, when using build_site() the links are missing a "/", e.g. I get http://forwards.github.io/blog/2017/01/13/mapping-usersfigures/unnamed-chunk-2-1.png where I should have http://forwards.github.io/blog/2017/01/13/mapping-users/figures/unnamed-chunk-2-1.png so the links are still broken in the .xml files.

from blogdown.

wangweiqi999 avatar wangweiqi999 commented on August 26, 2024

I encountered the same problem with displaying images in username.github.io. It seems that the problem still exists up to now.

from blogdown.

yihui avatar yihui commented on August 26, 2024

@hturner That is a good suggestion for the documentation, and actually I guess I can provide a fix to avoid rebuilding the site after you run build_site(). I'll fix the missing slash issue, too.

@weiqiwang15 Do you have an example on Github? I saw your repo https://github.com/weiqiwang15/weiqiwang15.github.io but it does not appear to be a Hugo website (looks like Jekyll instead); blogdown only supports Hugo at the moment. To create a new website, please follow the instructions in README: https://github.com/rstudio/blogdown

from blogdown.

wangweiqi999 avatar wangweiqi999 commented on August 26, 2024

Thank you for your reply. I couldn't resolve the problem so I switched back to the Jekyll solution. I'll create a new repo and try to replicate the problem. Thanks.

from blogdown.

wangweiqi15 avatar wangweiqi15 commented on August 26, 2024

I used two repos (blog_source and wangweiqi15.github.io) to store the files as you suggested in this post.

I have little experience with html so I'm not sure if the screenshots below are where the problem lies. Hopefully it can give you some clue. Thanks.


In blog_source/blogdown/post/2015-07-23-r-rmarkdown.html

screenshot from 2017-01-25 10-53-55


In wangweiqi15.github.io/2015/07/23/hello-r-markdown/index.html

screenshot from 2017-01-25 11-05-11


Figure in blog post can't display correctly.
screenshot from 2017-01-25 10-46-51

from blogdown.

yihui avatar yihui commented on August 26, 2024

@hturner The missing slash was due to your configuration, and I just submitted a PR to fix it forwards/website_source#1

@wangweiqi15 Your issue has been fixed. Please reinstall blogdown:

devtools::install_github('rstudio/blogdown')

from blogdown.

wangweiqi15 avatar wangweiqi15 commented on August 26, 2024

Working like a charm now! Thank you!!

from blogdown.

hturner avatar hturner commented on August 26, 2024

Ah, so simple! Thanks very much!

from blogdown.

Related Issues (20)

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.