diff options
| author | Preston Pan <ret2pop@nullring.xyz> | 2026-03-08 00:17:27 -0800 |
|---|---|---|
| committer | Preston Pan <ret2pop@nullring.xyz> | 2026-03-08 00:17:27 -0800 |
| commit | 69dbf05a50c1c8668cea938c13f8f2c7fadddcc7 (patch) | |
| tree | 1507575bd3c8fecbb844f65949f659e6233530d2 | |
| parent | ddd67489f291db60e6eead35a77b84a91f9aaa37 (diff) | |
| parent | 5c40bc887a74718f5b16f604fa133d120a9c096c (diff) | |
Merge branch 'chore/perfect-css'
| l--------- | .pre-commit-config.yaml | 2 | ||||
| -rw-r--r-- | README.org | 2 | ||||
| -rw-r--r-- | config/emacs.org | 1 | ||||
| -rw-r--r-- | flake.nix | 17 | ||||
| m--------- | nix | 0 | ||||
| -rw-r--r-- | style.css | 20 |
6 files changed, 31 insertions, 11 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ced6b79..1218248 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/fs5hda5aqxn0p2bl0vnn9agf81r6rxdy-pre-commit-config.json
\ No newline at end of file @@ -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/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 @@ -64,6 +64,11 @@ 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 \ + "$RESULT_PATH/**/*.html" else echo "Website build failed, skipping lychee." exit 1 @@ -190,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)))" \ @@ -203,13 +209,15 @@ 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 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 "<link rel=\"stylesheet\" type=\"text/css\" href=\"/syntax.css\" />")' \ - --eval '(org-publish-all t)' \ - --eval '(org-publish-all nil)' || (echo "FAIL:" && cat /build/*.log && exit 1) - echo "Setting up Graph View..." + --eval '(setq org-html-head-extra "<link rel=\"stylesheet\" type=\"text/css\" href=\"/syntax.css\" />\n<script> window.MathJax = { tex: { tags: \"ams\", tagSide: \"left\", tagIndent: \"1em\" }, chtml: { displayAlign: \"left\", displayIndent: \"3em\" } }; </script>")' \ + --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 \ @@ -254,6 +262,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 -Subproject 589f94a13d2ef53ec56c3f29df4fd988e290fda +Subproject 7515c347c91b007b9adafcc62066854dfda9c99 @@ -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; } } |
