summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2023-10-04 14:25:15 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2023-10-04 14:25:15 +0200
commit94a68dffff741be5ed45adcb37d453773f13c6fe (patch)
tree24e43964e86fc56220c8fe2bd964dcbda20d7bb2 /scripts
parent20f86d289bdb8cbdc622a500f4b96aff9e87ec45 (diff)
Make project structure and builder script
Diffstat (limited to 'scripts')
-rw-r--r--scripts/create.scm9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/create.scm b/scripts/create.scm
new file mode 100644
index 0000000..6f7f549
--- /dev/null
+++ b/scripts/create.scm
@@ -0,0 +1,9 @@
+(define-module (scripts create)
+ #:use-module ((src atom) #:prefix atom:)
+ #:use-module ((src html) #:prefix html:)
+ #:use-module (src as))
+
+(define root (canonicalize-path (cadr (command-line))))
+
+(define atom-feed (atom:render (as 'atom root)))
+(define html-index (html:render (as 'html root)))