Code Monkey home page Code Monkey logo

octopress's People

Contributors

aarongustafson avatar axiac avatar bendoerr avatar darkhogg avatar duckpuppy avatar elbowdonkey avatar fhemberger avatar gisikw avatar haacked avatar imathis avatar lukearmstrong avatar mikl avatar ndbroadbent avatar omo avatar parkr avatar pfista avatar pilif avatar pw avatar rslifka avatar rwdaigle avatar rythie avatar samwhited avatar sjml avatar sp3c73r2038 avatar tgray avatar tomhoover avatar treyhunner avatar vyper avatar yous avatar zlu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

octopress's Issues

Non standard SSH port

I'm trying to use rsync to deploy but I have a non standard SSH port. I tried using the -e option in the rync command on line 139 but no luck. Any help is appreciated.

Having difficulty running rake preview

I'm new to Jekyll (trying to set up my first blog), and it looked like octopress would be a great way to do it because of compass support. However, rake preview won't work, as it won't create the server. I guess I can always go to jekyll itself but octopress seemed like a really great alternative. Here's what happens:

>>> Generating site files <<<
Configuration from ./_config.yml
Using Sass for CSS generation
You must have the haml gem installed first
Using rdiscount for Markdown
Building site: source -> site
/Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:43:in `transform': uninitialized constant     Jekyll::Convertible::Haml (NameError)
    from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/layout.rb:25:in `initialize'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in `new'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in `read_layouts'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:in `each'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:in `read_layouts'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:125:in `process'
from /Library/Ruby/Gems/1.8/gems/henrik-jekyll-0.5.2/bin/jekyll:135
from /Library/Ruby/Gems/1.8/bin/jekyll:19:in `load'
from /Library/Ruby/Gems/1.8/bin/jekyll:19
mv: rename site/atom.html to site/atom.xml: No such file or directory
>>> Site Generating Complete! <<<

>>> Refresh your browser <<<
Serve is not running
cd site
Starting serve...FAILED
cd -
>>> Watching for Changes <<<

Thanks. Any ideas?

codeblock plugin crashes

Hi Brandon,

I'm new to Octopress and am loving it so far. I may have found an issue with the codeblock plugin. Whenever I add the following codeblock to a post after having done rake preview, jekyll crashes. I think it is trying to interpret the .bashrc string as a language context but barfs because there is no such language context.

Anyway, I can get around it by removing the .bashrc from the string, but I thought you should know about it.

{% codeblock Append this to your .bashrc file. %}
echo "User .bashrc..."
for i in ~/.env/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done
unset i
{% endcodeblock %}

Cheers,

-- Midwire

3 step instruction in README does not work due to missing rake dependency in Gemfile

When trying out octopress, I stumbled the following problem: The current version of octopress uses bundler to bundle the dependecies, but still forks out to system wide installed binaries in the Rakefile - which, in my case, means that I'm calling the wrong version of jekyll for example.

