From ecee5a60b9e13796400e9dec84ce55f89767b6fa Mon Sep 17 00:00:00 2001 From: github-actions Date: Sat, 20 Apr 2024 00:44:19 +0000 Subject: [PATCH] Update source, eask-core.el --- eask-core.el | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/eask-core.el b/eask-core.el index ad4d74b..331b8c6 100644 --- a/eask-core.el +++ b/eask-core.el @@ -392,7 +392,11 @@ Execute forms BODY limit by the verbosity level (SYMBOL)." :type 'hook :group 'eask) (defcustom eask-dist-path "dist" - "Name of default target directory for building packages." + "Default path where to place the package artifact." + :type 'string + :group 'eask) +(defcustom eask-docs-path "docs/public/" + "Default path where to place the documentation." :type 'string :group 'eask) (defcustom eask-recipe-path "recipes" @@ -2027,6 +2031,18 @@ The CMD is the command to start a new Emacs session." ;; ~/lisp/core/concat.el +;; ~/lisp/core/docs.el +(require 'el2org nil t) +(defun eask-docs--to-html (el-file) + "Generate html file from EL-FILE." + (interactive) + (let* ((filename (file-name-nondirectory el-file)) + (html-file (expand-file-name (concat (file-name-sans-extension filename) + ".html") + eask-docs-path))) + (eask-with-verbosity 'debug + (el2org-generate-file el-file nil 'html html-file t)))) + ;; ~/lisp/core/emacs.el ;; ~/lisp/core/eval.el