Skip to content

Commit

Permalink
automating publishing using build-site.el
Browse files Browse the repository at this point in the history
  • Loading branch information
superhans2 committed Feb 1, 2024
1 parent 83913f1 commit adf14b2
Show file tree
Hide file tree
Showing 19 changed files with 1,308 additions and 137 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
.idea
*.log
tmp/

todo.org
27 changes: 27 additions & 0 deletions build-site.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
;; Jan 2024
;;

(require 'ox-publish)

(setq org-html-validation-link nil ;; don't show the validation link
org-html-head-include-scripts nil ;; use our own scripts
org-html-include-default-style nil
org-html-head "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />")

(setq org-publish-project-alist
(list (list "my-org-site"
:recursive t
:base-directory "./org"
:publishing-directory "./docs"
:publishing-function 'org-html-publish-to-html
:with-author nil
:with-creator nil
:with-toc nil
:section-numbers nil
:time-stamp-file nil)))

(org-publish-all t)

(message "build complete")

;;; build-site.el ends here
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

emacs -Q --script build-site.el
451 changes: 451 additions & 0 deletions docs/ideas.html

Large diffs are not rendered by default.

219 changes: 219 additions & 0 deletions docs/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit adf14b2

Please sign in to comment.