diff options
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') |