For each plantuml block, there are two png files generated, one is correct and the another is showing a 'Syntax error' message from plantuml. But browsing the generated site, no matter index page or single blog page, the graph is correct. The incorrect png file isn't referenced in any page.
To trace the cause, I put two lines into plantuml.rb to print debug information:
The code passed in has been rendered into HTML, so plantuml reported syntax error.
The third time is same as the second time. Because the code is same as the second time, there is no graph generated.
Following the stack trace, I found the different is in jekyll-0.12.0/lib/jekyll/site.rb.
def render
payload = site_payload
self.posts.each do |post|
post.render(self.layouts, payload)
end
self.pages.each do |page|
page.render(self.layouts, payload)
end
self.categories.values.map { |ps| ps.sort! { |a, b| b <=> a } }
self.tags.values.map { |ps| ps.sort! { |a, b| b <=> a } }
rescue Errno::ENOENT => e
# ignore missing layout dir
end
The first call (normal one) is from post.render() and the second and third calls (wrong) are from page.render().
I don't think it is the fault of this plugin. But I just know very little Ruby and don't know Jekyll, so I have no more idea. Record it here to check if anybody meets the same issue.
For each plantuml block, there are two png files generated, one is correct and the another is showing a 'Syntax error' message from plantuml. But browsing the generated site, no matter index page or single blog page, the graph is correct. The incorrect png file isn't referenced in any page.
To trace the cause, I put two lines into
plantuml.rb
to print debug information:First time:
Second time:
The code passed in has been rendered into HTML, so plantuml reported syntax error.
The third time is same as the second time. Because the code is same as the second time, there is no graph generated.
Following the stack trace, I found the different is in
jekyll-0.12.0/lib/jekyll/site.rb
.The first call (normal one) is from
post.render()
and the second and third calls (wrong) are frompage.render()
.I don't think it is the fault of this plugin. But I just know very little Ruby and don't know Jekyll, so I have no more idea. Record it here to check if anybody meets the same issue.