973ed0c25c17bd77f21d3c632bdf2b4ee2f2a250 — Christoph Frick 10 days ago dfffaa4
Generate links to the tag directories
2 files changed, 7 insertions(+), 1 deletions(-)

M main.fnl
M makefile
M main.fnl => main.fnl +6 -0
@@ 101,6 101,12 @@ [:li {} "The" [:a {:href "/changelog"} "Changelog"]
                   "describes how Fennel has evolved with time."]]
  
+                [:p {} "Looking for other versions?  Docs are generated for:"]
+                (let [version-links [:ul {}]]
+                  (each [i version (ipairs arg)]
+                        (table.insert version-links [:li {} [:a {:href version} version]]))
+                  version-links)
+ 
                 [:h2 {} "Development"]
                 [:p {} "Fennel's repository is on "
                  [:a {:href "https://github.com/bakpakin/Fennel"} "GitHub"]

M makefile => makefile +1 -1
@@ 1,6 1,6 @@ TAGS := $(shell git --git-dir=./fennel/.git tag -l | grep '^[0-9]' | tac)
  
- index.html: main.fnl sample.html ; fennel/fennel main.fnl > index.html
+ index.html: main.fnl sample.html ; fennel/fennel main.fnl $(TAGS) > index.html
  fennelview.lua: fennel/fennelview.fnl ; fennel/fennel --compile $^ > $@
  generate.lua: fennel/generate.fnl ; fennel/fennel --compile $^ > $@