tinyssg 1.0.0__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.0
3
+ Version: 1.1.0
4
4
  Summary: A simple static site generator
5
5
  Author: Uniras
6
6
  Author-email: tkappeng@gmail.com
@@ -45,11 +45,11 @@ pip install tinyssg
45
45
  Configure the directory as follows.The directory name can be changed with an optional argument.
46
46
 
47
47
  ```text
48
- |-- pages Place Python files for SSG deployment.
49
- |-- libs Place Python files that are not SSG target files (e.g. libraries).
50
- |-- static Place static files that are not subject to SSG (css, images, etc.)
51
- |-- dist This is the directory where SSG results will be output.The contents of this directory can be published as a web site by placing it on a web server.
52
- |-- static The static directory is copied to this directory.
48
+ |-- pages Place Python files for SSG deployment.
49
+ |-- libs Place Python files that are not SSG target files (e.g. libraries).
50
+ |-- static Place static files that are not subject to SSG (css, images, etc.)
51
+ |-- dist This is the directory where SSG results will be output.The contents of this directory can be published as a web site by placing it on a web server.
52
+ |-- static The static directory is copied to this directory.
53
53
  ````
54
54
 
55
55
  ### Creating pages
@@ -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.0.dist-info/METADATA,sha256=gIWDqy6ZUA9tAZnfKvJ38ul9UbvjYBC8DaP0wNNbmWk,6039
4
- tinyssg-1.0.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
5
- tinyssg-1.0.0.dist-info/top_level.txt,sha256=8u1XtPYCatbklb6u3NbJbFUbwA8nDKZ6cY3FScGwJDQ,8
6
- tinyssg-1.0.0.dist-info/RECORD,,