This is easily fixable with the help of Bundler: Add rake as a bundler dependecy and then execute rake tasks with "bundle exec rake" instead. Bundler will then set the PATH in the rake subshell so that the bundled executables are preferred. (At least that's how I understood it, I got some twitter help from wycats himself)

Feel free to pull the very small changeset from halfbyte/octopress. I added rake as a dep and made a small change to the readme. Of course, ideally, the docs in the Wiki should be adapted as well.

Using haml on asides

Hi! I've tried octopress and I really like it.

However, I would like to write my asides using Haml instead of plain HTML. Is this possible? I've tried renaming the file to asides/about.haml and asides/about.html.haml but the haml never gets interpreted.

Thank you!

Issues with Ruby 1.9.2

When trying to run with 1.9.2 I got
rvm/gems/ruby-1.9.2-p0/gems/henrik-jekyll-0.5.2/lib/jekyll/core_ext.rb:27:in method_missing': undefined methodinclude' for #<ClosedStruct site=#<ClosedStruct related_posts=[<Post: /blog/2010/04/30/hdhomerun-wire-protocol>

Had to revert back to 1.8.7

undefined methods from _helpers.rb

I'm somewhat new to Octopress, and I'm not entirely sure where these problems are occurring. My approach was to clone the repository and immediately generate the basic test posts.

bash$ git clone git://github.com/imathis/octopress.git 
bash$ cd octopress
bash$ rake generate

Here's a list of the errors in order of occurrence:

  1. (haml):5:in 'include': undefined method 'ordinalize' for 13:Fixnum (NoMethodError)
  2. undefined method `include' for #<ClosedStruct... blah, blah, blah
  3. undefined method `rp' for #<ClosedStruct... blah, blah, blah

First: ordinalize

This is the bug mentioned here: http://github.com/imathis/octopress/issues#issue/5
That resolution still works.

Second: include

I believe this is the closed issue mentioned here: http://github.com/henrik/jekyll/issues/closed#issue/4

There are several template files in Octopress that are affected by this, and once you convert them to the liquid format, they no longer complain. This may resolve the problems, but I'm not sure since I didn't get it working in the end.

Third: rp and other methods from _helper.rb

I don't know of the resolution to this bug, but it appears that there are several functions from the _helpers.rb file that aren't properly included or required somewhere. If you simply remove all the occurrences of rp, then absolute_url will complain. Similarly, if you do a rake post["This is my awesome post"] from the command line, then you'll get an error about titlecase, which is part of the _helpers.rb file.

I love the idea behind Octopress. Please let me know how I can help resolve these issues.

Mobile navigation not working

The main navigation (in navigation.html) list has role=main-navigation but the getNav function (in octopress.js) is looking for role=main-nav on line 4.

Changing one so they match populates the drop down list.

codeblock: a way to specify highlighting w/o a caption

I'm writing some code that needs to be run in the same file, but is broken down into different blocks. Since individual code blocks sometimes won't run by themselves because they're dependent on earlier code, it doesn't make sense for me to give them a filename. I'd also prefer not to give them a caption. I want them highlighted, though. I made the plugin check to see if a file is just an underscore plus the extension (_.js for instance) and if it is, set the caption to empty but keep the other variables the same. Here's my modified code at the end of my initialize function:

      if @file =~ /\S[\S\s]*\.(\w+)/
        @filetype = $1
        if @file =~ /_\.(\w+)/
          @caption = nil
        end
      end

I'd really like to have the github markdown triple-backquotes followed by a language work, but this would require a filter before it gets passed to liquid, I think.

error running rake generate

/opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:43:in transform': uninitialized constant Jekyll::Convertible::Haml (NameError) from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/layout.rb:25:ininitialize'
from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in new' from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:inread_layouts'
from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:in each' from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:inread_layouts'
from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:125:in process' from /opt/ree/lib/ruby/gems/1.8/gems/henrik-jekyll-0.5.2/bin/jekyll:135 from /opt/ree/lib/ruby/gems/1.8/bin/jekyll:19:inload'
from /opt/ree/lib/ruby/gems/1.8/bin/jekyll:19
mv: cannot stat `site/atom.html': No such file or directory

Site Generating Complete! <<<

The only thing generated is the stylesheets.

Missing Haml in Gemfile

When I try to run rake generate. It gave me this error message:

/Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:43:in `transform': uninitialized constant Jekyll::Convertible::Haml (NameError)
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/layout.rb:25:in `initialize'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in `new'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:141:in `read_layouts'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:in `each'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:139:in `read_layouts'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:125:in `process'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/gems/henrik-jekyll-0.5.2/bin/jekyll:135
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/bin/jekyll:19:in `load'
from /Users/leo/.rvm/gems/ruby-1.8.7-p302@octo/bin/jekyll:19
mv: rename site/atom.html to site/atom.xml: No such file or directory
>>> Site Generating Complete! <<<

Problem fixed if I add gem 'haml' in the Gemfile

RedCloth 4.2.7

If you use "bundle install", RedCloth 4.2.7 will be installed, which can lead to the following compile error:
"error: varialbe 'act' set but not used"
because of -Werror the compile will stop.

To fix: use version 4.2.3 in Gemfile:
gem 'RedCloth', '4.2.3'

How to deploy to github subdomain

Hi, I cloned it, added sample posts and pushed to username.github.com repo.
According to the pages, when I push it to username.github.com repo, the site should be shown at http://username.github.com right?
But this doesn't work? Is this due to all the files is generated in site folder and the _config.yml file config isn't working on github subdomain page??

atom.xml does not include title to the feed.

As this is a really tiny fix I have not created a formal pull request.

In octopress/.themes/classic/source/atom.xml on line 7 the output filter reads {{ site.blog_title }}, but _config.yml only includes "title". Thus, atom feeds are never generated with titles.

In my local copy I changed atom.xml to read {{ site.title }} but perhaps you want to add "blog_title" to _config.yml.

Thanks.

tags and/or categories | feature request

can we have them? otherwise a blog has no feature for navigation.

i've tried jekyll and then move to nanoc in order to have tags and categories, with this feature octopress would be the default blogging platform for many.

thanks, and congrats for the good work

spawn.h: No such file or directory, Octopress in Cygwin

I installed ruby, rvm in cygwin. When I install octopress get the following error:

Installing posix-spawn (0.3.6) with native extensions / usr/lib/ruby/site_ruby/1.8/rubygems/installer.rb: 543: in `build_extensions': ERROR: Failed to build gem native extension. (Gem:: Installer:: ExtensionBuildError)

     / usr / bin / ruby.exe extconf.rb

Creating Makefile

make
gcc-I. -I/usr/lib/ruby/1.8/i386-cygwin -I/usr/lib/ruby/1.8/i386-cygwin-I. -g-O2-Wall-c-spawn.c posix
posix-spawn.c: 9:19: spawn.h: No such file or directory

Question on Themes

I see documentation on http://octopress.org/docs/theme/ - but should we be creating our own themes over making updates over what's in the classic theme? In looking at the configuration file, I don't see how to set a theme, so I'm guessing this is something that's evolving, correct?

Thor as an alternative to Rake

Hi,

It seems Thor would be a nice alternative to Rake, for it would allow simpler (?), more standard (?) commands :

thor new:post "my blog post" --categories=ruby jekyll

Without any testing, just for the sake of the example, this would be implemented with something like this:

class New < Thor
  desc "new_post FILE", "create a new blog post"
  method_option :categories, :aliases => "-c", :type => :array, :desc => "Categories of the post"
  def new_post(title)
    generated_at = Time.now.strftime('%Y-%m-%d %H:%M')
    filename = generated_at + "-" + title + ".markdown"
    puts "Creating new post: #{filename}"
    puts "Categories: #{options[:categories].join(', ')}"
    # … and so on
  end
end

If you are interested, I may provide the patch. Just a suggestion, not a request :)

