From c55f1656473bbc39a2692727b26a613e42bba8e8 Mon Sep 17 00:00:00 2001 From: Steven Clontz Date: Fri, 21 Jun 2024 14:51:57 +0000 Subject: [PATCH 1/2] remove stale testing file --- pelican-testing.py | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 pelican-testing.py diff --git a/pelican-testing.py b/pelican-testing.py deleted file mode 100644 index 9c7f98a0..00000000 --- a/pelican-testing.py +++ /dev/null @@ -1,30 +0,0 @@ -from pelican import Pelican -from pelican.settings import configure_settings, DEFAULT_CONFIG -from pretext.project import Project - -config = DEFAULT_CONFIG -config["PATH"] = "foobar-in" -config["THEME"] = "pelican-ptx" -config["OUTPUT_PATH"] = "foobar-out" -config["RELATIVE_URLS"] = True -config["TIMEZONE"] = "Etc/UTC" -config["ARTICLE_PATHS"] = ["updates"] -config["ARTICLE_SAVE_AS"] = "updates/{date:%Y%m%d}-{slug}.html" -config["ARTICLE_URL"] = config["ARTICLE_SAVE_AS"] - -p = Project.parse("new-pretext-project") -root = p.get_target().source_element() -for title_ele in root.iterdescendants("title"): - config["SITENAME"] = title_ele.text - break -else: - config["SITENAME"] = "My PreTeXt Project" -for title_ele in root.iterdescendants("subtitle"): - config["SITESUBTITLE"] = title_ele.text - break - -config["PTX_TARGETS"] = [ - (t.name.capitalize(), t.deploy_dir_path()) for t in p.deploy_targets() -] - -Pelican(configure_settings(config)).run() From 03c0ec31c66d71ce0e4735f349b783196dc3f2da Mon Sep 17 00:00:00 2001 From: Steven Clontz Date: Fri, 21 Jun 2024 14:53:27 +0000 Subject: [PATCH 2/2] include resource zip files in package --- pyproject.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 537d92c4..76d5baf0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -20,8 +20,7 @@ authors = ["Oscar Levin ", "Steven Clontz