Git Product home page Git Product logo

Comments (6)

kieran-mace avatar kieran-mace commented on August 27, 2024

If one changes the base url in _config.yml to "/mysite/" it works, but I believe that this is not correct (jekyll serve now says Server address: http://127.0.0.1:4000/mysite//

from servr.

yihui avatar yihui commented on August 27, 2024

You didn't bring a minimal reproducible example, so all I can do is guess, and my guess is you didn't set the option correctly, e.g. you should

knitr::opts_knit$set(base.url = '/mysite/')

and for some reason, you probably ended up with

knitr::opts_knit$set(base.url = '/mysite')

from servr.

kieran-mace avatar kieran-mace commented on August 27, 2024

i specify the base url in the _config.yml file, which is read by build.R
according to the example supplied by jekyll, the baseurl in _config.yml should not include the final /
#baseurl: /path/to/blog
not
#baseurl: /path/to/blog/

however I believe that this issue may be with the build.R script in your other repo here, and not in this repo. sorry.

from servr.

yihui avatar yihui commented on August 27, 2024

Okay, I'll fix the _config.yml in the other repo. Thanks!

from servr.

rcorty avatar rcorty commented on August 27, 2024

I don't know much about servr, knitr, jekyll, etc., but this problem is preventing me from publishing my blog, so I tried the following and it didn't help:

on line 91 of dynamic.R, pass in argument paste0(baseurl, '/') as the baseurl parameter, instead of local variable baseurl.

Just mentioning this in case it is helpful to those who know more about the situation than I do.

I also noticed the build_jekyll function is never called.

from servr.

rcorty avatar rcorty commented on August 27, 2024

OK, I made a very kludgey patch, but it does work....

https://github.com/rcorty/CortyKit/blob/master/R/servr_patch.R

from servr.

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.