Feed title requires setting `blog_title`

I noticed that the atom.xml title attribute wasn't set by default. It looks for site.blog_title, while everything else uses site.title. I like that you can make the site title and the feed title different, but I think this should be cleared up in the docs and the default _config.yml.

How to - to deploy ocotopress to heorku

Given my jekyll site just worked on heroku (as long as I pushed the static files) - I thought octopress would work as well, but it doesn't -

Is there a recipe or any guidance on how to deploy to heroku, given heroku's constraints?

Undefined mixin 'border-top-radius'

This error occurs during 'rake generate'

Looks like this mixing is being called on line 2 of partials/_syntax.sass but I'm not sure where it is supposed to be defined.

I'm on compass 0.8.17 and compass-colors 0.3.1

error with rake generate

$rake generate

Generating Site with Jekyll

/Users/eddie/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in parse': couldn't parse YAML at line 42 column 0 (Psych::SyntaxError) from /Users/eddie/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:inparse_stream'
from /Users/eddie/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in parse' from /Users/eddie/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:106:inload'
from /Users/eddie/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:205:in load_file' from /Users/eddie/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:119:inconfiguration'
from /Users/eddie/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:207:in <top (required)>' from /Users/eddie/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:inload'
from /Users/eddie/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `

'

OS: Mac OSX 10.7

syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '(' gem 'henrik-jekyll'

Getting an error with rake preview:

rake preview
(in /home//octopress)
rake aborted!
compile error
/home/octopress/Gemfile:6: syntax error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
gem 'henrik-jekyll'
^
/home/octopress/Rakefile:3
(See full trace by running task with --trace)

At first there was a problem with active-support 2.3.5 so I took that out of the gem file because I have active support 3.0.7.

Sass deprecation

The default stylesheets are all deprecated, so plenty of warnings are thrown on rake generate

henrik-jekyll

Is Henrik's fork of Jekyll still a dependency (as stated in the readme) or has markdown support been merged upstream?

The reason I ask is that henrik-jekyll is not available on gemcutter (rubygems.org), and GitHub won't be serving gems for much longer.

`rake preview` fails on vanilla install

Hi,

I'm just trying to get Octopress working according to the instructions. I've installed everything and cloned the repo, and then I try to run rake preview and I get the following: http://gist.github.com/400748

It looks like it's not generating the site directory correctly. Am I doing something obviously wrong?

Information disclosure in Rakefile

While the rake file does not contain a password for rsync deployment, it does disclose your ssh username and path information about the configuration of your server. The Rakefile is available in your repo, which for most folks is public. I don't think this is a glaring security bug, but it's an information disclosure I'm not 100% comfortable with. For some folks, it could be indirectly expositing their email addresses for all to find.

How about moving connection information into a separate config file that is git ignored? Provide a rake task (rake rsync-config ?) to generate this configuration file. If rake deploy is run without that configuration in place, it should automatically kick off the config rake task.

What do you think? Is this solution worth pursuing or is there a better way to go about it?

JWPlayer CRLF issue

I'm sure this is probably a better question for the JWPlayer guys or a git forum, but after following most of the install instructions on octopress.org/docs/setup, when I get to 'What to Commit' and attempt to run git add . I get the following error:

fatal: CRLF would be replaced by LF in source/assets/jwplayer/glow/glow.xml

My core is set to
--global core.autocrlf true

Any ideas?

New setup with rvm: Unknown switches '--binstubs=/bin'

Following along with the install I ran the following commands as per the setup page:

rvm rvmrc trust
bundle install

The rvm rvmrc trust line ran just fine, but running bundle install produced the following error:

Unknown switches '--binstubs=/bin'

I'm pretty sure this is caused by rvm not having the proper ruby to work with from .rvmrc.

I opened up a new shell and the bundle install ran fine from there. This should fix the problem for anyone else:

rvm rvmrc trust
rvm reload
bundle install

Sites Render Differently in IE8 Depending On URL (www or no www)

I ran into this on my personal site and can confirm it occurs on other sites listed on the wiki.

Description
When a site is viewed in ie8 with the www url, the layout of the site appears broken. You can see an example screenshot here: http://dev.devpatch.com/octopress-issue.png

Steps To Reproduce
Use IE8 and go to http://devpatch.com and then http://www.devpatch.com You can also try this with http://zanshin.net/

Notes
I suspect this is caused by respond.js not calling in the stylesheet via ajax when www is used. On octopress.org there is a 301 redirect from www.octopress.org to octopress.org which is why (i suspect) this is not seen there.

I figured I would post this here and not on respond.js just in case something else funky is going on.

[BUG] Segmentation fault ruby

Hi,

I'm trying to play with ocotpress but each time I try to update my public directory with "[BUG] Segmentation fault
ruby" I have an error. Here's the rapport:

/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix_spawn_ext.bundle: [BUG] Segmentation fault
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin10.8.0]

-- control frame ----------
c:0020 p:-542131730 s:0070 b:0070 l:000069 d:000069 TOP   
c:0019 p:---- s:0068 b:0068 l:000067 d:000067 CFUNC  :require
c:0018 p:0025 s:0064 b:0064 l:000063 d:000063 TOP    /Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:2
c:0017 p:---- s:0062 b:0062 l:000061 d:000061 FINISH
c:0016 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC  :require
c:0015 p:0011 s:0056 b:0056 l:000055 d:000055 TOP    /Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix-spawn.rb:1
c:0014 p:---- s:0054 b:0054 l:000053 d:000053 FINISH
c:0013 p:---- s:0052 b:0052 l:000051 d:000051 CFUNC  :require
c:0012 p:0011 s:0048 b:0048 l:000047 d:000047 TOP    /Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/albino-1.3.3/lib/albino.rb:1
c:0011 p:---- s:0046 b:0046 l:000045 d:000045 FINISH
c:0010 p:---- s:0044 b:0044 l:000043 d:000043 CFUNC  :require
c:0009 p:0138 s:0040 b:0040 l:000039 d:000039 TOP    /Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:27
c:0008 p:---- s:0038 b:0038 l:000037 d:000037 FINISH
c:0007 p:---- s:0036 b:0036 l:000035 d:000035 CFUNC  :require
c:0006 p:0072 s:0032 b:0032 l:000031 d:000031 TOP    /Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:20
c:0005 p:---- s:0013 b:0013 l:000012 d:000012 FINISH
c:0004 p:---- s:0011 b:0011 l:000010 d:000010 CFUNC  :load
c:0003 p:0127 s:0007 b:0007 l:0014e8 d:000e10 EVAL   /Users/macbook/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0014e8 d:0014e8 TOP   
---------------------------
-- Ruby level backtrace information ----------------------------------------
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `<main>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/bin/jekyll:19:in `load'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:20:in `<top (required)>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/bin/jekyll:20:in `require'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:27:in `<top (required)>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/jekyll-0.11.0/lib/jekyll.rb:27:in `require'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/albino-1.3.3/lib/albino.rb:1:in `<top (required)>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/albino-1.3.3/lib/albino.rb:1:in `require'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix-spawn.rb:1:in `<top (required)>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix-spawn.rb:1:in `require'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:2:in `<top (required)>'
/Users/macbook/.rvm/gems/ruby-1.9.2-p290/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:2:in `require'

-- C level backtrace information -------------------------------------------

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

It's strange because when I try an other rake as "rake new_post[“title”]" to create a new post it works…
Any idea where this might come from ?

Thanks for your help.

Rake preview aborts with "no such file to load -- source/_helpers"

Hey all,

First, thanks for building and releasing this - I'm very excited to move my personal blog/website over to octopress. Anyways, yesterday I cloned the directory over, setup a gemset using 1.9.2, installed using bundler (had to install a -pre version of mongrel) and when I got to the rake preview part, I got the following error: http://d.pr/qYKh

Any ideas what I need to do?

Best,
Dan

Problems getting the current state running

I cloned the repo and installed the dependencies mentioned in the wiki, but I can't get octopress to generate the site files. After fixing some deprecation warnings concerning sass the stylesheets are being generated, but generating the site throws this error:

Generating site files <<<
Configuration from ./_config.yml
You must have the haml gem installed first
Using rdiscount for Markdown
Building site: source -> site
/Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/core_ext.rb:27:in method_missing': undefined methodinclude' for #<ClosedStruct site=#<ClosedStruct categories={}, topics={}, tags={}, posts=[<Post: /2009/11/13/hello-world>], related_posts=[], time=Tue May 25 13:20:56 +0200 2010>, content="

Octopress is a blogging framework designed for hackers, based on <a href="http://github.com/mojombo/jekyll\">Jekyll the blog aware static site generator powering <a href="http://pages.github.com/\">Github pages.\nIf you don't know what Jekyll is, <a href="http://metajack.im/2009/01/23/blogging-with-git-emacs-and-jekyll/\">Jack Moffitt wrote a good summary:

\n\n

Jekyll is a static blog generator; it transforms a directory of input files into another directory of files suitable for a blog. The management of the blog is handled by standard, familiar tools like creating and renaming files, the text editor of your choice, and version control.
\nJack Moffitt <a href="http://metajack.im/2009/01/23/blogging-with-git-emacs-and-jekyll/\">Blogging with Git Emacs and Jekyll

\n\n

There's no database to set up, and you get to use tools like Emacs, vim, or TextMate to write your posts, not some lame in-browser text editor. Just write, generate, deploy, using the same tools and patters you already use for your daily work.

\n\n

<a href="http://wiki.github.com/imathis/octopress/\">Read the wiki to learn more

\n", page=#<ClosedStruct disqus_short_name=nil, show_replies=false, path="/Users/dbloete/Sites/devotedtopractice/source/_posts/2009-11-13-hello-world.markdown", content="\nOctopress is a blogging framework designed for hackers, based on Jekyll the blog aware static site generator powering Github pages.\nIf you don't know what Jekyll is, Jack Moffitt wrote a good summary:\n\n> Jekyll is a static blog generator; it transforms a directory of input files into another directory of files suitable for a blog. The management of the blog is handled by standard, familiar tools like creating and renaming files, the text editor of your choice, and version control. \n> Jack Moffitt Blogging with Git Emacs and Jekyll\n\nThere's no database to set up, and you get to use tools like Emacs, vim, or TextMate to write your posts, not some lame in-browser text editor. Just write, generate, deploy, using the same tools and patters you already use for your daily work.\n\nRead the wiki to learn more", url="/2009/11/13/hello-world", categories=[], date=Fri Nov 13 00:00:00 +0100 2009, delicious_user=nil, tweet_count=3, next=nil, topics=[], google_analytics_tracking_id=nil, title="Hello World! I'm Octopress!", author=nil, twitter_user=nil, layout="blog_post", tags=[], full_url=nil, blog_title="My Octopress Blog", id="/2009/11/13/hello-world", google_custom_search_id=nil, updated="March 10th, 2010", delicious_count=3, previous=nil>> (NoMethodError)
from (haml):5:in render' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/haml-3.0.6/lib/haml/engine.rb:173:inrender'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/haml-3.0.6/lib/haml/engine.rb:173:in instance_eval' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/haml-3.0.6/lib/haml/engine.rb:173:inrender'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:72:in render_haml_in_context' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/convertible.rb:105:indo_layout'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/post.rb:226:in render' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:172:inread_posts'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:in each' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:171:inread_posts'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:210:in transform_pages' from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/../lib/jekyll/site.rb:126:inprocess'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/gems/henrik-jekyll-0.5.2/bin/jekyll:135
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/bin/jekyll:19:in `load'
from /Users/dbloete/.rvm/gems/ruby-1.8.7-p249/bin/jekyll:19
mv: rename site/atom.html to site/atom.xml: No such file or directory
Site Generating Complete! <<<

