building section indexes
This commit is contained in:
parent
a57253353b
commit
ed6cbb3805
3 changed files with 34 additions and 10 deletions
|
|
@ -900,7 +900,8 @@ Let's start by creating a self contained function of what I'd like started on ev
|
|||
(org-level-3 1.2 bold)
|
||||
(org-level-4 1.1 semi-bold)
|
||||
(org-level-5 1.0 normal)
|
||||
(org-column 1.0 normal)))
|
||||
(org-column 1.0 normal)
|
||||
(org-document-title 2.0 ultra-bold)))
|
||||
(set-face-attribute (nth 0 face) nil :weight (nth 2 face) :height (nth 1 face)))
|
||||
|
||||
;; changing colors
|
||||
|
|
|
|||
3
init.el
3
init.el
|
|
@ -604,7 +604,8 @@
|
|||
(org-level-3 1.2 bold)
|
||||
(org-level-4 1.1 semi-bold)
|
||||
(org-level-5 1.0 normal)
|
||||
(org-column 1.0 normal)))
|
||||
(org-column 1.0 normal)
|
||||
(org-document-title 2.0 ultra-bold)))
|
||||
(set-face-attribute (nth 0 face) nil :weight (nth 2 face) :height (nth 1 face)))
|
||||
|
||||
;; changing colors
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
(require 's)
|
||||
(require 'f)
|
||||
(require 'comp-run)
|
||||
(require 'simple-httpd)
|
||||
|
||||
(defun quick/async-export-function (chunk index)
|
||||
"A function to build a future that will export all it's chunk's files"
|
||||
|
|
@ -147,7 +148,6 @@
|
|||
(message "Finished exporting all files"))))
|
||||
|
||||
(defun quick/org-copy-notes (plist)
|
||||
(message "%s" plist)
|
||||
(let ((files (--remove
|
||||
(string-match-p (plist-get plist :exclude) it)
|
||||
(directory-files "~/docs/notes" t ".*.org$"))))
|
||||
|
|
@ -155,8 +155,9 @@
|
|||
(let ((filename (concat (file-name-as-directory
|
||||
(plist-get plist :base-directory))
|
||||
(f-filename file))))
|
||||
(copy-file
|
||||
file filename t t)))))
|
||||
(copy-file
|
||||
file filename t t))))
|
||||
(chris/site-index-update plist))
|
||||
|
||||
(defun quick/org-copy-lessons (plist)
|
||||
(let ((files (--remove
|
||||
|
|
@ -167,7 +168,9 @@
|
|||
(plist-get plist :base-directory))
|
||||
(f-filename file))))
|
||||
(copy-file
|
||||
file filename t t)))))
|
||||
file filename t t))))
|
||||
(chris/site-index-update plist))
|
||||
|
||||
|
||||
(defun chris/site-index-update (plist)
|
||||
(save-excursion
|
||||
|
|
@ -176,7 +179,6 @@
|
|||
(file (concat (file-name-as-directory
|
||||
(plist-get plist :base-directory)) "index.org")))
|
||||
(find-file file)
|
||||
(message "Inside update func: %s" file)
|
||||
(org-update-all-dblocks)
|
||||
(denote-org-convert-links-to-file-type)
|
||||
(save-buffer))))
|
||||
|
|
@ -208,7 +210,6 @@
|
|||
:with-author nil
|
||||
:with-timestamps nil
|
||||
:section-numbers nil
|
||||
:html-preamble chris/site-premble
|
||||
:html-postamble nil
|
||||
:html-validation-link nil
|
||||
:exlude-tags "revealonly\\|noexport"
|
||||
|
|
@ -217,6 +218,16 @@
|
|||
:html-html5-fancy t
|
||||
:html-self-link-headlines t
|
||||
:htmlized-source t
|
||||
;; :html-preamble chris/site-premble
|
||||
:html-preamble-format (("en" "<nav>
|
||||
<ul>
|
||||
<li><strong><a href=\"/\">Chris Cochrun</a> > %t</strong></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href=\"/notes\">Notes</a></li>
|
||||
<li><a href=\"/teaching\">Teaching</a></li>
|
||||
</ul>
|
||||
</nav>"))
|
||||
:html-head "<link rel=\"stylesheet\" href=\"../static/pico.snazzy.css\" type=\"text/css\"/>"
|
||||
:publishing-directory "~/docs/site/public/notes/"
|
||||
:publishing-function org-html-publish-to-html)
|
||||
|
|
@ -230,7 +241,7 @@
|
|||
:with-author nil
|
||||
:with-timestamps nil
|
||||
:section-numbers nil
|
||||
:html-preamble chris/site-premble
|
||||
;; :html-preamble chris/site-premble
|
||||
:html-postamble nil
|
||||
:html-validation-link nil
|
||||
:exlude-tags "revealonly\\|noexport"
|
||||
|
|
@ -239,6 +250,15 @@
|
|||
:html-html5-fancy t
|
||||
:html-self-link-headlines t
|
||||
:htmlized-source t
|
||||
:html-preamble-format (("en" "<nav>
|
||||
<ul>
|
||||
<li><strong><a href=\"/\">Chris Cochrun</a> > %t</strong></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href=\"/notes\">Notes</a></li>
|
||||
<li><a href=\"/teaching\">Teaching</a></li>
|
||||
</ul>
|
||||
</nav>"))
|
||||
:html-head "<link rel=\"stylesheet\" href=\"../static/pico.snazzy.css\" type=\"text/css\"/>"
|
||||
:publishing-directory "~/docs/site/public/teaching/"
|
||||
:publishing-function org-html-publish-to-html)
|
||||
|
|
@ -265,7 +285,6 @@
|
|||
<li><strong>Chris Cochrun</strong></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li><a href=\"/index\">Home</a></li>
|
||||
<li><a href=\"/notes\">Notes</a></li>
|
||||
<li><a href=\"/teaching\">Teaching</a></li>
|
||||
</ul>
|
||||
|
|
@ -409,3 +428,6 @@ on your machine as makes sense."
|
|||
|
||||
(quick/org-publish "cochrun.xyz" nil t)
|
||||
|
||||
(let ((httpd-root "~/docs/site/public")
|
||||
(httpd-host "localhost"))
|
||||
(httpd-serve-directory "~/docs/site/public"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue