diff options
author | Arun Isaac | 2021-07-19 16:23:46 +0530 |
---|---|---|
committer | Arun Isaac | 2021-07-19 16:23:46 +0530 |
commit | 91906666c9bc2f34d3cab92c8a6a1456c2ec464b (patch) | |
tree | 6d78021b6dedb461ca6955b9d4d80c564635c488 /build-aux | |
parent | 3b3cec0e8be0be245c0f0e8bba8fcc0a608ebe60 (diff) | |
download | ccwl-91906666c9bc2f34d3cab92c8a6a1456c2ec464b.tar.gz ccwl-91906666c9bc2f34d3cab92c8a6a1456c2ec464b.tar.lz ccwl-91906666c9bc2f34d3cab92c8a6a1456c2ec464b.zip |
build-aux: Put website building code into a function.
This will be useful when we want build-home-page.el to build both a
website and a gemini capsule.
* build-aux/build-home-page.el (build-website): New function.
* Makefile.am (website/index.html): Call build-website.
Diffstat (limited to 'build-aux')
-rw-r--r-- | build-aux/build-home-page.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/build-aux/build-home-page.el b/build-aux/build-home-page.el index 16134ad..130afee 100644 --- a/build-aux/build-home-page.el +++ b/build-aux/build-home-page.el @@ -34,5 +34,6 @@ org-html-head-include-scripts nil org-html-postamble nil) -(with-current-buffer (find-file "README.org") - (org-export-to-file 'html "website/index.html")) +(defun build-website () + (with-current-buffer (find-file "README.org") + (org-export-to-file 'html "website/index.html"))) |