From 50f7ee786d9704ecfd67a9fe2eb8f338fc983dc1 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 11 Jul 2022 14:40:55 +1000 Subject: [PATCH] handle public folder shenanigans --- basant/build/kitaab.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/basant/build/kitaab.py b/basant/build/kitaab.py index 7b32647..a9d0d46 100644 --- a/basant/build/kitaab.py +++ b/basant/build/kitaab.py @@ -413,6 +413,10 @@ def clean_path(path): items = path_clean.split('\\') else: items = path_clean.split('/') + # TODO ugly hack to handle poonam outputting public, but we want ./ + print(items) + if items[0] == 'public': + items[0] = './' path_items = { "slug": None,