|
@@ -15,10 +15,9 @@
|
15
|
15
|
(defgeneric discover (doc-type)
|
16
|
16
|
(:documentation "Load all documents of the given DOC-TYPE into memory.")
|
17
|
17
|
(:method (doc-type)
|
18
|
|
- (let* ((class-name (class-name doc-type))
|
19
|
|
- (file-type (string-downcase (symbol-name class-name))))
|
|
18
|
+ (let ((file-type (format nil "~(~A~)" (class-name doc-type))))
|
20
|
19
|
(do-files (file (repo *config*) file-type)
|
21
|
|
- (let ((obj (construct class-name (read-content file))))
|
|
20
|
+ (let ((obj (construct (class-name doc-type) (read-content file))))
|
22
|
21
|
(add-document obj))))))
|
23
|
22
|
|
24
|
23
|
(defmethod discover :before (doc-type)
|