From d70d8cc10b6a6d13d835a24b1631ae665c8ae964 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Tue, 17 Aug 2021 16:47:03 +0530 Subject: build-aux: Link to GitHub repo on website. We programmatically add a link to the GitHub repo before building the website. This way, the GitHub link will appear only on the website, and not on the README.org rendered on GitHub. * build-aux/build-home-page.el (build-website): Add a link to the GitHub repo before building the website. --- build-aux/build-home-page.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'build-aux') diff --git a/build-aux/build-home-page.el b/build-aux/build-home-page.el index 130afee..b971304 100644 --- a/build-aux/build-home-page.el +++ b/build-aux/build-home-page.el @@ -35,5 +35,9 @@ org-html-postamble nil) (defun build-website () - (with-current-buffer (find-file "README.org") + (with-temp-buffer + (insert-file-contents "README.org") + (search-forward "* Contributing\n\n") + (beginning-of-line) + (insert "ccwl is developed on [[https://github.com/arunisaac/ccwl][GitHub]]. ") (org-export-to-file 'html "website/index.html"))) -- cgit v1.2.3