aboutsummaryrefslogtreecommitdiff
path: root/docs.el
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-07-12 23:53:52 +0300
committerCem Keylan <cem@ckyln.com>2021-07-12 23:56:34 +0300
commit30c0c11f5e8da2306970477630a97c472dd7941b (patch)
treec86bb1448c510a4a97bb5af97fd8af792ce2371a /docs.el
parent7bde71ce43058ca4cf7e5c8d6302f2cf8f5661f4 (diff)
downloaddocs-30c0c11f5e8da2306970477630a97c472dd7941b.tar.gz
add makefile
Diffstat (limited to 'docs.el')
-rw-r--r--docs.el18
1 files changed, 18 insertions, 0 deletions
diff --git a/docs.el b/docs.el
new file mode 100644
index 0000000..d6d53ff
--- /dev/null
+++ b/docs.el
@@ -0,0 +1,18 @@
+;;; docs.el --- configuration for docs exports
+;;; Commentary:
+;;; Code:
+(require 'org)
+(require 'ox)
+(require 'ox-ascii)
+
+;; We do NOT want backup files.
+(setq make-backup-files nil)
+
+(defun docs-install-txt ()
+ "Extract and export installation manual from the User Manual."
+ (let ((org-export-with-toc nil))
+ (re-search-forward "^* Installation")
+ (org-ascii-export-to-ascii nil t)))
+
+(provide 'docs)
+;;; docs.el ends here