File tree Expand file tree Collapse file tree 1 file changed +17
-13
lines changed
Expand file tree Collapse file tree 1 file changed +17
-13
lines changed Original file line number Diff line number Diff line change 143143 (aref candidate-value 0 ))))
144144 path-list)))
145145
146- (defun find-markdowns (path-list)
146+ (defun find-htmls (path-list)
147147 (remove nil
148148 (mapcar
149149 #' (lambda (path)
150150 (multiple-value-bind
151151 (filename part)
152- (cl-ppcre :scan-to-strings " \(\. +\) .md $" path)
152+ (cl-ppcre :scan-to-strings " \(\. +\) .html $" path)
153153 filename))
154154 path-list)))
155155
170170(defun build-files ()
171171 (build-git-hash-file)
172172 (loop for file in (find-file-prefixes (ls))
173- do
174- (format t " ~& articulating ~a into the final form...~& " file)
175- (build-a-file file))
176- (when (find :unix *features* )
177- (dolist (file (find-markdowns (ls)))
178- (external-program :run " cp" (list file
179- (cl-ppcre :regex-replace-all
180- " ~"
181- file
182- " :" )) )))
173+ do
174+ (format t " ~& articulating ~a into the final form...~& " file)
175+ (build-a-file file)
176+ ; ; Convert to `:` format when on Unix, i.e., a build machine.
177+ (when (find :unix *features* )
178+ (let ((args (list (format nil " site/~a .html" file)
179+ (format nil " site/~a .html"
180+ (cl-ppcre :regex-replace-all
181+ " ~"
182+ file
183+ " :" )))))
184+ (external-program :run " cp" args))))
185+
183186 (format t " ~& final reticulation...~& " )
184- (external-program :run " cp" ' (" -r" " src" " site/" ) ))
187+ ; ; Get the static content over.
188+ (external-program :run " cp" ' (" -r" " src" " site/" )))
You can’t perform that action at this time.
0 commit comments