浏览代码

Organized gh-pages emacs compile into seperate dir

master
Josh Wolfe 3 年前
父节点
当前提交
60ed749f88
共有 4 个文件被更改,包括 30 次插入28 次删除
  1. 4
    3
      emacs/gh-pages/build_site.sh
  2. 0
    0
      emacs/gh-pages/faces.css
  3. 2
    25
      emacs/gh-pages/generate-html.el
  4. 24
    0
      emacs/gh-pages/install.el

emacs/.emacs.d/build_site.sh → emacs/gh-pages/build_site.sh 查看文件

@@ -2,10 +2,11 @@

emacs --version
emacs --batch -f org-version --kill
cd emacs/.emacs.d/
cd emacs/gh-pages
emacs --script install.el
emacs --script generate-html.el
emacs --batch -f org-version --kill
cd ../../
mkdir deploy
mv emacs/.emacs.d/README.html deploy/index.html
mkdir -p deploy
mv TODO.html deploy/todo.html
mv emacs/.emacs.d/README.html deploy/index.html

emacs/.emacs.d/faces.css → emacs/gh-pages/faces.css 查看文件


emacs/.emacs.d/generate-html.el → emacs/gh-pages/generate-html.el 查看文件

@@ -1,27 +1,4 @@
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(setq package-enable-at-startup nil)
(package-initialize)

;; Bootstrap use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)

;; Use latest org before calling babel
(use-package org
:pin org
:ensure org-plus-contrib)

(use-package htmlize)
(use-package s)
(require 'ox-html)

(load-file "./install.el")
(defmacro do-nothing (name)
`(defun ,name (&rest args) nil))

@@ -29,7 +6,7 @@
(do-nothing wolfe:disable-linum-mode)

(setq emacs-dir
(expand-file-name "./"
(expand-file-name "../.emacs.d/"
(file-name-directory load-file-name)))

(setq readme-src (concat emacs-dir "README.org"))

+ 24
- 0
emacs/gh-pages/install.el 查看文件

@@ -0,0 +1,24 @@
(require 'package)
(setq package-archives '(("gnu" . "http://elpa.gnu.org/packages/")
("marmalade" . "https://marmalade-repo.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
(setq package-enable-at-startup nil)
(package-initialize)

;; Bootstrap use-package
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(require 'use-package)
(setq use-package-always-ensure t)

;; Use latest org before calling babel
(use-package org
:pin org
:ensure org-plus-contrib)

(use-package htmlize)
(use-package s)
(require 'ox-html)


正在加载...
取消
保存