File tree Expand file tree Collapse file tree 5 files changed +41
-11
lines changed
Expand file tree Collapse file tree 5 files changed +41
-11
lines changed Original file line number Diff line number Diff line change 1+ < hr />
2+ < footer >
Original file line number Diff line number Diff line change 1- < hr />
2- < footer >
3- < p > © Paul Nathan 2013</ p >
4- < p > < a href ="https://github.com/pnathan/articulate-common-lisp "> Github source</ a > - contributions welcome!</ p >
5- < p > Analytics by < a href ="https://www.quantcast.com/ "> Quantcast</ a >
6- < p > Theme by < a href ="http://twitter.github.com/bootstrap/ "> Twitter Bootstrap</ a >
7- </ footer >
81
9- < center >
2+ < center style ="font-size: x-small ">
3+
4+ < p > © Paul Nathan 2013</ p >
5+ < p > < a href ="https://github.com/pnathan/articulate-common-lisp "> Github source</ a > - contributions welcome!</ p >
6+
107 λ
118</ center >
12- </ div>
13- </ div>
Original file line number Diff line number Diff line change 1+ </ footer>
2+ </ div>
3+ </ div>
Original file line number Diff line number Diff line change 1010(defun generate-command (fn)
1111 (list " -B" " banner.html"
1212 " -B" " content-begin.html"
13+ " -A" " begin-footer.html"
1314 " -A" " content-footer.html"
15+ " -A" " version.html"
16+ " -A" " end-footer.html"
1417 " -A" " quantcast.html"
1518 " -T" " Articulate Common Lisp"
1619 " --template=pandoc-data/templates/default.html5"
2427 " -o" (format nil " site/~a .html" fn)))
2528
2629
30+ (defun build-git-hash-file ()
31+ (let ((hash (first
32+ (split-sequence :split-sequence
33+ #\Space
34+ (with-output-to-string (s)
35+ (external-program :run " git" ' (" show" " -s" " --oneline" )
36+ :output s))))))
37+ (with-open-file (stream
38+ " version.html"
39+ :direction :output
40+ :if-exists :supersede
41+ :if-does-not-exist :create )
42+ (format stream
43+ " ~& <div>~%
44+ <center style=\" font-size=x-small; color:lightgrey\" >
45+ ~% version: ~a~%
46+ </center>~%
47+ </div>" hash))))
48+
2749(defun determine-name (fn)
2850 (subseq fn (1+ (position #\: fn))))
2951
145167
146168
147169(defun build-files ()
170+ (build-git-hash-file)
148171 (loop for file in (find-file-prefixes (ls))
149172 do
150173 (format t " ~& articulating ~a into the final form...~& " file)
Original file line number Diff line number Diff line change @@ -15,4 +15,11 @@ Feedback of all sorts will be gratefully welcomed. Contributions and
1515bug reports should be done via the github location for maximum
1616coordination.
1717
18- Happy hacking!
18+ Happy hacking!
19+
20+
21+ * Credit*
22+
23+ * Analytics by [ Quantcast] ( https://www.quantcast.com/ )
24+
25+ * Theme by [ Twitter Bootstrap] ( http://twitter.github.com/bootstrap/ )
You can’t perform that action at this time.
0 commit comments