-
-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths to dir above root? #29
Comments
This is a known limitation due to the fact that I start a local web server using the directory of the Rmd file as the root directory, and you cannot go to upper directories of a web server. I'll see if I can come up with a fix. |
Would be great! This would avoid having to copy |
Yep, I understand. I ran into this issue myself two weeks ago, but I didn't have time to consider a fix. |
Done. All you need to do is set your working directory to the parent directory before clicking the Infinite Moon Reader addin in RStudio, or call |
Do you foresee making CSS files accesible without changing the working directory? For example, I am using xaringan to make slides for my class, which are inside a directory for the class website. The website has a |
@jvcasill You don't have to change the working directory, but you will have to type something like |
I know this is a very old issue, but I just ran into it myself trying to integrate some xaringan slides into a jekyll site that already has an assets directory for css. I understand that if you're using the "Infinite Moon Reader" live preview functionality, you should use the |
My understanding is that you can set the full header:
Then knit in Rstudio would result in the following structure
|
Thanks for sharing @tcgriffith! But, I don't think this will work for me specifically. In your example, the xaringan slide deck
If I just put
So, I think it comes back to the core issue of accessing files above the "root", where "root" is the directory where your .Rmd is stored. |
Did |
@daijiang That sounds like a bug. It'll be great to file a new issue with a minimal reproducible example (you can upload a zip file containing the Rmd and css). Thanks! |
Here is an example. Note that no matter which way to generate the html (make at the root or use the knit button of RStudio), the line 10 of |
@daijiang I created a new issue to follow that in its own thread. That is better to do so that just discussing in a closed one. |
I placed my custom CSS file one directory above the .Rmd file. However, it is not recognized there.
The same happens if I specify such a path for
background-image
in a layout slideThe text was updated successfully, but these errors were encountered: