docs.lisp 1.82 KB
Newer Older
Nick Matvyeyev's avatar
Nick Matvyeyev committed
1
2
;;;; ./src/docs/docs.lisp

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

(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)
20
      (:mnas-string/docs     nil)
Nick Matvyeyev's avatar
Nick Matvyeyev committed
21
22
23
24
25
26
27
28
29
30
31
      )
    :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
32
      :mnas-string/docs 
Nick Matvyeyev's avatar
Nick Matvyeyev committed
33
34
35
      )
    :do (mnas-package:make-codex-graphs i i)))

Nick Matvyeyev's avatar
Nick Matvyeyev committed
36
37
38
39
40
41
(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))))
42
43
44
45
46
  "@b(Описание:) функция @b(make-all) служит для создания документации.

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

;;;; (make-all)