lib/Charu/CreateHtml.rb in Charu-0.0.7 vs lib/Charu/CreateHtml.rb in Charu-0.0.8

- old
+ new

@@ -3,49 +3,21 @@ #require 'redcarpet' require "erb" module Charu - class Create_Day - def initialize() - - end - end - - class Create_Days - def initialize() - changelogmemo = Charu::ChangeLogMemo.new() - end - end -end - -module Charu - class Create_Category - def initialize() - - end - end - - class Create_Categorys - def initialize() - changelogmemo = Charu::ChangeLogMemo.new() - end - end -end - -module Charu class PageCounter def initialize() changelogmemo = Charu::ChangeLogMemo.new() @max_page = changelogmemo.article_size_max() p "Page MAX " + @max_page.to_s i = 0 @pages = [] while i <= @max_page do if i == 0 then - @pages << [[i, "index.html", changelogmemo.get_item_sort_reverse(i)]] + @pages << [[i, "index.html", changelogmemo.get_item_sort_reverse(1)]] else @pages << [[i, "index" + i.to_s + ".html", changelogmemo.get_item_sort_reverse(i)]] end p "Page " + i.to_s i = i + 1 @@ -99,14 +71,13 @@ return @keyword.encode!("UTF-8") end def create_body() # くっつける - p "===========" @htmls = [] @page.each{|page, file_name, changelogmemo| - #p page + p "page " + page.to_s + " 作成中" #p file_name @changelogmemo = changelogmemo @html = @header + @body + @footer #p changelogmemo \ No newline at end of file