tinyssg 1.2.0__tar.gz → 1.2.1__tar.gz
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-1.2.0 → tinyssg-1.2.1}/PKG-INFO +8 -9
- {tinyssg-1.2.0 → tinyssg-1.2.1}/README.md +7 -8
- {tinyssg-1.2.0 → tinyssg-1.2.1}/pyproject.toml +1 -1
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg.egg-info/PKG-INFO +8 -9
- {tinyssg-1.2.0 → tinyssg-1.2.1}/setup.cfg +0 -0
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg/__init__.py +0 -0
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg/__main__.py +0 -0
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg.egg-info/SOURCES.txt +0 -0
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg.egg-info/dependency_links.txt +0 -0
- {tinyssg-1.2.0 → tinyssg-1.2.1}/tinyssg.egg-info/top_level.txt +0 -0
@@ -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
|
|
@@ -33,13 +33,13 @@ Create a Python file in the `pages` directory and create a class that extends th
|
|
33
33
|
from tinyssg import TinySSGPage
|
34
34
|
|
35
35
|
class IndexPage(TinySSGPage):.
|
36
|
-
def query(self)
|
36
|
+
def query(self) -> any:
|
37
37
|
return {
|
38
38
|
'title': 'Index', 'content': 'Hello, World!
|
39
39
|
'content': 'Hello, World!'
|
40
40
|
}
|
41
41
|
|
42
|
-
def template(self):
|
42
|
+
def template(self) -> str:
|
43
43
|
return self.indent("""
|
44
44
|
<!DOCTYPE html>
|
45
45
|
<html>
|
@@ -79,7 +79,7 @@ Each page must be defined individually, but since this is a simple Python class,
|
|
79
79
|
python -m tinyssg dev
|
80
80
|
```
|
81
81
|
|
82
|
-
The local server for development will be started.You can see the generated HTML by accessing
|
82
|
+
The local server for development will be started.You can see the generated HTML by accessing `http://localhost:8000`.
|
83
83
|
|
84
84
|
If you change files in the `pages`, `libs`, or `static` directories, the server will automatically restart to reflect the changes.
|
85
85
|
|
@@ -94,7 +94,6 @@ HTML files will be generated in the `dist` directory.
|
|
94
94
|
### options (excerpt)
|
95
95
|
|
96
96
|
```text
|
97
|
-
|
98
97
|
usage: python -m tinyssg [--page PAGE] [--static STATIC] [--lib LIB] [--input INPUT] [--output OUTPUT] [--port PORT] [--wait WAIT] [--nolog] [--noreloadnoreload] [--noopen] [--curdir CURDIR] [mode]
|
99
98
|
|
100
99
|
MODE:
|
@@ -140,12 +139,12 @@ from tinyssg import TinySSGPage
|
|
140
139
|
from lib.jinja2_page import Jinja2Page
|
141
140
|
|
142
141
|
class IndexPage(Jinja2Page):
|
143
|
-
def query(self):
|
142
|
+
def query(self) -> any:
|
144
143
|
return {
|
145
144
|
'title': 'Index', 'content': 'Hello, World!'
|
146
145
|
}
|
147
146
|
|
148
|
-
def template(self):
|
147
|
+
def template(self) -> str:
|
149
148
|
return self.indent("""
|
150
149
|
<!DOCTYPE html>
|
151
150
|
<html>
|
@@ -183,12 +182,12 @@ from tinyssg import TinySSGPage
|
|
183
182
|
from lib.markdown_page import MarkdownPage
|
184
183
|
|
185
184
|
class IndexPage(MarkdownPage):
|
186
|
-
def query(self):
|
185
|
+
def query(self) -> any:
|
187
186
|
return {
|
188
187
|
'title': 'Index', 'content': 'Hello, World!'
|
189
188
|
}
|
190
189
|
|
191
|
-
def template(self):
|
190
|
+
def template(self) -> str:
|
192
191
|
return self.indent("""
|
193
192
|
# {{ title }}
|
194
193
|
|
@@ -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
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|