tinyssg 1.2.0__py3-none-any.whl → 1.2.1__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.
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.2
|
2
2
|
Name: tinyssg
|
3
|
-
Version: 1.2.
|
3
|
+
Version: 1.2.1
|
4
4
|
Summary: A simple static site generator
|
5
5
|
Author: Uniras
|
6
6
|
Author-email: tkappeng@gmail.com
|
@@ -60,13 +60,13 @@ Create a Python file in the `pages` directory and create a class that extends th
|
|
60
60
|
from tinyssg import TinySSGPage
|
61
61
|
|
62
62
|
class IndexPage(TinySSGPage):.
|
63
|
-
def query(self)
|
63
|
+
def query(self) -> any:
|
64
64
|
return {
|
65
65
|
'title': 'Index', 'content': 'Hello, World!
|
66
66
|
'content': 'Hello, World!'
|
67
67
|
}
|
68
68
|
|
69
|
-
def template(self):
|
69
|
+
def template(self) -> str:
|
70
70
|
return self.indent("""
|
71
71
|
<!DOCTYPE html>
|
72
72
|
<html>
|
@@ -106,7 +106,7 @@ Each page must be defined individually, but since this is a simple Python class,
|
|
106
106
|
python -m tinyssg dev
|
107
107
|
```
|
108
108
|
|
109
|
-
The local server for development will be started.You can see the generated HTML by accessing
|
109
|
+
The local server for development will be started.You can see the generated HTML by accessing `http://localhost:8000`.
|
110
110
|
|
111
111
|
If you change files in the `pages`, `libs`, or `static` directories, the server will automatically restart to reflect the changes.
|
112
112
|
|
@@ -121,7 +121,6 @@ HTML files will be generated in the `dist` directory.
|
|
121
121
|
### options (excerpt)
|
122
122
|
|
123
123
|
```text
|
124
|
-
|
125
124
|
usage: python -m tinyssg [--page PAGE] [--static STATIC] [--lib LIB] [--input INPUT] [--output OUTPUT] [--port PORT] [--wait WAIT] [--nolog] [--noreloadnoreload] [--noopen] [--curdir CURDIR] [mode]
|
126
125
|
|
127
126
|
MODE:
|
@@ -167,12 +166,12 @@ from tinyssg import TinySSGPage
|
|
167
166
|
from lib.jinja2_page import Jinja2Page
|
168
167
|
|
169
168
|
class IndexPage(Jinja2Page):
|
170
|
-
def query(self):
|
169
|
+
def query(self) -> any:
|
171
170
|
return {
|
172
171
|
'title': 'Index', 'content': 'Hello, World!'
|
173
172
|
}
|
174
173
|
|
175
|
-
def template(self):
|
174
|
+
def template(self) -> str:
|
176
175
|
return self.indent("""
|
177
176
|
<!DOCTYPE html>
|
178
177
|
<html>
|
@@ -210,12 +209,12 @@ from tinyssg import TinySSGPage
|
|
210
209
|
from lib.markdown_page import MarkdownPage
|
211
210
|
|
212
211
|
class IndexPage(MarkdownPage):
|
213
|
-
def query(self):
|
212
|
+
def query(self) -> any:
|
214
213
|
return {
|
215
214
|
'title': 'Index', 'content': 'Hello, World!'
|
216
215
|
}
|
217
216
|
|
218
|
-
def template(self):
|
217
|
+
def template(self) -> str:
|
219
218
|
return self.indent("""
|
220
219
|
# {{ title }}
|
221
220
|
|
@@ -0,0 +1,6 @@
|
|
1
|
+
tinyssg/__init__.py,sha256=5dn_SPH78JJStnQCxz_7YMflRHQRFusF-hJAdGWQ8X4,30677
|
2
|
+
tinyssg/__main__.py,sha256=E8PEZ-wWYae76H_iWbY1Xu9VYGb6sfsWMN-hzqTMoBc,83
|
3
|
+
tinyssg-1.2.1.dist-info/METADATA,sha256=Cqzs0_ltiMxVu038tRVFsYh01HscpBmaC9FQoPjes-c,8100
|
4
|
+
tinyssg-1.2.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
+
tinyssg-1.2.1.dist-info/top_level.txt,sha256=8u1XtPYCatbklb6u3NbJbFUbwA8nDKZ6cY3FScGwJDQ,8
|
6
|
+
tinyssg-1.2.1.dist-info/RECORD,,
|
tinyssg-1.2.0.dist-info/RECORD
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
tinyssg/__init__.py,sha256=5dn_SPH78JJStnQCxz_7YMflRHQRFusF-hJAdGWQ8X4,30677
|
2
|
-
tinyssg/__main__.py,sha256=E8PEZ-wWYae76H_iWbY1Xu9VYGb6sfsWMN-hzqTMoBc,83
|
3
|
-
tinyssg-1.2.0.dist-info/METADATA,sha256=3nFvOkOZmcjeYVja9crVQ6fhFPhxyw4CXllMyzRYHKU,8063
|
4
|
-
tinyssg-1.2.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
5
|
-
tinyssg-1.2.0.dist-info/top_level.txt,sha256=8u1XtPYCatbklb6u3NbJbFUbwA8nDKZ6cY3FScGwJDQ,8
|
6
|
-
tinyssg-1.2.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|