make-docs.lisp 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. ;; Copyright (c) 2008 Accelerated Data Works, Ryan Davis
  2. ;; Permission is hereby granted, free of charge, to any person
  3. ;; obtaining a copy of this software and associated documentation files
  4. ;; (the "Software"), to deal in the Software without restriction,
  5. ;; including without limitation the rights to use, copy, modify, merge,
  6. ;; publish, distribute, sublicense, and/or sell copies of the Software,
  7. ;; and to permit persons to whom the Software is furnished to do so,
  8. ;; subject to the following conditions:
  9. ;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  10. ;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  11. ;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  12. ;; IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
  13. ;; CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
  14. ;; TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
  15. ;; SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  16. ;;load up both backends
  17. (require 'adw-charting-vecto)
  18. (require 'adw-charting-google)
  19. (require 'cl-fad)
  20. (defpackage #:make-docs
  21. (:use #:cl #:adw-charting))
  22. (in-package #:make-docs)
  23. ;; run all the snippets
  24. (defun load-examples ()
  25. (dolist (file (cl-fad:list-directory
  26. (merge-pathnames
  27. "examples/"
  28. (asdf:component-pathname
  29. (asdf:find-system :adw-charting)))))
  30. (when (string-equal "lisp"
  31. (pathname-type file))
  32. (ignore-errors (load file))
  33. (format T "Loaded ~a~%" (pathname-name file)))))
  34. #|
  35. (load-examples)
  36. ;;move *.png to
  37. (merge-pathnames
  38. "doc/"
  39. (asdf:component-pathname
  40. (asdf:find-system :adw-charting)))
  41. (quit)
  42. |#