diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-08 03:18:31 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-08 03:18:31 -0600 |
commit | 35ff363e779149b6364901a53dd1eefe89ca5ddb (patch) | |
tree | 579302f30c3796d7c32885c63f2e0e8de5813cb4 /src/pyssg/pyssg.py | |
parent | 40d23848d816816b3db3e7296e8a28f964b53786 (diff) |
refactor code, small bug fixing and changes
Diffstat (limited to 'src/pyssg/pyssg.py')
-rw-r--r-- | src/pyssg/pyssg.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/pyssg/pyssg.py b/src/pyssg/pyssg.py index 718e043..94584aa 100644 --- a/src/pyssg/pyssg.py +++ b/src/pyssg/pyssg.py @@ -107,8 +107,11 @@ def main() -> None: db: Database = Database(config['path']['db']) db.read() - builder: Builder = Builder(config, db, "/") - builder.build() + log.debug('building all dir_paths found in config') + for dir_path in config['dirs'].keys(): + log.debug('building for "%s"', dir_path) + builder: Builder = Builder(config, db, dir_path) + builder.build() db.write() log.info('finished building the html files') |