aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxj92019-11-04 14:01:17 -0700
committerxj92019-11-04 14:01:17 -0700
commit3f63c6c6f2bcf92735baa6461e4fbcfd5932955f (patch)
tree351b795ef62a80c0f15d430706db6869f1809a0a
parent9226e51e22ed107d9728927b28f8e72d0d466b85 (diff)
downloadtracker-format-3f63c6c6f2bcf92735baa6461e4fbcfd5932955f.tar.gz
tracker-format-3f63c6c6f2bcf92735baa6461e4fbcfd5932955f.tar.xz
WIP - update to chicken 5 egg format
-rw-r--r--demo/gitbook/SUMMARY.md0
-rw-r--r--demo/gitbook/book.json0
-rw-r--r--demo/gitbook/redirects.json0
-rw-r--r--demo/gitbook/tracker.scm3
-rw-r--r--mk.scm4
-rw-r--r--render.scm15
-rw-r--r--tracker-format.egg7
-rw-r--r--tracker-format.meta5
-rw-r--r--tracker-format.scm17
-rw-r--r--tracker-format.setup6
10 files changed, 28 insertions, 29 deletions
diff --git a/demo/gitbook/SUMMARY.md b/demo/gitbook/SUMMARY.md
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/demo/gitbook/SUMMARY.md
diff --git a/demo/gitbook/book.json b/demo/gitbook/book.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/demo/gitbook/book.json
diff --git a/demo/gitbook/redirects.json b/demo/gitbook/redirects.json
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/demo/gitbook/redirects.json
diff --git a/demo/gitbook/tracker.scm b/demo/gitbook/tracker.scm
new file mode 100644
index 0000000..ffce929
--- /dev/null
+++ b/demo/gitbook/tracker.scm
@@ -0,0 +1,3 @@
+(import scheme)
+(import make)
+(import tracker-format)
diff --git a/mk.scm b/mk.scm
index c8346a6..45897b8 100644
--- a/mk.scm
+++ b/mk.scm
@@ -1,2 +1,6 @@
+(import scheme)
+(import make)
+(import (tracker format))
+
(make
(("README.md" ("README.md") (print "FOO"))))
diff --git a/render.scm b/render.scm
deleted file mode 100644
index d08d4de..0000000
--- a/render.scm
+++ /dev/null
@@ -1,15 +0,0 @@
-(import hahn)
-(module tracker-format (markdown-file->html)
- (import scheme)
- (import (chicken io))
- (import sxml-transforms)
- (import lowdown)
- (define (parse-markdown-file file-name)
- (markdown->sxml (call-with-input-file
- file-name
- (lambda (port)
- (read-string #f port)))))
- (define (markdown-file->html file-name)
- @("render a markdown file to html")
- (let ((parsed (parse-markdown-file file-name)))
- (SXML->HTML parsed))))
diff --git a/tracker-format.egg b/tracker-format.egg
new file mode 100644
index 0000000..78a5c5e
--- /dev/null
+++ b/tracker-format.egg
@@ -0,0 +1,7 @@
+((synopsis "turn files into other files")
+ (author "xj9@sunshinegardens.org")
+ (version "0.1.0")
+ (components (extension tracker-format))
+ (dependencies lowdown sxml-transforms markdown-svnwiki)
+ (test-dependencies test)
+ (license "UNLICENSE"))
diff --git a/tracker-format.meta b/tracker-format.meta
deleted file mode 100644
index 451f121..0000000
--- a/tracker-format.meta
+++ /dev/null
@@ -1,5 +0,0 @@
-((synopsis "turn files into other files")
- (author "xj9@sunshinegardens.org")
- (depends lowdown sxml-transforms markdown-svnwiki)
- (test-depends test)
- (license "UNLICENSE"))
diff --git a/tracker-format.scm b/tracker-format.scm
index e1594b5..d08d4de 100644
--- a/tracker-format.scm
+++ b/tracker-format.scm
@@ -1,4 +1,15 @@
-(module tracker-format
- ()
+(import hahn)
+(module tracker-format (markdown-file->html)
(import scheme)
- (use ports))
+ (import (chicken io))
+ (import sxml-transforms)
+ (import lowdown)
+ (define (parse-markdown-file file-name)
+ (markdown->sxml (call-with-input-file
+ file-name
+ (lambda (port)
+ (read-string #f port)))))
+ (define (markdown-file->html file-name)
+ @("render a markdown file to html")
+ (let ((parsed (parse-markdown-file file-name)))
+ (SXML->HTML parsed))))
diff --git a/tracker-format.setup b/tracker-format.setup
deleted file mode 100644
index 00f654e..0000000
--- a/tracker-format.setup
+++ /dev/null
@@ -1,6 +0,0 @@
-(compile -O3 -d2 -s tracker-format.scm -j "tracker-format")
-
-(install-extensions
- 'tracker-format
- '("tracker-format")
- '((version "0.1.0"))