X-Git-Url: https://code.consxy.com/gitweb/gitweb.cgi?p=sheep;a=blobdiff_plain;f=src%2Fmain%2Fdocgen.lisp;h=f873f994857d07e2699e00a4ea797498db32db64;hp=8d27051be7e66ea6cfc6025f432c509693063695;hb=0d2cc28;hpb=2d880c9656734ae0ae9f18b9b8e9a889236e38f8 diff --git a/src/main/docgen.lisp b/src/main/docgen.lisp index 8d27051..f873f99 100644 --- a/src/main/docgen.lisp +++ b/src/main/docgen.lisp @@ -5,7 +5,7 @@ (defun get-symb-type (symb) (cond - ;((documentation symb 'variable) :variable) + ((documentation symb 'variable) :variable) ((documentation symb 'structure) :structure) ((documentation symb 'function) :function))) @@ -47,6 +47,7 @@ DESCRIPTION: (case (get-symb-type symb) (:function (docgen-func:doc->ast symb)) (:structure (docgen-struc:doc->ast symb)) + (:variable (docgen-var:doc->ast symb)) (t (error (make-condition 'validation-failure :msg (format nil "Symbol ~A has no documentation" symb))))))) symbs)))))) @@ -105,7 +106,13 @@ EXAMPLES: (docgen-struc:ast->category-name (docgen-struc:doc->ast symb)) (docgen-struc:ast->short-name (docgen-struc:doc->ast symb)) (docgen-struc:ast->link (docgen-struc:doc->ast symb)) - (docgen-struc:ast->short-desc (docgen-struc:doc->ast symb)))))) + (docgen-struc:ast->short-desc (docgen-struc:doc->ast symb)))) + (:variable + (list + (docgen-var:ast->category-name (docgen-var:doc->ast symb)) + (docgen-var:ast->short-name (docgen-var:doc->ast symb)) + (docgen-var:ast->link (docgen-var:doc->ast symb)) + (docgen-var:ast->short-desc (docgen-var:doc->ast symb)))))) symbs)))) (defun export-package (pkg) @@ -134,6 +141,7 @@ DESCRIPTION: (mapcar (lambda (symb) (case (get-symb-type symb) + (:variable (docgen-var:ast->md (docgen-var:doc->ast symb))) (:function (docgen-func:ast->md (docgen-func:doc->ast symb))) (:structure (docgen-struc:ast->md (docgen-struc:doc->ast symb))))) symbs)))))