Skip to content

Commit

Permalink
site: port across first three chapters from notes
Browse files Browse the repository at this point in the history
  • Loading branch information
mcraveiro committed Jan 17, 2024
1 parent eda7485 commit 2f1d671
Show file tree
Hide file tree
Showing 28 changed files with 5,466 additions and 83 deletions.
10 changes: 8 additions & 2 deletions .build-site.el
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
(require 'package)
(require 'org)
(require 'org-id)
(require 'oc-bibtex)
(require 'ox-publish)
(require 'org-element)

Expand All @@ -51,7 +52,7 @@
(setq org-html-validation-link nil ;; Don't show validation link
org-html-head-include-scripts nil ;; Use our own scripts
org-html-head-include-default-style nil ;; Use our own styles
org-html-head "<link rel=\"stylesheet\" href=\"https://cdn.simplecss.org/simple.min.css\" />")
org-html-head "<link rel=\"stylesheet\" href=\"https://gongzhitaao.org/orgcss/org.css\" />")

;; Define the publishing project
(setq org-publish-project-alist
Expand All @@ -71,8 +72,13 @@
:base-extension "png\\|jpg"
:publishing-directory "./build/output/site/assets/images"
:publishing-function org-publish-attachment)
("progen-site:css"
:base-directory "./assets/css"
:base-extension "css"
:publishing-directory "./build/output/site/assets/css"
:publishing-function org-publish-attachment)
( "progen-site:main"
:components("progen-site:images" "progen-site:pages"))
:components("progen-site:images" "progen-site:pages" "progen-site:css"))
))

;; Generate the site output
Expand Down
6 changes: 6 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
((nil . ((eval . (setq-local
org-roam-directory (expand-file-name (locate-dominating-file
default-directory ".dir-locals.el"))))
(eval . (setq-local
org-roam-db-location (expand-file-name ".org-roam.db"
org-roam-directory))))))
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/output
# Emacs
.packages
.org-id-locations-file
.org-roam.db
Loading

0 comments on commit 2f1d671

Please sign in to comment.