Code Monkey home page Code Monkey logo

Comments (9)

yihui avatar yihui commented on May 19, 2024

Sorry, I cannot help without a reproducible example, but at least you should ignore Thumbs.db by adding it to ignoreFiles in config.toml:

ignoreFiles = [ "^Thumbs\\.db$" ]

from blogdown.

pssguy avatar pssguy commented on May 19, 2024

Incorporating your suggestion made no difference. i.e error still occurs and folders and files do not get created under public/post

Not sure how to provide a reproducible example. Here is my eplBook.Rmd file

probpublishing

Until there is a solution. can I just manually create the eplBook folder and files directories and add the created html and any figs to them??

BTW as per image, how would I add a post ot more than one category e.g 'books' and 'dashboards'

from blogdown.

yihui avatar yihui commented on May 19, 2024

To provide a reproducible example, you can zip the website and upload here, or create a Github repo. The public should not be edited manually. Changes could be overwritten in the future.

For more categories, use ["books", "dashboards"]. That is YAML syntax. More examples here: https://bookdown.org/yihui/bookdown/r-markdown.html

from blogdown.

pssguy avatar pssguy commented on May 19, 2024

@yihui
Thanks for this. Here is the zipped file of the site
mainWebSite.zip

Everything works smoothly up to and inc 27th Nov post. so eplBook (which has just a title) and exploratoryAnalysis (which includes a notebook) do not appear in public folder when I serve_site(). Incidentally, I have to do latter. I had thought just saving the file activated this or there was a build buttton in RStudio to do it but I could well be mistaken

Also I set up git locally but cannot commit to it. There is (No branch) instead of the usual Master when i I view the review changes. Could this be part of the same problem?

from blogdown.

yihui avatar yihui commented on May 19, 2024

I'm not sure if it is a Hugo bug, but I'd suggest you delete the Thumbs.db files. First take a look at

list.files('.', '^Thumbs[.]db$', recursive = T, full.names = T)

If none of them seems to be useful (typically they are just Windows garbage), you can unlink() them.

I compiled your website on Mac and it works fine for me:

image

from blogdown.

pssguy avatar pssguy commented on May 19, 2024

Thanks for that. I also changed a setting in Windows so hopefully they do recur

Incidentally, did you actually view the website in Mac. The exploratoryAnalysis page shows as a simple page for me i.e no Hugo stuff wrapping it. This happened even when I removed the output: html_notebook
I had experimented with
If you get same error I can raise as separate issue

from blogdown.

yihui avatar yihui commented on May 19, 2024

The exploratory analysis page looks okay to me:

image

from blogdown.

yihui avatar yihui commented on May 19, 2024

I feel I might have misled you somehow by having picked up a fairly complicated Hugo theme (hugo-future-imperfect) as the default in new_site(). Now I have changed the default and used a much simpler theme (hugo-lithium-theme). You can still use hugo-future-imperfect, but I think you will have to read the Hugo documentation a few times as well as the blogdown documentation, which does not exist yet (I'm working on it).

from blogdown.

pssguy avatar pssguy commented on May 19, 2024

FYI an update
I had a look at the index.html file for that post and it had
<meta name="generator" content="pandoc" />
and was extremely large.
All the others were

meta name="generator" content="Hugo 0.17" />

I updated to 0.0.11 (from 0.0.8) and got rid of the nb.html file that was around and for a while that seemed to solve issue.
However, as soon as I started attempting any changes and/or getting rid of unwanted posts I ended up with only three of seven posts appearing and a config.toml file of 6.8kb mainly made of whitespace. I will take your advice and use a simpler theme at least for now and see if that sorts my problems

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.