Remove obsolete generated assets and dead code
All checks were successful
Build Org Website / build (push) Successful in 43s

This commit is contained in:
gitea-actions
2026-08-19 10:53:30 +01:00
parent 2ee6575539
commit d12edea8de
269 changed files with 58 additions and 85836 deletions

View File

@@ -261,58 +261,4 @@
(result (z/org-html-add-body-classes output 'latex info)))
(should (string= output result))))))
;; ── standalone RPG export ────────────────────────────────────────────────────
(ert-deftest test/rpg-standalone-export-removes-normal-site-chrome ()
"The RPG final-output filter should return a dedicated viewport document."
(let* ((info (list :input-file (site-path "play/rpg.org")))
(output (concat
"<html><head><script src=\"search.js\"></script></head><body>"
"<div class=\"banner-header\">Normal site</div>"
z/rpg-standalone-start
"<main data-princess-lima-rpg>Game</main>"
"<script src=\"/assets/scripts/pages/princess-lima-game.js\"></script>"
z/rpg-standalone-end
"<footer>Normal footer</footer></body></html>"))
(result (z/render-rpg-standalone output 'html info)))
(should (string-match-p "class=\"princess-lima-page\"" result))
(should (string-match-p "data-princess-lima-rpg" result))
(should (string-match-p "princess-lima-game.js" result))
(should-not (string-match-p "banner-header" result))
(should-not (string-match-p "Normal footer" result))
(should-not (string-match-p "search.js" result))))
(ert-deftest test/rpg-standalone-export-ignores-other-pages ()
"Normal pages must retain their existing exported document."
(let* ((info (list :input-file (site-path "index.org")))
(output "<html><body><div class=\"banner-header\">Site</div></body></html>"))
(should (string= output (z/render-rpg-standalone output 'html info)))))
;; ── standalone Two Rivers export ─────────────────────────────────────────────
(ert-deftest test/two-rivers-standalone-export-removes-normal-site-chrome ()
"The Two Rivers final-output filter should return a dedicated game document."
(let* ((info (list :input-file (site-path "play/two-rivers.org")))
(output (concat
"<html><head><script src=\"search.js\"></script></head><body>"
"<div class=\"banner-header\">Normal site</div>"
z/two-rivers-standalone-start
"<main data-two-rivers>Game</main>"
"<script type=\"module\" src=\"/assets/scripts/games/two-rivers/main.js\"></script>"
z/two-rivers-standalone-end
"<footer>Normal footer</footer></body></html>"))
(result (z/render-two-rivers-standalone output 'html info)))
(should (string-match-p "class=\"two-rivers-page\"" result))
(should (string-match-p "data-two-rivers" result))
(should (string-match-p "two-rivers/main.js" result))
(should-not (string-match-p "banner-header" result))
(should-not (string-match-p "Normal footer" result))
(should-not (string-match-p "search.js" result))))
(ert-deftest test/two-rivers-standalone-export-ignores-other-pages ()
"The Two Rivers filter must leave every other page unchanged."
(let* ((info (list :input-file (site-path "play/rpg.org")))
(output "<html><body><main>Existing RPG</main></body></html>"))
(should (string= output (z/render-two-rivers-standalone output 'html info)))))
;;; build-site-tests.el ends here