diff options
author | David Luevano Alvarado <david@luevano.xyz> | 2022-12-05 05:03:45 -0600 |
---|---|---|
committer | David Luevano Alvarado <david@luevano.xyz> | 2022-12-05 05:03:45 -0600 |
commit | 0b8441c79b047f81526bbb83febc40d7530e35d6 (patch) | |
tree | 71f4f3b51685fc81cda226476302c9084146ab39 /src/pyssg/yaml_parser.py | |
parent | e69392a52f102d169c7d80994d169ba0743747a1 (diff) |
add extra configuration for more control, add pyssg.xyz example
this is the first step towards creating a way to handle multiple subdomains/configs in a single run for a more cohesive site generation
Diffstat (limited to 'src/pyssg/yaml_parser.py')
-rw-r--r-- | src/pyssg/yaml_parser.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/pyssg/yaml_parser.py b/src/pyssg/yaml_parser.py index 48c2eec..f9303d6 100644 --- a/src/pyssg/yaml_parser.py +++ b/src/pyssg/yaml_parser.py @@ -12,7 +12,6 @@ log: Logger = getLogger(__name__) def __join_constructor(loader: SafeLoader, node: SequenceNode) -> str: seq = loader.construct_sequence(node) return ''.join([str(i) for i in seq]) -log.warning('adding the custom join constructor to yaml.SafeLoader') SafeLoader.add_constructor('!join', __join_constructor) @@ -39,7 +38,4 @@ def get_parsed_yaml(resource: str, package: str='') -> list[dict]: with open(p, 'r') as f: all_yaml_docs = __read_raw_yaml(f) - log.info('found %s document(s) for configuration "%s"', - len(all_yaml_docs), f'{package}.{resource}' if package != '' else resource) - return all_yaml_docs |