aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2021-08-17 16:47:03 +0530
committerArun Isaac2021-08-17 16:47:03 +0530
commitd70d8cc10b6a6d13d835a24b1631ae665c8ae964 (patch)
treecbf3c8883c838b78ae0c0f711185495f36564a6e
parent22977baf000ff18941eb78dcc300d115667e5ec8 (diff)
downloadccwl-d70d8cc10b6a6d13d835a24b1631ae665c8ae964.tar.gz
ccwl-d70d8cc10b6a6d13d835a24b1631ae665c8ae964.tar.lz
ccwl-d70d8cc10b6a6d13d835a24b1631ae665c8ae964.zip
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.
-rw-r--r--build-aux/build-home-page.el6
1 files changed, 5 insertions, 1 deletions
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")))