Fixing a few issues

This commit is contained in:
2026-01-03 00:10:12 +00:00
parent 53f279f7d6
commit be7841bbb7
9 changed files with 64 additions and 82 deletions

View File

@@ -7,17 +7,31 @@
In this file I want to include technical information (things related to programming, coding and networking etc): In this file I want to include technical information (things related to programming, coding and networking etc):
- [[id:e7f2302b-16eb-476d-a7b9-be12f077819d][AOC Notes]] - [[id:e7f2302b-16eb-476d-a7b9-be12f077819d][AOC Notes]]
- [[id:348df473-6443-4f4a-b366-95397b574989][web-port-notes]] - [[id:348df473-6443-4f4a-b366-95397b574989][web-port-notes]]
- [[id:710f65e5-0bd4-42be-b5d1-69dbe79b745e][github-notes]] - [[id:710f65e5-0bd4-42be-b5d1-69dbe79b745e][github-notes]]
- [[id:bdb493df-db92-4c93-9558-0b10fdff3048][linux_moc]] - [[id:bdb493df-db92-4c93-9558-0b10fdff3048][linux_moc]]
- [[id:e448cd99-afee-4702-947f-644bb34dc1aa][database_moc]] - [[id:e448cd99-afee-4702-947f-644bb34dc1aa][database_moc]]
- [[id:8fa3f476-6152-45f4-b618-50f1e4bce46c][emacs_moc]] - [[id:8fa3f476-6152-45f4-b618-50f1e4bce46c][emacs_moc]]
- [[id:0880f089-a5ad-49cd-8ce3-f020a5941313][networking-moc]] - [[id:0880f089-a5ad-49cd-8ce3-f020a5941313][networking-moc]]
- [[id:9d1cfccc-8da7-41a3-b435-9857f0abe441][leetcode_notes]] - [[id:9d1cfccc-8da7-41a3-b435-9857f0abe441][leetcode_notes]]
- [[id:347d2663-515b-4d9a-9ee9-7706ee86a845][haskell_notes]] - [[id:347d2663-515b-4d9a-9ee9-7706ee86a845][haskell_notes]]
- [[id:5a207a1c-6f02-40d5-b42e-38daaa0aec10][c_notes]] - [[id:5a207a1c-6f02-40d5-b42e-38daaa0aec10][c_notes]]
- [[id:ae343652-96fe-4341-8a36-ec3a1abd0dc6][java_moc]] - [[id:ae343652-96fe-4341-8a36-ec3a1abd0dc6][java_moc]]
- [[id:f09cb4ed-1407-4187-9002-de2c5db13a8f][server_moc]]
- [[id:f09cb4ed-1407-4187-9002-de2c5db13a8f][server_moc]]
- [[id:631b2086-4b8f-4fe3-829d-be1dc014e293][design-patterns-notes]] - [[id:631b2086-4b8f-4fe3-829d-be1dc014e293][design-patterns-notes]]
- [[id:37495d5f-2a77-40bc-b45c-8163189bbe6b][technical-commonplace]] - [[id:37495d5f-2a77-40bc-b45c-8163189bbe6b][technical-commonplace]]
- [[id:22737796-6D31-49D5-84F2-F7BC73E45144][Concepts]]

View File

@@ -7,3 +7,5 @@
[[id:2c2d8df4-ad36-40ab-9f30-8a047b372956][old_nextcloud_server_code]] [[id:2c2d8df4-ad36-40ab-9f30-8a047b372956][old_nextcloud_server_code]]
[[id:a9829b5d-690d-4a21-ba94-ac8beac4d439][old_nginx_code]] [[id:a9829b5d-690d-4a21-ba94-ac8beac4d439][old_nginx_code]]
- [[id:effa2bf5-8b04-42d3-b9c1-17160dc4ddc2][Actual]]

View File

@@ -4,6 +4,8 @@
#+title: Design patterns #+title: Design patterns
#+filetags: :notes:career:technical: #+filetags: :notes:career:technical:
*WIP*
* Design patterns. What are they? * Design patterns. What are they?

View File

@@ -10,8 +10,14 @@ In this node lies notes relating to theoretical concepts tying with maths and/or
Part of being a software engineer is having a good grasp of mathematical concepts. Here are some notes on various mathematical concepts that I find useful. Part of being a software engineer is having a good grasp of mathematical concepts. Here are some notes on various mathematical concepts that I find useful.
- [[id:F32F8F09-3DEC-4FD1-8CFA-401A316E906B][xor]] - [[id:F32F8F09-3DEC-4FD1-8CFA-401A316E906B][xor]]
- [[id:6820973F-613E-441A-BC1D-8FE5CD9BD6F7][solid_principles]]
* Core Programming Concepts
- [[id:6820973F-613E-441A-BC1D-8FE5CD9BD6F7][Solid Principles]]
- [[id:275988a8-59d8-40c8-a8b4-47118d6eb834][Big O Notation, Time and Space Complexity]]
Some core programming concepts that are essential for software development. The things I need to add here are:
* Concepts to learn and talk about (cs and maths) * Concepts to learn and talk about (cs and maths)
- +xor+ - +xor+
@@ -75,3 +81,5 @@ Part of being a software engineer is having a good grasp of mathematical concept
- formal languages - formal languages
- Turing machines - Turing machines
- computability theory - computability theory
- MVPs and MVTs

View File

@@ -1,10 +1,16 @@
.PHONY: all fast clean norm tests help .PHONY: all build json fast clean norm tests help
# Default target: full build with search index # Default target: full build with search index
all: all: clean build json
build:
@echo "Building project (full rebuild with search index)..." @echo "Building project (full rebuild with search index)..."
emacs -Q --script lisp/build.el emacs -Q --script lisp/build.el
json:
@echo "Generating the JSON output..."
python search-index.py
# Fast build without search index # Fast build without search index
fast: fast:
@echo "Building project (fast rebuild without search index)..." @echo "Building project (fast rebuild without search index)..."
@@ -26,7 +32,9 @@ tests:
# Show help message # Show help message
help: help:
@echo "Available targets:" @echo "Available targets:"
@echo " make - Full rebuild (with search index)" @echo " make - Clean, build, and generate search index (default)"
@echo " make build - Full rebuild (with search index)"
@echo " make json - Generate JSON output for search index"
@echo " make fast - Fast rebuild (without search index)" @echo " make fast - Fast rebuild (without search index)"
@echo " make clean - Remove output directory" @echo " make clean - Remove output directory"
@echo " make tests - Run all of the tests associated with the project" @echo " make tests - Run all of the tests associated with the project"

View File

@@ -4,14 +4,17 @@
A complete alphabetical index of all published pages. A complete alphabetical index of all published pages.
* A * A
- [[id:effa2bf5-8b04-42d3-b9c1-17160dc4ddc2][Actual]]
- [[id:3acffb66-bc1a-4661-904f-c5447b3c3488][advanced-networking]] - [[id:3acffb66-bc1a-4661-904f-c5447b3c3488][advanced-networking]]
- [[id:556d10d1-1c74-4d9f-a398-39cb3bd5d935][afp]] - [[id:556d10d1-1c74-4d9f-a398-39cb3bd5d935][afp]]
- [[id:f6c9e1a7-8465-4cef-9481-2b803d0c43d4][afp_lab_1]] - [[id:f6c9e1a7-8465-4cef-9481-2b803d0c43d4][afp_lab_1]]
- [[id:3aef24fd-b220-4408-aa1e-c3538d661b62][afp_lec_1]] - [[id:3aef24fd-b220-4408-aa1e-c3538d661b62][afp_lec_1]]
- [[id:460f4a49-8ae4-444a-bf82-4e14ca7cad3f][afp_lec_2]] - [[id:460f4a49-8ae4-444a-bf82-4e14ca7cad3f][afp_lec_2]]
- [[id:ed4c372b-0314-4b6e-9119-742f69b5e434][afp_lec_5]] - [[id:ed4c372b-0314-4b6e-9119-742f69b5e434][afp_lec_5]]
- [[id:6c272430-aff5-468b-90d3-5ff3a96152cf][afp_week1]]
- [[id:4bc71106-1d2b-4c71-836d-54b738fe5ff5][afp_week2]] - [[id:4bc71106-1d2b-4c71-836d-54b738fe5ff5][afp_week2]]
- [[id:1f395b8c-cf55-43eb-9430-dd9449f6b575][afp_week5]] - [[id:1f395b8c-cf55-43eb-9430-dd9449f6b575][afp_week5]]
- [[id:c6cf8f7a-778f-4e83-b607-753ef8dbb3f1][Airflow]]
- [[id:3b16e19a-62f0-4705-a451-a8790181941f][Airflow Dags]] - [[id:3b16e19a-62f0-4705-a451-a8790181941f][Airflow Dags]]
- [[id:1ea42d73-3cd1-4cac-a6ee-028de21d08d5][Airflow Tasks]] - [[id:1ea42d73-3cd1-4cac-a6ee-028de21d08d5][Airflow Tasks]]
- [[id:e7f2302b-16eb-476d-a7b9-be12f077819d][AOC Notes]] - [[id:e7f2302b-16eb-476d-a7b9-be12f077819d][AOC Notes]]
@@ -19,11 +22,15 @@ A complete alphabetical index of all published pages.
- [[id:580cc3a5-af8e-4cbe-b5ad-5b06680e6c37][Backlog]] - [[id:580cc3a5-af8e-4cbe-b5ad-5b06680e6c37][Backlog]]
- [[id:275988a8-59d8-40c8-a8b4-47118d6eb834][big-o-complexity]] - [[id:275988a8-59d8-40c8-a8b4-47118d6eb834][big-o-complexity]]
- [[id:238ff7d8-db22-41e2-8aad-fc3c778e6248][book-recs]] - [[id:238ff7d8-db22-41e2-8aad-fc3c778e6248][book-recs]]
- [[id:2706598f-e6aa-4e88-8d24-5f699bd22787][book_notes]]
- [[id:63314cff-3a3f-49b4-9e76-4a359c51f55f][Books MOC]]
- [[id:363dbdfa-f23c-4f7e-a6f3-6d34f78984bb][books-org-agenda]] - [[id:363dbdfa-f23c-4f7e-a6f3-6d34f78984bb][books-org-agenda]]
- [[id:bca8e7a6-0590-4630-ab49-210306ad21a2][bowling-kata]] - [[id:bca8e7a6-0590-4630-ab49-210306ad21a2][bowling-kata]]
- [[id:b2fb976a-c23c-4275-8a53-da343c223b97][Brain MOC]]
* C * C
- [[id:5a207a1c-6f02-40d5-b42e-38daaa0aec10][c_notes]] - [[id:5a207a1c-6f02-40d5-b42e-38daaa0aec10][c_notes]]
- [[id:f9838952-9753-471b-a2cc-d72e01a53ef6][career_capital]] - [[id:f9838952-9753-471b-a2cc-d72e01a53ef6][career_capital]]
- [[id:dd04d228-fff5-402a-929d-9d113a2ec965][career_moc]]
- [[id:dd55d635-59de-4ed9-8ff0-423782c2e0ae][clean-code]] - [[id:dd55d635-59de-4ed9-8ff0-423782c2e0ae][clean-code]]
- [[id:22737796-6D31-49D5-84F2-F7BC73E45144][Concepts]] - [[id:22737796-6D31-49D5-84F2-F7BC73E45144][Concepts]]
* D * D
@@ -36,19 +43,24 @@ A complete alphabetical index of all published pages.
- [[id:8e5e9498-ff3c-48e7-aab5-6e94b2e41ccb][emacs-stuff-gtd]] - [[id:8e5e9498-ff3c-48e7-aab5-6e94b2e41ccb][emacs-stuff-gtd]]
- [[id:966175d4-3b58-4abc-9b41-08cbf328dd87][emacs-stuff-keybindings]] - [[id:966175d4-3b58-4abc-9b41-08cbf328dd87][emacs-stuff-keybindings]]
- [[id:2ab0fa3f-8ac6-4af2-8cd4-1dd490fb19c3][emacs-stuff-magit]] - [[id:2ab0fa3f-8ac6-4af2-8cd4-1dd490fb19c3][emacs-stuff-magit]]
- [[id:7d2e867e-f091-4362-a583-453f732207fe][emacs-stuff-org-publish Welcome to My Org Website]] - [[id:7d2e867e-f091-4362-a583-453f732207fe][emacs-stuff-org-publish]]
- [[id:034abe27-ca14-4dc0-9a3f-b8d0e1f26342][emacs-stuff-org-roam]] - [[id:034abe27-ca14-4dc0-9a3f-b8d0e1f26342][emacs-stuff-org-roam]]
- [[id:8fa3f476-6152-45f4-b618-50f1e4bce46c][emacs_moc]] - [[id:8fa3f476-6152-45f4-b618-50f1e4bce46c][emacs_moc]]
* F * F
- [[id:7d199fbe-b0e7-48fd-b8a1-793044dbea01][fyp]] - [[id:7d199fbe-b0e7-48fd-b8a1-793044dbea01][fyp]]
- [[id:26b2ed9a-cb81-4c43-bc63-6b3c8ffa3bf1][fyp-report-planning]] - [[id:26b2ed9a-cb81-4c43-bc63-6b3c8ffa3bf1][fyp-report-planning]]
* G * G
- [[id:74ec625c-3559-4570-8f6e-8272f4859ea7][gitea]]
- [[id:710f65e5-0bd4-42be-b5d1-69dbe79b745e][github_notes]] - [[id:710f65e5-0bd4-42be-b5d1-69dbe79b745e][github_notes]]
- [[id:30c28e5e-0b1c-43ae-b3bd-eb31023f8b73][gpg-encryption]] - [[id:30c28e5e-0b1c-43ae-b3bd-eb31023f8b73][gpg-encryption]]
* H * H
- [[id:347d2663-515b-4d9a-9ee9-7706ee86a845][haskell_notes]]
- [[id:dc9ece84-0b14-4afd-b25a-786cf1618996][HFDP]]
- [[id:086ca3ca-39ec-4d37-b56d-b6d9f51e6873][how-to-solve-leetcode]] - [[id:086ca3ca-39ec-4d37-b56d-b6d9f51e6873][how-to-solve-leetcode]]
* I * I
- [[id:9d5aae0f-4ae1-49a5-a047-9099baad0a06][i3-wm]] - [[id:9d5aae0f-4ae1-49a5-a047-9099baad0a06][i3-wm]]
- [[id:DE792A73-FD00-4048-82D8-AB6E84E869F2][Index]]
- [[id:c69e4c4d-2fb4-4cf1-a835-a235cf6db8e9][ise]]
- [[id:06b2a012-4e8a-4a8a-9494-de7ed9fbe1d3][ise_week_1]] - [[id:06b2a012-4e8a-4a8a-9494-de7ed9fbe1d3][ise_week_1]]
- [[id:f308642d-fcf3-410b-b154-d60582e112a2][ise_week_2]] - [[id:f308642d-fcf3-410b-b154-d60582e112a2][ise_week_2]]
- [[id:1d0fa257-579f-49f3-b8fd-a3b68ddccf10][ise_week_3]] - [[id:1d0fa257-579f-49f3-b8fd-a3b68ddccf10][ise_week_3]]
@@ -64,12 +76,15 @@ A complete alphabetical index of all published pages.
- [[id:0217f537-442a-4593-8c69-d481f0d1f2a8][keyboard]] - [[id:0217f537-442a-4593-8c69-d481f0d1f2a8][keyboard]]
* L * L
- [[id:63456626-b34e-46d9-b85e-0f1f5724aa83][lazy_evaluation]] - [[id:63456626-b34e-46d9-b85e-0f1f5724aa83][lazy_evaluation]]
- [[id:93a43a24-6861-40c4-b45b-581977bb55cf][leetcode-arrays]]
- [[id:9d1cfccc-8da7-41a3-b435-9857f0abe441][leetcode_notes]]
- [[id:569a4a57-1843-4821-8259-17762855985e][linux-arch-linux]] - [[id:569a4a57-1843-4821-8259-17762855985e][linux-arch-linux]]
- [[id:bdb493df-db92-4c93-9558-0b10fdff3048][linux_moc]] - [[id:bdb493df-db92-4c93-9558-0b10fdff3048][linux_moc]]
* M * M
- [[id:bcd41e87-120c-455c-8898-996ddaa41f75][maven-pom-file]] - [[id:bcd41e87-120c-455c-8898-996ddaa41f75][maven-pom-file]]
- [[id:ABF4A0BE-0309-48A6-92ED-76031B3D2F86][Microlise MOC]] - [[id:ABF4A0BE-0309-48A6-92ED-76031B3D2F86][Microlise MOC]]
- [[id:f877240e-c2c8-4087-84e5-4b1ca3fcd4ed][microlise-assessment]] - [[id:f877240e-c2c8-4087-84e5-4b1ca3fcd4ed][microlise-assessment]]
- [[id:08415f5c-986e-45a6-8ea1-f3bedcc996f0][misc_moc]]
* N * N
- [[id:4426cc9a-1568-4fc8-9242-269654c43a3b][naqshe-hayat]] - [[id:4426cc9a-1568-4fc8-9242-269654c43a3b][naqshe-hayat]]
- [[id:0880f089-a5ad-49cd-8ce3-f020a5941313][networking-moc]] - [[id:0880f089-a5ad-49cd-8ce3-f020a5941313][networking-moc]]
@@ -89,7 +104,7 @@ A complete alphabetical index of all published pages.
* R * R
- [[id:EA93341B-20C0-48A2-BD88-F24ED3C540DA][recipes-done]] - [[id:EA93341B-20C0-48A2-BD88-F24ED3C540DA][recipes-done]]
- [[id:F7D68FF4-CAD0-4791-BAE4-AC20B84A8785][recipes-ideas]] - [[id:F7D68FF4-CAD0-4791-BAE4-AC20B84A8785][recipes-ideas]]
- [[id:65F747B1-3CB2-429A-9E26-ED8BC169E689][recipes-moc]] - [[id:65F747B1-3CB2-429A-9E26-ED8BC169E689][recipes-main]]
* S * S
- [[id:99533f2d-a4e8-41d0-a605-c7d4cef6f995][self_hosting]] - [[id:99533f2d-a4e8-41d0-a605-c7d4cef6f995][self_hosting]]
- [[id:f09cb4ed-1407-4187-9002-de2c5db13a8f][server_moc]] - [[id:f09cb4ed-1407-4187-9002-de2c5db13a8f][server_moc]]
@@ -100,18 +115,19 @@ A complete alphabetical index of all published pages.
- [[id:acba0d25-08db-4784-8cc2-fe5c437ba723][stanford_marshmallow_experiment]] - [[id:acba0d25-08db-4784-8cc2-fe5c437ba723][stanford_marshmallow_experiment]]
- [[id:bf277242-4f09-46a2-aa6b-1d75ce0025ac][systemd_services]] - [[id:bf277242-4f09-46a2-aa6b-1d75ce0025ac][systemd_services]]
* T * T
- [[id:2f285f04-fcf4-4ade-a1ac-2c50b43d529a][Technical MOC]]
- [[id:37495d5f-2a77-40bc-b45c-8163189bbe6b][technical-commonplace]] - [[id:37495d5f-2a77-40bc-b45c-8163189bbe6b][technical-commonplace]]
- [[id:2f285f04-fcf4-4ade-a1ac-2c50b43d529a][technical_moc]]
- [[id:2729599d-ae2b-4f22-b73d-bf22d81e0767][Test Driven Development]] - [[id:2729599d-ae2b-4f22-b73d-bf22d81e0767][Test Driven Development]]
- [[id:EC9D851F-3A2E-4F32-A584-76F6F7A08E30][the_clean_coder]] - [[id:EC9D851F-3A2E-4F32-A584-76F6F7A08E30][the_clean_coder]]
- [[id:455ef38f-9a5f-4f62-afe9-25e2261e1282][the_science_of_self_discipline]]
- [[id:5443ed1c-bb7f-4eb4-9c96-d12648dd2291][tpis]] - [[id:5443ed1c-bb7f-4eb4-9c96-d12648dd2291][tpis]]
* U * U
- [[id:4a8edaed-9ebd-402b-9c5f-7a0cb4399102][uml_fyp]] - [[id:4a8edaed-9ebd-402b-9c5f-7a0cb4399102][uml_fyp]]
- [[id:797d6e3e-98eb-4bc7-88b6-e096ef7306ad][uni_moc]] - [[id:797d6e3e-98eb-4bc7-88b6-e096ef7306ad][uni_moc]]
- [[id:dc9ece84-0b14-4afd-b25a-786cf1618996][Untitled]]
- [[id:d939e477-d1e9-43ea-960e-8727246d12a3][useful-c-imports]] - [[id:d939e477-d1e9-43ea-960e-8727246d12a3][useful-c-imports]]
* W * W
- [[id:7612a9a6-ae70-4525-93a0-81bac857df39][wacom-notes]] - [[id:7612a9a6-ae70-4525-93a0-81bac857df39][wacom-notes]]
- [[id:348df473-6443-4f4a-b366-95397b574989][web-port-notes]]
- [[id:c1de3972-e932-48fd-8065-3d89dad58007][wedding_moc]] - [[id:c1de3972-e932-48fd-8065-3d89dad58007][wedding_moc]]
- [[id:8CE93986-280B-45BD-9DF2-5D06586DDDE7][workflow-moc]] - [[id:8CE93986-280B-45BD-9DF2-5D06586DDDE7][workflow-moc]]
- [[id:b2db0b0b-c179-43ab-9e2b-22bbaac69bcb][wp-emacs-config-blorg]] - [[id:b2db0b0b-c179-43ab-9e2b-22bbaac69bcb][wp-emacs-config-blorg]]

View File

@@ -1,4 +1,4 @@
@media (max-width: 600px){ @media (max-width: 768px){
.banner-header{ flex-direction: column; align-items: center; text-align: center; } .banner-header{ flex-direction: column; align-items: center; text-align: center; }
.banner-left{ margin: 0 0 .5rem 0; } .banner-left{ margin: 0 0 .5rem 0; }
.banner-logo{ margin: 0; } .banner-logo{ margin: 0; }

View File

@@ -1,8 +1,11 @@
#+title: HFDP
* Head First Design Patterns * Head First Design Patterns
:PROPERTIES: :PROPERTIES:
:NOTER_DOCUMENT: ../../../pdfs/bootcamp/Head First Design Patterns.pdf :NOTER_DOCUMENT: ../../../pdfs/bootcamp/Head First Design Patterns.pdf
:ID: dc9ece84-0b14-4afd-b25a-786cf1618996 :ID: dc9ece84-0b14-4afd-b25a-786cf1618996
:END: :END:
** Chapter 1 ** Chapter 1
:PROPERTIES: :PROPERTIES:
:NOTER_PAGE: 36 :NOTER_PAGE: 36

View File

@@ -176,40 +176,6 @@ Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"htt
(defvar z/build-full-rebuild t (defvar z/build-full-rebuild t
"If non-nil, generate expensive artifacts like search-index.json.") "If non-nil, generate expensive artifacts like search-index.json.")
(defun z/generate-all-files-page ()
"Generate all-files.org from search-index.json."
(let* ((json-file "~/master-folder/org_files/org_roam/output/search-index.json")
(out-file "~/master-folder/org_files/org_roam/all-files.org")
(data (append (json-read-file json-file) nil)))
(message "🔎 Loaded %d entries from search-index.json" (length data))
(with-temp-file out-file
(insert "#+title: All Files\n")
(insert "#+options: toc:nil\n\n")
(insert "A complete alphabetical index of all published pages.\n\n")
(setq data
(sort data
(lambda (a b)
(string-lessp
(downcase (cdr (assoc 'title a)))
(downcase (cdr (assoc 'title b)))))))
(let ((current-letter nil))
(dolist (entry data)
(let* ((title (cdr (assoc 'title entry)))
(raw-url (cdr (assoc 'url entry)))
(id (cdr (assoc 'id entry)))
(letter (upcase (substring title 0 1))))
(unless (equal letter current-letter)
(setq current-letter letter)
(insert (format "* %s\n" letter)))
(insert (format "- [[id:%s][%s]]\n" id title))))))))
;; Babel language support ;; Babel language support
(org-babel-do-load-languages (org-babel-do-load-languages
'org-babel-load-languages 'org-babel-load-languages
@@ -281,41 +247,6 @@ Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"htt
(setq org-html-link-home "") (setq org-html-link-home "")
(setq org-html-link-up "") (setq org-html-link-up "")
(defun z/generate-search-index (&rest _)
"Generate search-index.json with title, url, and id."
(when z/build-full-rebuild
(message "Generating search-index.json...")
(let* ((org-dir "~/master-folder/org_files/org_roam/")
(out-file "~/master-folder/org_files/org_roam/output/search-index.json")
(files
(seq-filter
(lambda (f)
(not (string-match-p "/\\.#[^/]+\\.org$" f)))
(directory-files-recursively org-dir "\\.org$")))
(index '()))
(dolist (file files)
(with-current-buffer (find-file-noselect file)
(let ((id (org-id-get nil)))
(when id
(push `((title . ,(or (org-get-title) "Untitled"))
(url . ,(concat "/" (file-name-base file) ".html"))
(id . ,id))
index)))))
;; De-duplicate by ID
(setq index
(cl-remove-duplicates
index
:key (lambda (e) (cdr (assoc 'id e)))
:test #'string=))
(with-temp-file out-file
(insert (json-encode index)))
(message "search-index.json generated (%d entries)." (length index)))))
(add-hook 'org-publish-after-publishing-hook
#'z/generate-search-index)
(setq org-publish-project-alist (setq org-publish-project-alist
@@ -353,7 +284,6 @@ Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"htt
(interactive) (interactive)
(setq z/build-full-rebuild t) (setq z/build-full-rebuild t)
(org-id-update-id-locations) (org-id-update-id-locations)
(z/generate-all-files-page)
(org-publish "org-roam" t) (org-publish "org-roam" t)
(org-publish "org-static" t) (org-publish "org-static" t)
(message "✅ Full rebuild complete")) (message "✅ Full rebuild complete"))
@@ -362,7 +292,6 @@ Created with %c on <a href=\"https://www.archlinux.org/\">Arch</a> <a href=\"htt
"Fast rebuild: Org + assets only (no JSON)." "Fast rebuild: Org + assets only (no JSON)."
(interactive) (interactive)
(setq z/build-full-rebuild nil) (setq z/build-full-rebuild nil)
(z/generate-all-files-page)
(org-publish "org-roam" t) (org-publish "org-roam" t)
(org-publish "org-static" t) (org-publish "org-static" t)
(message "⚡ Fast rebuild complete (no search index)")) (message "⚡ Fast rebuild complete (no search index)"))