Fixes for Health for Watch

This commit is contained in:
Aleksandr Lebedev 2025-10-24 11:19:47 +02:00
parent 6780fbfd90
commit 89d1c2e4f0
5 changed files with 73 additions and 37 deletions

View file

@ -5,40 +5,40 @@
}: let
src = ./.;
buildScript = writeText "build-site.el" ''
;; Load the publishing system
(require 'ox-publish)
;; Define the publishing project
(setq org-publish-project-alist
(list
(list "kylekrein's website"
:recursive t
:base-directory "${src}"
:exclude "webarchive"
:publishing-directory "./public"
:publishing-function 'org-html-publish-to-html
:with-author nil ;; Don't include author name
:with-creator t ;; Include Emacs and Org versions in footer
:with-toc nil ;; Include a table of contents
:section-numbers nil ;; Don't include section numbers
:time-stamp-file nil)
(list "attachments"
:recursive t
:base-directory "${src}"
:base-extension "jpg\\|gif\\|png\\|css\\|webp"
:exclude "webarchive"
:publishing-directory "./public"
:publishing-function 'org-publish-attachment)))
;; Load the publishing system
(require 'ox-publish)
;; Define the publishing project
(setq org-publish-project-alist
(list
(list "kylekrein's website"
:recursive t
:base-directory "${src}"
:exclude "webarchive"
:publishing-directory "./public"
:publishing-function 'org-html-publish-to-html
:with-author nil ;; Don't include author name
:with-creator t ;; Include Emacs and Org versions in footer
:with-toc nil ;; Include a table of contents
:section-numbers nil ;; Don't include section numbers
:time-stamp-file nil)
(list "attachments"
:recursive t
:base-directory "${src}"
:base-extension "jpg\\|gif\\|png\\|css\\|webp\\|pdf"
:exclude "webarchive"
:publishing-directory "./public"
:publishing-function 'org-publish-attachment)))
;; Customize the HTML output
(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\" /> <link rel=\"stylesheet\" href=\"https://alexanderlebedev.com/style.css\" />")
;; Customize the HTML output
(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\" /> <link rel=\"stylesheet\" href=\"/style.css\" />")
;; Generate the site output
(org-publish-all t)
(copy-directory "${src}/webarchive" "./public/")
(message "Build complete!")
;; Generate the site output
(org-publish-all t)
(copy-directory "${src}/webarchive" "./public/")
(message "Build complete!")
'';
in
stdenvNoCC.mkDerivation {