rewrite the project as a static site generator
this removes Flask, reworks a number of library methods accordingly, and adds generators and build commands to process the instance directory (largely unchanged, except config.py is now config.json) and spit out files suitable to be served by a web server such as Nginx. there are probably some rough edges here, but overall this works. also note, as this is no longer server software on a network, the license has changed from AGPLv3 to GPLv3, and the "or any later version" allowance has been removed Signed-off-by: Brian S. Stephan <bss@incorporeal.org>
This commit is contained in:
28
tests/instance/config.json
Normal file
28
tests/instance/config.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"LOGGING": {
|
||||
"version": 1,
|
||||
"formatters": {
|
||||
"default": {
|
||||
"format": "[%(asctime)s %(levelname)-7s %(name)s] %(message)s"
|
||||
}
|
||||
},
|
||||
"handlers": {
|
||||
"console": {
|
||||
"level": "DEBUG",
|
||||
"class": "logging.StreamHandler",
|
||||
"formatter": "default"
|
||||
}
|
||||
},
|
||||
"loggers": {
|
||||
"incorporealcms.mdx": {
|
||||
"level": "DEBUG",
|
||||
"handlers": ["console"]
|
||||
},
|
||||
"incorporealcms.pages": {
|
||||
"level": "DEBUG",
|
||||
"handlers": ["console"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"INSTANCE_VALUE": "hi"
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
"""Configure the test application.
|
||||
|
||||
SPDX-FileCopyrightText: © 2020 Brian S. Stephan <bss@incorporeal.org>
|
||||
SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
SPDX-License-Identifier: GPL-3.0-only
|
||||
"""
|
||||
|
||||
LOGGING = {
|
||||
|
||||
1
tests/instance/feed/20250316-more-metadata.md
Symbolic link
1
tests/instance/feed/20250316-more-metadata.md
Symbolic link
@@ -0,0 +1 @@
|
||||
../pages/more-metadata.md
|
||||
Reference in New Issue
Block a user