From 6f143604c28c3165db35c2cad99a0dc76d7ccdaa Mon Sep 17 00:00:00 2001 From: David Luevano Alvarado Date: Wed, 5 May 2021 09:37:43 -0600 Subject: Add working file discovery and destination file structure creation --- ChangeLog | 1 + example/templates/article/article_entry.html | 1 - example/templates/article/article_footer.html | 0 example/templates/article/article_header.html | 1 - example/templates/article/article_list_footer.html | 1 - example/templates/article/article_list_header.html | 2 - example/templates/article/article_separator.html | 0 example/templates/article/footer.html | 2 - example/templates/article/header.html | 8 --- example/templates/article/index_footer.html | 0 example/templates/article/index_header.html | 0 example/templates/article/tag_entry.html | 1 - example/templates/article/tag_index_footer.html | 0 example/templates/article/tag_index_header.html | 0 example/templates/article/tag_list_footer.html | 1 - example/templates/article/tag_list_header.html | 1 - example/templates/article/tag_separator.html | 1 - example_src/a/test3.md | 0 example_src/a/test4.md | 0 example_src/a/test6.html | 0 example_src/b/c/test8.html | 0 example_src/b/c/test9.md | 0 example_src/b/test7.html | 0 example_src/templates/article/article_entry.html | 1 + example_src/templates/article/article_footer.html | 0 example_src/templates/article/article_header.html | 1 + .../templates/article/article_list_footer.html | 1 + .../templates/article/article_list_header.html | 2 + .../templates/article/article_separator.html | 0 example_src/templates/article/footer.html | 2 + example_src/templates/article/header.html | 8 +++ example_src/templates/article/index_footer.html | 0 example_src/templates/article/index_header.html | 0 example_src/templates/article/tag_entry.html | 1 + .../templates/article/tag_index_footer.html | 0 .../templates/article/tag_index_header.html | 0 example_src/templates/article/tag_list_footer.html | 1 + example_src/templates/article/tag_list_header.html | 1 + example_src/templates/article/tag_separator.html | 1 + example_src/test.md | 0 example_src/test2.md | 0 example_src/test5.html | 0 src/pyssg/discovery.py | 40 +++++++++++ src/pyssg/file_discovery.py | 5 -- src/pyssg/file_structure.py | 76 -------------------- src/pyssg/parser.py | 24 +++++++ src/pyssg/pyssg.py | 37 ++++++---- src/pyssg/templates.py | 83 ++++++++++++++++++++++ 48 files changed, 191 insertions(+), 113 deletions(-) delete mode 100644 example/templates/article/article_entry.html delete mode 100644 example/templates/article/article_footer.html delete mode 100644 example/templates/article/article_header.html delete mode 100644 example/templates/article/article_list_footer.html delete mode 100644 example/templates/article/article_list_header.html delete mode 100644 example/templates/article/article_separator.html delete mode 100644 example/templates/article/footer.html delete mode 100644 example/templates/article/header.html delete mode 100644 example/templates/article/index_footer.html delete mode 100644 example/templates/article/index_header.html delete mode 100644 example/templates/article/tag_entry.html delete mode 100644 example/templates/article/tag_index_footer.html delete mode 100644 example/templates/article/tag_index_header.html delete mode 100644 example/templates/article/tag_list_footer.html delete mode 100644 example/templates/article/tag_list_header.html delete mode 100644 example/templates/article/tag_separator.html create mode 100644 example_src/a/test3.md create mode 100644 example_src/a/test4.md create mode 100644 example_src/a/test6.html create mode 100644 example_src/b/c/test8.html create mode 100644 example_src/b/c/test9.md create mode 100644 example_src/b/test7.html create mode 100644 example_src/templates/article/article_entry.html create mode 100644 example_src/templates/article/article_footer.html create mode 100644 example_src/templates/article/article_header.html create mode 100644 example_src/templates/article/article_list_footer.html create mode 100644 example_src/templates/article/article_list_header.html create mode 100644 example_src/templates/article/article_separator.html create mode 100644 example_src/templates/article/footer.html create mode 100644 example_src/templates/article/header.html create mode 100644 example_src/templates/article/index_footer.html create mode 100644 example_src/templates/article/index_header.html create mode 100644 example_src/templates/article/tag_entry.html create mode 100644 example_src/templates/article/tag_index_footer.html create mode 100644 example_src/templates/article/tag_index_header.html create mode 100644 example_src/templates/article/tag_list_footer.html create mode 100644 example_src/templates/article/tag_list_header.html create mode 100644 example_src/templates/article/tag_separator.html create mode 100644 example_src/test.md create mode 100644 example_src/test2.md create mode 100644 example_src/test5.html create mode 100644 src/pyssg/discovery.py delete mode 100644 src/pyssg/file_discovery.py delete mode 100644 src/pyssg/file_structure.py create mode 100644 src/pyssg/parser.py create mode 100644 src/pyssg/templates.py diff --git a/ChangeLog b/ChangeLog index e404d77..9ae16c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ CHANGES ======= +* initial template creation, barebones arg parser * Prepare barebones package info * Update readme * Initial commit diff --git a/example/templates/article/article_entry.html b/example/templates/article/article_entry.html deleted file mode 100644 index 6e6befd..0000000 --- a/example/templates/article/article_entry.html +++ /dev/null @@ -1 +0,0 @@ -
  • $$DATE $$TITLE
  • diff --git a/example/templates/article/article_footer.html b/example/templates/article/article_footer.html deleted file mode 100644 index e69de29..0000000 diff --git a/example/templates/article/article_header.html b/example/templates/article/article_header.html deleted file mode 100644 index d2954d9..0000000 --- a/example/templates/article/article_header.html +++ /dev/null @@ -1 +0,0 @@ -

    $$TITLE

    \ No newline at end of file diff --git a/example/templates/article/article_list_footer.html b/example/templates/article/article_list_footer.html deleted file mode 100644 index 3d3a44c..0000000 --- a/example/templates/article/article_list_footer.html +++ /dev/null @@ -1 +0,0 @@ - diff --git a/example/templates/article/article_list_header.html b/example/templates/article/article_list_header.html deleted file mode 100644 index 7b504ea..0000000 --- a/example/templates/article/article_list_header.html +++ /dev/null @@ -1,2 +0,0 @@ -

    Articles

    - diff --git a/example_src/templates/article/article_list_header.html b/example_src/templates/article/article_list_header.html new file mode 100644 index 0000000..7b504ea --- /dev/null +++ b/example_src/templates/article/article_list_header.html @@ -0,0 +1,2 @@ +

    Articles

    +