tinyssg 1.0.1__py3-none-any.whl → 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
tinyssg/__init__.py CHANGED
@@ -278,15 +278,11 @@ class TinySSGGenerator:
278
278
  result = {}
279
279
 
280
280
  for key, value in route.items():
281
-
282
281
  if isinstance(value, dict):
283
282
  current_path = f"{dict_path}/{key}"
284
283
  result[key] = cls.traverse_route(value, current_path)
285
284
  else:
286
285
  page = value()
287
- page.name = key
288
- if not isinstance(page.name, str) or len(page.name) == 0:
289
- raise TinySSGException('The name must be a non-empty string.')
290
286
  result[key] = cls.create_content(page)
291
287
 
292
288
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: tinyssg
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: A simple static site generator
5
5
  Author: Uniras
6
6
  Author-email: tkappeng@gmail.com
@@ -99,7 +99,7 @@ If you use the markdown library here to describe the process of conversion, you
99
99
 
100
100
  Each page must be defined individually, but since this is a simple Python class, if you want to apply it to multiple pages, you can create a class that defines the common parts and inherit it to easily apply it without copying any code.
101
101
 
102
- ### Start local server for development.
102
+ ### Start local server for development
103
103
 
104
104
  ```bash
105
105
  python -m tinyssg dev
@@ -0,0 +1,6 @@
1
+ tinyssg/__init__.py,sha256=puqhv4_E1ZG7c9NYUBhIn8ZtWRhPWcy0JspdWKmX9hU,27214
2
+ tinyssg/__main__.py,sha256=E8PEZ-wWYae76H_iWbY1Xu9VYGb6sfsWMN-hzqTMoBc,83
3
+ tinyssg-1.1.0.dist-info/METADATA,sha256=i0XNcAf4B3pS3CeA0cgnIWYnixswGHPpPm8tNbwFN_0,6072
4
+ tinyssg-1.1.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
+ tinyssg-1.1.0.dist-info/top_level.txt,sha256=8u1XtPYCatbklb6u3NbJbFUbwA8nDKZ6cY3FScGwJDQ,8
6
+ tinyssg-1.1.0.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- tinyssg/__init__.py,sha256=IX78iWBhjKJj1psk2wjqTh5HDUU3kTNd5licWpKY3cs,27408
2
- tinyssg/__main__.py,sha256=E8PEZ-wWYae76H_iWbY1Xu9VYGb6sfsWMN-hzqTMoBc,83
3
- tinyssg-1.0.1.dist-info/METADATA,sha256=XIfnaWBVwN2gqI5I0gHXc5dVqnkw0M9gsDYzRLIPUFY,6073
4
- tinyssg-1.0.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- tinyssg-1.0.1.dist-info/top_level.txt,sha256=8u1XtPYCatbklb6u3NbJbFUbwA8nDKZ6cY3FScGwJDQ,8
6
- tinyssg-1.0.1.dist-info/RECORD,,