It also mentions that I should install HAML ("You must have the haml gem installed first") which I did - seems kinda odd.

I'd be really thankful if you could provide help for that :)

Blank lines removed in code blocks

If I have some code with blank lines like so:

'''coffeescript
    Tweets = 1

    module.exports = Tweets
'''

when it's rendered, the blank line is removed like so:

1. Tweets = 1
2. module.exports = Tweets

As you can see, the blank line is erroneously removed. The output should be:

1. Tweets = 1
2.
3. module.exports = Tweets

Serve fails silently

I encountered some issues with the Serve gem (and I'll throw notifications out on that project). But! Octopress reported "Starting serve...OK", when no valid process was running. Can there be some sort of validation, since any error messages spawned by the Serve gem are swallowed?

missing 'thread' dependency

Hi,

I've tried 'rake preview' after cloning the repository but got the following error.

~/project/octopress$ rake preview
(in ~/project/octopress)
rake aborted!
uninitialized constant ActiveSupport::Dependencies::Mutex
~/project/octopress/Rakefile:5:in `require'

Looked on the web and found out that it seems related to the RubyGem version (I'm using 1.6.2).

I locally fixed it by adding
require "thread"
at the top of the octopress Rakefile.

I guess activesupport should fix this issue, but since octopress gemfile specifies a specific version of activesupport, maybe this would be a simple way to solve the issue for octopress.

Felix

Sample sites and source to octopress.org

Maybe I'm missing this, but are there sample blogs built with Octopress and the source to generate them? Is the source for octopress.org available. I'm new to Jekyll, etc. and examples are a good way to start.

Couldn't get a file descriptor referring to the console

I get this error, starting the server:
lsoave@ubuntu:/rails/tests/octopress$ rake start_serve
(in /home/lsoave/rails/tests/octopress)
Stoping serve...OK
cd site
Starting serve...OK
Couldn't get a file descriptor referring to the console
cd -
lsoave@ubuntu:
/rails/tests/octopress$

Changing port in _config.yml doesn't take effect

Changing the port config variable in _config.yml doesn't have any effect when running rake preview:

$ git diff _config.yml 
...
-port: 4000
+port: 4001
...
$ rake preview
...
Configuration from /.../octopress/_config.yml
...
[2011-08-03 19:37:56] INFO  WEBrick::HTTPServer#start: pid=16432 port=4000

Additional gems needed

It appears that gems for active_support, color-compass, and rdiscount are also needed for Octopress to work.

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.