Closed waynedpj closed 10 years ago
Post your config.yml
Ruhoh is trying to process your theme folder as a "pages" collection by default. This is a known problem and admittedly very annoying. I need to change the documentation and make things more automatically discoverable (in progress but haven't updates the ruhoh version).
config.yml should look like this:
"theme-bootstrap-2":
"use" : "theme"
# note if you have an old theme in the same directory you need to "ignore" it.
"old-theme"
"use" : "ignore"
restart the server for changes to take affect:
bundle exec ruhoh s
Can you post your entire (top level) directory listing and your entire config.yml?
sure. tree listing is:
├── config.yml
├── Gemfile
├── Gemfile.lock
├── _root
│ └── index.md
└── theme-bootstrap-2
├── data.yml
├── layouts
│ ├── default.html
│ ├── paginator.html
│ ├── posts.html
│ └── _root.html
├── manifest.json
├── media
│ ├── glyphicons-halflings.png
│ └── glyphicons-halflings-white.png
├── _root
│ ├── archive.html
│ ├── categories.html
│ ├── index.html
│ ├── pages.html
│ └── tags.html
└── stylesheets
├── bootstrap.min.css
├── google_prettify
│ ├── default.css
│ ├── desert.css
│ ├── sons-of-obsidian.css
│ ├── sunburst.css
│ └── twitter-bootstrap.css
└── style.css
7 directories, 24 files
and config.yml is
$ more config.yml
"theme-bootstrap-2" :
"use" : "theme"
thanks again
actually, after cleaning up white space in config.yml (though same content as above) i am now getting the following error:
$ bundle exec ruhoh server 9292
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
/home/waynedpj/.gem/ruby/1.9.1/gems/ruhoh-2.5/lib/ruhoh/parse.rb:61:in `rescue in yaml': undefined local variable or method `filepath' for Ruhoh::Parse:Module (NameError)
thanks
Well that's stupid of me. I mistyped a variable that tells you where the YAML error is.
Basically, you have invalid YAML somewhere in your files. Can you run your config.yml
, data.yml
and any other files ending in .yml
through http://yamllint.com/. This will ensure your yaml is correct. If those are correct then you need to do that for any pages which have the "YAML metadata" in them. The error is supposed to tell you which file to look in but the variable name is wrong so its breaking right now =/.
thanks again. the only YAML file i have is config.yml which is 2 lines. http://yamllint.com did not like the whitespace before "use", which i changed to 2 spaces, and removed the quotes so that i ended up with
---
theme-bootstrap-2:
use: theme
being valid. fortunately running the server worked this time. thanks again for the help. peace, w
ahoy,
trying out ruhoh for the first time (i was looking for something exactly like this mustache-based, so thanks .. but i am a Ruby Nuby so excuse any "duh?" moments) and i am getting the following error when trying to load up the theme-bootstrap-2 theme:
i am not sure if the file is corrupt (i tried cloning multiple times) or something with my setup is screwy.
i would be happy to provide any more details and would appreciate any pointers/help.
peace, w