docs.lisp 1.79 KB
Newer Older
Nick Matvyeyev's avatar
Nick Matvyeyev committed
1
2
3
4
5
(defpackage #:mnas-string/docs
  (:use #:cl ) 
  (:nicknames "MSTR/DOCS")
  (:export make-all)
  (:documentation "Пакет @b(mnas-string/docs) содержит функции
6
  генерирования и публикации документации."))
Nick Matvyeyev's avatar
Nick Matvyeyev committed
7
8
9
10
11
12
13
14
15
16
17

(in-package :mnas-string/docs)

(defun make-document ()
  (loop
    :for i :in
    '((:mnas-string          :mnas-string)
      (:mnas-string/parse    nil)
      (:mnas-string/print    nil)
      (:mnas-string/translit nil)
      (:mnas-string/db       nil)
18
      (:mnas-string/docs     nil)
Nick Matvyeyev's avatar
Nick Matvyeyev committed
19
20
21
22
23
24
25
26
27
28
29
      )
    :do (apply #'mnas-package:document i)))

(defun make-graphs ()
  (loop
    :for i :in
    '(:mnas-string
      :mnas-string/parse
      :mnas-string/print
      :mnas-string/translit
      :mnas-string/db
30
      :mnas-string/docs 
Nick Matvyeyev's avatar
Nick Matvyeyev committed
31
32
33
      )
    :do (mnas-package:make-codex-graphs i i)))

Nick Matvyeyev's avatar
Nick Matvyeyev committed
34
35
36
37
38
39
(defun make-all (&aux
                   (of (if (find (uiop:hostname)
                                 mnas-package:*intranet-hosts*
                                 :test #'string=)
                           '(:type :multi-html :template :gamma)
                           '(:type :multi-html :template :minima))))
40
41
42
43
44
  "@b(Описание:) функция @b(make-all) служит для создания документации.

 Пакет документации формируется в каталоге
~/public_html/Common-Lisp-Programs/mnas-string.
"
Nick Matvyeyev's avatar
Nick Matvyeyev committed
45
  (mnas-package:make-html-path :mnas-string)
46
47
48
49
50
51
  (make-document)
  (make-graphs)
  (mnas-package:make-mainfest-lisp
   '(:mnas-string :mnas-string/docs)
   "Mnas-String"
   '("Nick Matvyeyev")
Nick Matvyeyev's avatar
Nick Matvyeyev committed
52
53
   (mnas-package:find-sources "mnas-string")
   :output-format of)
54
  (codex:document :mnas-string)
Nick Matvyeyev's avatar
Nick Matvyeyev committed
55
56
57
  (make-graphs)
  (mnas-package:copy-doc->public-html "mnas-string")
  (mnas-package:rsync-doc "mnas-string"))
Nick Matvyeyev's avatar
Nick Matvyeyev committed
58
59

;;;; (make-all)