Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 14313244 authored by FELŠÖCI Marek's avatar FELŠÖCI Marek
Browse files

forgot elisp exporting script

parent 64b81bed
No related branches found
No related tags found
No related merge requests found
pages.el 0 → 100644
;; 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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment