From 5e1742a3be5afae155fb37f1c469945d2ee0dffc Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Mar 2026 23:39:24 -0800 Subject: fix latex block overflow mobile --- .pre-commit-config.yaml | 2 +- flake.nix | 12 +++++++++++- nix | 2 +- style.css | 20 +++++++++++++++----- 4 files changed, 28 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ced6b79..b3352a7 120000 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/0c2jj36d8x29xq9010x4j4qyl6bx4m7c-pre-commit-config.json \ No newline at end of file +/nix/store/zlqkxn1ybpxqhdyh99xp5a2ri8sj77va-pre-commit-config.json \ No newline at end of file diff --git a/flake.nix b/flake.nix index ff8bc14..9d73f82 100644 --- a/flake.nix +++ b/flake.nix @@ -64,6 +64,12 @@ fi RESULT_PATH=$(nix build .#website --no-link --print-out-paths) if [ -d "$RESULT_PATH" ]; then echo "Running lychee link check..." + ${pkgs.lychee}/bin/lychee --root-dir "$RESULT_PATH" \ + --offline \ + --verbose \ + --no-progress \ + --exclude-mail \ + "$RESULT_PATH/**/*.html" else echo "Website build failed, skipping lychee." exit 1 @@ -203,10 +209,13 @@ emacs -q --batch \ --eval '(setq default-directory (expand-file-name "~/monorepo"))' \ --eval '(setq org-html-link-use-abs-url nil)' \ --eval '(setq org-html-link-org-files-as-html t)' \ + --eval '(setq vc-handled-backends nil)' \ --eval '(require (quote htmlize))' \ --eval '(require (quote nix-mode))' \ + --eval '(setq gc-cons-threshold 100000000)' \ + --eval '(setq make-backup-files nil auto-save-default nil create-lockfiles nil)' \ --eval '(setq org-html-htmlize-output-type (quote css))' \ - --eval '(setq org-html-head-extra "")' \ + --eval '(setq org-html-head-extra "\n")' \ --eval '(org-publish-all t)' \ --eval '(org-publish-all nil)' || (echo "FAIL:" && cat /build/*.log && exit 1) echo "Setting up Graph View..." @@ -254,6 +263,7 @@ sha256sum installer.iso > installer.iso.sha256 ${pre-commit-check.shellHook} git config branch.main.mergeoptions "--no-ff" alias gprune='git branch --merged | grep -v -E "^\*|main|master|dev" | xargs -r git branch -d' +alias serve='cd result; python3 -m http.server 10005' ''; buildInputs = [ deadnix diff --git a/nix b/nix index 589f94a..3563f25 160000 --- a/nix +++ b/nix @@ -1 +1 @@ -Subproject commit 589f94a13d2ef53ec56c3f29df4fd988e290fdaa +Subproject commit 3563f2560116ad3d8345f34edf11ac7921c1d023 diff --git a/style.css b/style.css index bda5c63..88760b4 100644 --- a/style.css +++ b/style.css @@ -337,9 +337,13 @@ li { margin: 0.3rem 0; } mjx-container[jax="CHTML"] { &[display="true"] { + display: block !important; + min-width: 0 !important; + overflow-y: hidden !important; + overflow-x: auto !important; + background: rgba(212, 163, 115, 0.05); padding: 1.5rem; - text-align: left !important; border-left: 2px solid var(--accent); margin: 2rem 0 !important; @@ -347,10 +351,16 @@ mjx-container[jax="CHTML"] { } &:not([display="true"]) { - padding: 0; - margin: 0; - background: transparent; - border: none; + padding: 0; margin: 0; background: transparent; border: none; + } + + & mjx-mtable { + margin-left: 0 !important; + text-align: left !important; + } + + & mjx-mtd { + text-align: left !important; } } -- cgit v1.3 From 35272c1b68e013f11eaf0dc94458adb97fd059df Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Mar 2026 23:49:54 -0800 Subject: make not export --- README.org | 2 +- nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.org b/README.org index f45086f..8d8f7c7 100644 --- a/README.org +++ b/README.org @@ -12,7 +12,7 @@ It's ret2pop, a wholistic experience powered by NixOS and Emacs. ** so how did you actually do that? By using the ~org-publish~ function, ~org-roam~, and ~org-journal~, as well as writing a lot of things with a literate config. To see more, see my -[[file:config/emacs.org][emacs configuration]] and my [[file:config/nix.org][NixOS configuration]]. +[[file:config/emacs.org][emacs configuration]] and my [[file:config/nix.org][NixOS configuration]] ** So, where is this website of yours located? https://ret2pop.net, it is the road to enlightenment. * Wait, so where are your dotfiles? diff --git a/nix b/nix index 3563f25..8cb2822 160000 --- a/nix +++ b/nix @@ -1 +1 @@ -Subproject commit 3563f2560116ad3d8345f34edf11ac7921c1d023 +Subproject commit 8cb28227cee305353c82e95c2d20f4cff5ea5830 -- cgit v1.3 From 87f9a8fb4924f20f20ee1ef4c2b63a62cfe3578d Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sat, 7 Mar 2026 23:59:37 -0800 Subject: fix hook? --- .pre-commit-config.yaml | 2 +- flake.nix | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b3352a7..1218248 120000 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1 +1 @@ -/nix/store/zlqkxn1ybpxqhdyh99xp5a2ri8sj77va-pre-commit-config.json \ No newline at end of file +/nix/store/fs5hda5aqxn0p2bl0vnn9agf81r6rxdy-pre-commit-config.json \ No newline at end of file diff --git a/flake.nix b/flake.nix index 9d73f82..d7d1c2a 100644 --- a/flake.nix +++ b/flake.nix @@ -68,7 +68,6 @@ if [ -d "$RESULT_PATH" ]; then --offline \ --verbose \ --no-progress \ - --exclude-mail \ "$RESULT_PATH/**/*.html" else echo "Website build failed, skipping lychee." @@ -216,9 +215,9 @@ emacs -q --batch \ --eval '(setq make-backup-files nil auto-save-default nil create-lockfiles nil)' \ --eval '(setq org-html-htmlize-output-type (quote css))' \ --eval '(setq org-html-head-extra "\n")' \ - --eval '(org-publish-all t)' \ - --eval '(org-publish-all nil)' || (echo "FAIL:" && cat /build/*.log && exit 1) - echo "Setting up Graph View..." + --eval '(org-publish-all t)' || (echo "FAIL:" && cat /build/*.log && exit 1) + +echo "Setting up Graph View..." ${publish-org-roam-ui.packages.${system}.default}/bin/build-org-roam-graph \ $HOME/.emacs.d/org-roam.db \ $HOME/monorepo/mindmap \ -- cgit v1.3 From cd7bea112636559c28d9ae120094f8f8c5ece1f2 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Mar 2026 00:02:32 -0800 Subject: change nix --- nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix b/nix index 8cb2822..39253f6 160000 --- a/nix +++ b/nix @@ -1 +1 @@ -Subproject commit 8cb28227cee305353c82e95c2d20f4cff5ea5830 +Subproject commit 39253f6dd103a9c973e36fc08f90a73a696ff229 -- cgit v1.3 From 5c40bc887a74718f5b16f604fa133d120a9c096c Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Mar 2026 00:10:56 -0800 Subject: fix emacs hopefully --- config/emacs.org | 1 + flake.nix | 2 +- nix | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/emacs.org b/config/emacs.org index f54e70e..0705af9 100644 --- a/config/emacs.org +++ b/config/emacs.org @@ -171,6 +171,7 @@ This is my org mode configuration, which also configures latex. '(("website-org" :base-directory "~/monorepo" :base-extension "org" + :exclude "nix/README\\.org" :publishing-directory "~/website_html" :with-author t :with-date t diff --git a/flake.nix b/flake.nix index d7d1c2a..c440935 100644 --- a/flake.nix +++ b/flake.nix @@ -195,6 +195,7 @@ emacs -q --batch \ --eval '(setq org-export-with-latex t)' \ --eval '(setq org-confirm-babel-evaluate nil)' \ --eval '(setq load-prefer-newer t)' \ + --eval '(setq gc-cons-threshold 100000000)' \ -l ${nixmacs}/init.el \ --eval '(setq custom-safe-themes t)' \ --eval "(org-babel-do-load-languages 'org-babel-load-languages '((latex . t)))" \ @@ -211,7 +212,6 @@ emacs -q --batch \ --eval '(setq vc-handled-backends nil)' \ --eval '(require (quote htmlize))' \ --eval '(require (quote nix-mode))' \ - --eval '(setq gc-cons-threshold 100000000)' \ --eval '(setq make-backup-files nil auto-save-default nil create-lockfiles nil)' \ --eval '(setq org-html-htmlize-output-type (quote css))' \ --eval '(setq org-html-head-extra "\n")' \ diff --git a/nix b/nix index 39253f6..7515c34 160000 --- a/nix +++ b/nix @@ -1 +1 @@ -Subproject commit 39253f6dd103a9c973e36fc08f90a73a696ff229 +Subproject commit 7515c347c91b007b9adafcc62066854dfda9c990 -- cgit v1.3