From 0555b2cd77986d916968f1443e375fad005c8d43 Mon Sep 17 00:00:00 2001 From: pdp8 Date: Mon, 4 Mar 2024 23:13:40 +0100 Subject: html.rb separated, Makefile for website generation --- file.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 file.rb (limited to 'file.rb') diff --git a/file.rb b/file.rb new file mode 100755 index 0000000..d9bfe78 --- /dev/null +++ b/file.rb @@ -0,0 +1,12 @@ +#!/usr/bin/env ruby +require_relative 'lib' + +path = ARGV[0] +basename = File.basename(path, File.extname(path)) +html = File.read(File.join(SNIPPETS, 'head.html')) +html += nav basename +html += "
" +html += File.read(path) +html += '
' +html += File.read(File.join(SNIPPETS, 'tail.html')) +print_html basename, html -- cgit v1.2.3