mirror of
https://github.com/dongdigua/dongdigua.github.io
synced 2025-02-20 11:29:15 +08:00
FINALLY! fix emacs source block theme
This commit is contained in:
parent
2e172d44cc
commit
b5ac4287b8
5
.github/workflows/site.yml
vendored
5
.github/workflows/site.yml
vendored
@ -21,10 +21,13 @@ jobs:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Everforest Theme
|
||||
run: git clone --depth 1 https://github.com/dongdigua/everforest-emacs.git ~/.emacs.d/everforest
|
||||
|
||||
- name: Install Emacs
|
||||
uses: purcell/setup-emacs@master
|
||||
with:
|
||||
version: 28.1
|
||||
version: 28.2
|
||||
|
||||
- name: Prepare
|
||||
run: |
|
||||
|
@ -199,9 +199,9 @@ https://github.com/rgb-24bit/org-html-theme-list org-joshua
|
||||
|
||||
pre {
|
||||
font-family: Monaco, Consolas, "Lucida Console", monospace;
|
||||
color: black;
|
||||
/* background-color: #f2f2f2; /\* FROM worg.css *\/ */
|
||||
background-color: #d7dfed; /* FROM Bryan Ford */
|
||||
/* color: black; */
|
||||
background-color: #f2f2f2; /* FROM worg.css */
|
||||
/* background-color: #d7dfed; /\* FROM Bryan Ford *\/ */
|
||||
padding: 1.2em;
|
||||
overflow: auto;
|
||||
}
|
||||
@ -308,7 +308,7 @@ https://github.com/rgb-24bit/org-html-theme-list org-joshua
|
||||
#postamble {
|
||||
padding: .3em;
|
||||
margin-bottom: 1em;
|
||||
border: 1px solid gray;
|
||||
/* border: 1px solid gray; */
|
||||
background-color: #dddaec; /* Gentoo Purple */
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,11 @@
|
||||
EMACS=emacs
|
||||
ORG_CONFIG_FILE=publish_config.el
|
||||
EMACS_OPTS=--batch --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
|
||||
TARGET=ls ../*.html* | grep -v "index\|xmr\|404.html"
|
||||
|
||||
# --script and --batch can't load the theme
|
||||
# GUI will have a better color, but can't use in CI
|
||||
EMACS_OPTS=-Q -nw --eval "(load-file \"$(ORG_CONFIG_FILE)\")" -f myweb-publish
|
||||
|
||||
all: html
|
||||
|
||||
html:
|
||||
|
@ -13,14 +13,16 @@
|
||||
(package-install p)))
|
||||
|
||||
(eval-when-compile
|
||||
(require 'org)
|
||||
(require 'ox)
|
||||
(require 'ox-publish)
|
||||
(require 'webfeeder))
|
||||
|
||||
(add-to-list 'custom-theme-load-path "~/.emacs.d/everforest")
|
||||
(load-theme 'everforest-hard-light t)
|
||||
|
||||
(setq org-html-validation-link nil
|
||||
org-export-with-toc 1
|
||||
org-export-with-sub-superscripts '{})
|
||||
|
||||
(setq org-html-postamble-format
|
||||
'(("en"
|
||||
"
|
||||
@ -89,5 +91,6 @@
|
||||
:title "dongdigua's blog"
|
||||
:description "Blog!"
|
||||
:builder 'webfeeder-make-rss)
|
||||
)
|
||||
|
||||
(kill-emacs))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user