Quarto website rendering, but Rstudio not previewing - rstudio

I'm working on a quarto website started fresh in a project in Rstudio (2022.07.01 build 554). I've changed the head of my _quarto.yaml as follows
project:
type: website
output-dir: docs
When I render, while the site renders in docs, it still shows me the output of _site. So, I deleted _site. Now, when I render, it STILL shows me the original blank project - even though the correct stuff is being written to docs. What is happening here?

Related

that is no updated about modification of beautiful-jekyll

i got a fork about https://github.com/daattali/beautiful-jekyll
and i checked url is working...
but when i modify _config and md files
but that is no updated.
actually i'm not good at ruby. but i don't understand why no update.
is there anyone to help me ?
enter image description here
layout: page
title: changing
subtitle: Why you'd want to go on a date with me
Do you have experience with Jekyll?
The first thing I would check is that your server is running and without any changes you can view the website by visiting https://localhost:4000
Is the server is running, when you save a file you should see it say that it is rebuilding.
From your screenshot it looks like you're maybe editing the files directly in Github. Github is a bit of a blackbox when it comes to running Jekyll, I would advise getting it running locally first.

Github pages w/ Jekyll 404 on specific page

I am currently having an issue with Github Pages
I guess it doesn't hurt to use the actual live example
The corresponding repo is https://github.com/ScottA38/ScottA38.github.io
I made some styling changes (maybe some JS changes I don't remember) ages ago when I was actively working on the content, and somehow ever since the 'projects' page has been 404 when I try and click through to it from the menu.
I am using Jekyll theme Jam which is some obscure obsolete theme, but I don't see it being a problem really
The strangest part is that if I load the site locally with bundle exec jekyll serve then this page appears perfectly at localhost:4000/projects, just not on the live site
If I put https://scotta38.github.io/projects.html (live site) it also appears perfectly, just not at https://scotta38.github.io/projects like I want
I have seen some suggestions about GH servers caching an old version or something like this but I don't really understand and I need some guidance
"About" page works and you have a permalink there, but nothing for projects.
Probably adding
permalink: /projects/
will fix the issue.

/public/img/ folder not acceping new assets in Go-compiled web app

I downloaded a binary via docker for the Gogs project (https://github.com/gogits/gogs), set it up (via docker pull gogs/gogs) and the server works as expected. Now I'm trying to customize the html a bit to look consistent with our company's other tools. When looking at deployed project, the assets of interest are in the following directories:
public/img/*.png
public/css/*.css
templates/*.tmpl
When I update the css, changes take effect right away, when I update tmpl, I need a container restart (implying that html is generated at server start time), when I update anything in public/img/ directory, however, I can't seem to get those assets used at all and I'm clueless about what's happening since most web servers/frameworks treat public/img/ as a static directory with all of its contents publicly visible by default.
Here is what I've tried so far and the outcomes:
Action: copied a new favicon image (my_favicon.png) into public/img/ and changed /templates/base/head.html to point to it (/img/my_favicon.png) instead of the original (/img/favicon.png), left original untouched and restarted the container.
Result: page loads with broken image icon, DOM inspector says that it's pointing to /img/my_favicon.png but doesn't show the image, going to that URL directly doesn't show the image either.
Action: change .tmpl back to point to original image (/img/favicon.png), overwrite original with the new image. I tried this with the main lg-gogs.png logo too.
Result: page loads with broken image icon just like before.
A grep search for image name revealed that only the .tmpl I modified and config.codekit are mentioning it (and I'm not at all familiar with CodeKit, but the instructions claim that it's only relevant for git, not me, and to leave the file alone, although it seems to profile names and sizes of all images - however I don't see anything else on the server reference this codekit file).
I have no idea why changes to css and tmpl work fine, but images cause this unexpected result. Does anyone have an idea of what's going on, why the server isn't accepting the images?

Three.js Example code, from StackOverflow, not working

I copied and pasted the Three.js code given here into an HTML file and downloaded the three.js package from the website, and configured the <script> tag to point to the location of the file three.min.js.
Nonetheless, when I open the HTML file, it displays a blank white screen.
What am I missing?
well I tryed the exact same thing and I'm seeing the wireframe cube rotating on screen. A few things to try.
1) drop the three.min.js right in the root folder and copy/paste the example code again without any alterations.
2) did you get the three.min.js from the zip package under the build directory? Or did you navigate the git repo and copy/paste it? If copy/paste was used be sure to click the "Raw" button to get the code without the wrapper HTML.
3) try the latest Firefox or Chrome browsers first. If it works there but not in say Safari, there are a few steps you need to take to enable WebGL in Safari first.
4) your video card may be blacklisted due to driver incompatibilities.
If none of these help, then post up the code, where you got the Three.js package, what browser and video card your using and I'll see what else I can do to help :)
I had the same problem. Windows hides the file extensions by default. I change it in folder options and it worked.

WordPress Media Library is invisible

I'm encountering a really frustrating problem with WordPress and I hope someone can help. Images are uploading to WordPress correctly (they are in the library) but once a file is uploaded there is simply a blank screen. Closing and reopening the "Add an Image" window, I still cannot add them to posts unless I enter the full URL because the "Media Library" tab simply doesn't show anything (see below - interface shows there are 33 images and 4 tabbed pages, but none of them are displayed.
I've about reached the end of my rope trying to fix this problem. Searched and searched and can find no answer. Some people had similar problems, and I tried all of their posted solutions, including:
Uninstalled all plugins
Nuked and reinstalled all wordpress files
Checked browser versions (occurring in Chrome 7.0.5 and FireFox 3.2)
No JavaScript errors found (used Firebug and Chrome's JS panel)
Checked domain name in Settings for improper capitalization
Checked image URL to make sure there was no gibberish, and there isn't
Does anyone have any suggestions (I'm running version 3.0.2 on Apache)? I'd be forever in your debt. Thank you!
Oops, it won't let me post an image because of 'spam protection.' Drats!
Check this: WordPress › Support » Image/Media Uploader problems?
Who is your web host? How much php memory are you allocated? Is GD library for php installed?

Resources