Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
clo
cl-site
Commits
8065c043
Commit
8065c043
authored
May 15, 2018
by
Mariano Montone
Browse files
Build adjustments
parent
b984e2d2
Changes
4
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
8065c043
...
...
@@ -6,4 +6,5 @@ auto-save-list
.\#*
# Output files
output/
\ No newline at end of file
output/
system-index.txt
Makefile
View file @
8065c043
all
:
generate
all
:
build
serve
:
#cd output; python -m SimpleHTTPServer
cd
output
;
python ../server.py
static
:
mkdir
-p
output/static
cp
-rf
content/static/
*
output/static
generate
:
static
build
:
static
sbcl
--load
build.lisp
--non-interactive
clean
:
...
...
build.lisp
View file @
8065c043
(
push
(
uiop:getcwd
)
quicklisp:*local-project-directories*
)
(
ql:quickload
:cl-site
)
(
funcall
(
symbol-function
(
intern
"MAKE-SITE"
:cl-site
)))
(
funcall
(
symbol-function
(
intern
"MAKE-SITE"
:cl-site
))
(
merge-pathnames
"output/"
(
uiop:getcwd
))
)
main.lisp
View file @
8065c043
;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
(
in-package
:cl-site
)
(
defun
make-site
()
(
progn
(
defun
make-site
(
&optional
output-dir
)
(
let
((
*output-dir*
(
or
output-dir
*output-dir*
)))
(
format
t
"Generating site in ~A.~%"
*output-dir*
)
(
process-static
)
(
process-styles
)
(
process-pages
)))
\ No newline at end of file
(
process-pages
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment