update @ Tue 29 Aug 10:34:36 EEST 2023

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2023-08-29 10:34:36 +03:00
parent 209fb630fd
commit 8828313adc
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: A50D5B4B599AF8A2

View file

@ -283,7 +283,7 @@ INDEX_TEMPLATE: typing.Final[str] = (
<hr aria-hidden="true" role="seperator" /> <hr aria-hidden="true" role="seperator" />
</nav> </nav>
</header> </header>
<article id="main"><ul>{blog_list}</ul></article> <article id="main"><ol reversed>{blog_list}</ol></article>
</main> </main>
</body> </body>
</html>""" </html>"""
@ -1216,6 +1216,16 @@ def serve(config: typing.Dict[str, typing.Any]) -> int:
return OK return OK
@cmds.new
def dev(config: typing.Dict[str, typing.Any]) -> int:
"""generate a full static site + serve it"""
if (code := static(config)) is not OK:
return code
return serve(config)
def main() -> int: def main() -> int:
"""entry/main function""" """entry/main function"""
@ -1267,7 +1277,9 @@ def main() -> int:
if __name__ == "__main__": if __name__ == "__main__":
assert main.__annotations__.get("return") == "int", "main() should return an integer" assert (
main.__annotations__.get("return") == "int"
), "main() should return an integer"
filter_warnings("error", category=Warning) filter_warnings("error", category=Warning)
raise SystemExit(main()) raise SystemExit(main())