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() 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