Skip to content

Commit

Permalink
Add minimizer repo as submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Jul 28, 2024
1 parent bf27fc1 commit c52d0e1
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
cd /srv/nginx/curiouscoding.nl/ \
&& git fetch https://${GITHUB_TOKEN}@github.com/ragnargrootkoerkamp/research.git \
&& git reset --hard FETCH_HEAD \
&& git submodule update \
&& git submodule update --init \
&& make build
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[submodule "themes/hugo-coder"]
path = themes/hugo-coder
url = https://github.com/luizdepra/hugo-coder.git
[submodule "posts/fast-minimizers/minimizers"]
path = posts/fast-minimizers/minimizers
url = https://github.com/RagnarGrootKoerkamp/minimizers
[submodule "posts/fast-minimizers/submodule-minimizers"]
path = posts/fast-minimizers/submodule-minimizers
url = https://github.com/RagnarGrootKoerkamp/minimizers
22 changes: 11 additions & 11 deletions emacs/init.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

(require 'subr-x)

; (toggle-debug-on-error) ;; Show debug information as soon as error occurs.
; (toggle-debug-on-error) ;; Show debug information as soon as error occurs.
(setq
make-backup-files nil ;; Disable "<file>~" backups.
)
)

(defconst base-dir
(let* ((env-key "BASE_DIR")
Expand Down Expand Up @@ -56,17 +56,17 @@

(setf org-hugo-base-dir base-dir)

; Disable auto-inserting References section heading.
; https://ox-hugo.scripter.co/doc/org-cite-citations/#org-radio--CSL-formatted-exports
; https://github.com/kaushalmodi/ox-hugo/issues/679
; Disable auto-inserting References section heading.
; https://ox-hugo.scripter.co/doc/org-cite-citations/#org-radio--CSL-formatted-exports
; https://github.com/kaushalmodi/ox-hugo/issues/679
;; (with-eval-after-load 'ox-hugo
;; (plist-put org-hugo-citations-plist :bibliography-section-heading ""))

; Auto-prefix type (figure/table) of links.
; https://ox-hugo.scripter.co/doc/linking-numbered-elements/#fnref:1
; Auto-prefix type (figure/table) of links.
; https://ox-hugo.scripter.co/doc/linking-numbered-elements/#fnref:1
(setq org-hugo-link-desc-insert-type t)

; Use CSL by default
; Use CSL by default
(setq org-cite-export-processors '((t csl)))

(setq org-cite-global-bibliography (list (expand-file-name "references.bib")))
Expand All @@ -80,10 +80,10 @@
"Export all org-files (including nested) under base-org-files."
(let ((search-path (file-name-as-directory base-dir)))
(message (format "[build] Looking for files at %s" search-path))
(dolist (org-file (directory-files-recursively search-path "\.org$" nil (lambda (x) (not (string-match-p "emacs" x)))))
(dolist (org-file (directory-files-recursively search-path "\.org$" nil (lambda (x) (and (not (string-match-p "emacs" x)) (not (string-match-p "submodule" x))))))
(with-current-buffer (find-file org-file)
(message (format "[build] Exporting %s" org-file))
(org-hugo-export-wim-to-md :all-subtrees nil nil nil)))
(message (format "[build] Exporting %s" org-file))
(org-hugo-export-wim-to-md :all-subtrees nil nil nil)))
(message "Done!")))

(provide 'build/export-all)
Expand Down
1 change: 1 addition & 0 deletions posts/fast-minimizers/code
1 change: 1 addition & 0 deletions posts/fast-minimizers/submodule-minimizers
Submodule submodule-minimizers added at e65b28

0 comments on commit c52d0e1

Please sign in to comment.