From 14313244f70e1565163dcece9470b5bfa5b226da Mon Sep 17 00:00:00 2001
From: Marek Felsoci <marek.felsoci@inria.fr>
Date: Sun, 22 Mar 2020 04:17:19 +0100
Subject: [PATCH] forgot elisp exporting script

---
 pages.el | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
 create mode 100644 pages.el

diff --git a/pages.el b/pages.el
new file mode 100644
index 0000000..b8f0735
--- /dev/null
+++ b/pages.el
@@ -0,0 +1,51 @@
+;; Publish the contents of this repository as a HTML page.
+;; Source: Rasmus
+
+(require 'package)
+(package-initialize)
+(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
+(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(package-refresh-contents)
+(package-install 'org-plus-contrib)
+(package-install 'htmlize)
+
+(require 'org)
+(require 'ox-publish)
+
+(defvar site-attachments
+  (regexp-opt '("m" "py" "ipynb" "scm"
+                "jpg" "jpeg" "gif" "png" "svg"
+                "ico" "cur" "css" "js" "woff" "html" "pdf"))
+  "File types that are published as static files.")
+
+;; Force publishing of unchanged files. Otherwise, missing files cause
+;; 'Not Found' errors while browsing the generated website.
+(setq org-publish-use-timestamps-flag nil)
+
+(setq org-publish-project-alist
+      (list
+       (list "site-org"
+             :base-directory "."
+             :base-extension "org"
+             :recursive t
+             :publishing-function '(org-html-publish-to-html)
+             :publishing-directory "./public"
+             :html-head-extra "<link rel=\"icon\" type=\"image/x-icon\"
+href=\"https://mfelsoci.gitlabpages.inria.fr/inria-org-html-themes/favicon.ico\"/>")
+       (list "site-static"
+             :base-directory "."
+             :exclude "public/"
+             :base-extension site-attachments
+             :recursive t
+             :publishing-directory "./public"
+             :publishing-function 'org-publish-attachment
+             :recursive t)
+       (list "site-tangles"
+             :base-directory "./"
+             :recursive t
+             :publishing-directory "./public"
+             :recursive t
+             :publishing-function 'org-babel-tangle-publish)
+       (list "site" :components '("site-org"))))
+
+(provide 'publish)
-- 
GitLab