./documentation/page in freespeech-1.0.79 vs ./documentation/page in freespeech-1.0.82

- old
+ new

@@ -91,11 +91,10 @@ nav_text = "<a href='javascript:window.scrollTo(0,0);'>Top</a><br><br>" #=0 index_ = 0 LST.each_with_index do |i, index| next if i =~ /black|blue|cyan|green|magenta|red|white|yellow|linux|bold|underline|.txt|(?:(?:GENERATOR|left_right)$)/i - orig = i _d = "../documentation/#{orig}" next if test "d", i i = (i2 = i.capitalize_all).gsub("Uca Cli", "UCA CLI") @@ -138,46 +137,47 @@ end a = "<div class=inner>#{a}</div>" a = <<~EOF - <!DOCTYPE html> - <html> - <head> - <meta charset="UTF-8"> - <title>Democracy</title> - <meta name="viewport" content="width=device-width, initial-scale=1"/> - <style type=text/css> - b, a { + <!DOCTYPE html> + + <html> + <head> + <meta charset="UTF-8"> + <title>Democracy</title> + <meta name="viewport" content="width=device-width, initial-scale=1"/> + <style type=text/css> + b, a { - text-shadow:0px 0px 0px black; - color:#009900; - } + text-shadow:0px 0px 0px black; + color:#009900; + } - h1, h2 { - color: #009900; - } + h1, h2 { + color: #009900; + } - .header { - box-shadow: none; - padding-top: 30px; - margin-top: 20px; - margin-bottom: 20px; + .header { + box-shadow: none; + padding-top: 30px; + margin-top: 20px; + margin-bottom: 20px; - } + } - body { - z-index: 0; - } + body { + z-index: 0; + } - .cd1 { - display:block; - z-index: 1; - } + .cd1 { + display:block; + z-index: 1; + } - .cd2 { - background-color:#{BACKGROUND_COLOR}; + .cd2 { + background-color:#{BACKGROUND_COLOR}; color:#{BG}; width:50%; display:inline-block; text-align:left; z-index: 1; @@ -407,17 +407,17 @@ # puts Dir.pwd d << subbed.gsub(/!\[.+?\]\((.+?)\)/) do |_i| inum += 1 if ARGV[0] != "min" # puts 'Image' - src=File.expand_path("../#{Regexp.last_match(1)}") + src = File.expand_path("../#{Regexp.last_match(1)}") unless src.include? "http" - puts "#{src}" - src = src.generate_image_data - "<a href=\"javascript:#{make_big inum}\"><img style=width:100% class=imgs id=\"img#{inum}\" src=#{src} style='width:50%'></a><br><br>" + puts "#{src}" + src = src.generate_image_data + "<a href=\"javascript:#{make_big inum}\"><img style=width:100% class=imgs id=\"img#{inum}\" src=#{src} style='width:50%'></a><br><br>" else - "" + "" end end end end @@ -446,10 +446,10 @@ a.close File.open "../README.md", "w" do |file| file << ("<h1 style='color: green'>" << lines[0] << " " << lines[1] << "</h1>" << ("\n " * 2)) v = "Fx9x8cArK30" -# file << "[![Video](https://img.youtube.com/vi/#{v}/maxresdefault.jpg)](https://www.youtube.com/watch?v=#{v}) " + # file << "[![Video](https://img.youtube.com/vi/#{v}/maxresdefault.jpg)](https://www.youtube.com/watch?v=#{v}) " file << ("\n " * 5) file << rest.sub(/all\s*still/m, "all still").sub(/IFRAME.+?\n/, "").gsub(/\[\d+\]/, "").each_line.reject do |line| line.match(%r{(file:/{3})|javascript:window}) end.join