summaryrefslogtreecommitdiff
path: root/src/pyssg/parser.py
diff options
context:
space:
mode:
authorDavid Luevano Alvarado <david@luevano.xyz>2021-05-09 12:37:01 -0600
committerDavid Luevano Alvarado <david@luevano.xyz>2021-05-09 12:37:01 -0600
commit0a9c6693255800c6c197a3dcf3614046c296e293 (patch)
treed4e9999c2a0931db95379f7cb3a9c5fe0d7a7eaa /src/pyssg/parser.py
parent6f143604c28c3165db35c2cad99a0dc76d7ccdaa (diff)
semiworking program, still very alpha
Diffstat (limited to 'src/pyssg/parser.py')
-rw-r--r--src/pyssg/parser.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/pyssg/parser.py b/src/pyssg/parser.py
deleted file mode 100644
index 8b8d108..0000000
--- a/src/pyssg/parser.py
+++ /dev/null
@@ -1,24 +0,0 @@
-import os
-from .discovery import get_all_files
-
-
-def create_dir_structure(dirs: list[str]):
- cwd = os.getcwd()
-
- for d in dirs:
- try:
- os.makedirs(os.path.join(cwd, d[1:]))
- except FileExistsError:
- pass
-
-
-def generate_static_site(src: str, dst: str):
- iwd = os.getcwd()
-
- os.chdir(src)
- dirs, md_files, html_files = get_all_files()
- os.chdir(iwd)
-
- os.chdir(dst)
- create_dir_structure(dirs)
- os.chdir(iwd)