structables 0.3.13__tar.gz → 0.3.15__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.
- {structables-0.3.13 → structables-0.3.15}/Dockerfile +6 -2
- {structables-0.3.13 → structables-0.3.15}/PKG-INFO +1 -1
- {structables-0.3.13 → structables-0.3.15}/pyproject.toml +1 -1
- {structables-0.3.13 → structables-0.3.15}/src/structables/main.py +1 -3
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/main.py +8 -9
- {structables-0.3.13 → structables-0.3.15}/.env.example +0 -0
- {structables-0.3.13 → structables-0.3.15}/.forgejo/workflows/docker.yml +0 -0
- {structables-0.3.13 → structables-0.3.15}/.forgejo/workflows/release.yml +0 -0
- {structables-0.3.13 → structables-0.3.15}/.gitignore +0 -0
- {structables-0.3.13 → structables-0.3.15}/LICENSE +0 -0
- {structables-0.3.13 → structables-0.3.15}/README.md +0 -0
- {structables-0.3.13 → structables-0.3.15}/cronjob.txt +0 -0
- {structables-0.3.13 → structables-0.3.15}/docker-compose-example-dev.yml +0 -0
- {structables-0.3.13 → structables-0.3.15}/docker-compose-example.yml +0 -0
- {structables-0.3.13 → structables-0.3.15}/entrypoint.sh +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/__init__.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/config.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/__init__.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/category.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/contest.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/member.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/routes/proxy.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/css/style.css +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/dist/css/bootstrap.min.css +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/dist/css/bootstrap.min.css.map +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/img/logo.png +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/img/logo_lg.png +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/static/img/magnifying-glass-solid.svg +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/400.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/404.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/429.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/500.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/archives.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/article-review.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/article.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/base.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/category.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/collection.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/contest.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/contests.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/footer.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/header.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/iframe.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/index.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/member-instructables.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/member.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/privacypolicy.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/projects.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/sitemap.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/templates/style.html +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/utils/data.py +0 -0
- {structables-0.3.13 → structables-0.3.15}/src/structables/utils/helpers.py +0 -0
|
@@ -4,8 +4,12 @@ ENV APP_ENV=/opt/venv
|
|
|
4
4
|
ENV PATH="${APP_ENV}/bin:$PATH"
|
|
5
5
|
|
|
6
6
|
RUN apk add --no-cache py3-pip uwsgi-python3 && \
|
|
7
|
-
python3 -m venv $APP_ENV
|
|
8
|
-
|
|
7
|
+
python3 -m venv $APP_ENV
|
|
8
|
+
|
|
9
|
+
COPY . /app
|
|
10
|
+
|
|
11
|
+
RUN $APP_ENV/bin/pip install --no-cache-dir pip && \
|
|
12
|
+
$APP_ENV/bin/pip install /app && \
|
|
9
13
|
adduser -S -D -H structables
|
|
10
14
|
|
|
11
15
|
COPY entrypoint.sh /entrypoint.sh
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: structables
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.15
|
|
4
4
|
Summary: A simple frontend for Instructables
|
|
5
5
|
Project-URL: Homepage, https://git.private.coffee/privatecoffee/structables
|
|
6
6
|
Project-URL: Bug Tracker, https://git.private.coffee/privatecoffee/structables/issues
|
|
@@ -14,6 +14,7 @@ app.config.from_object(Config)
|
|
|
14
14
|
app.typesense_api_key = get_typesense_api_key()
|
|
15
15
|
|
|
16
16
|
init_routes(app)
|
|
17
|
+
update_data(app)
|
|
17
18
|
|
|
18
19
|
|
|
19
20
|
def background_update_data(app):
|
|
@@ -40,6 +41,3 @@ def main():
|
|
|
40
41
|
|
|
41
42
|
if __name__ == "__main__":
|
|
42
43
|
main()
|
|
43
|
-
else:
|
|
44
|
-
# Even if we're using a wsgi server, we still have to initialize global_ibles
|
|
45
|
-
update_data(app)
|
|
@@ -357,17 +357,16 @@ def init_main_routes(app):
|
|
|
357
357
|
elif pathlib.Path("privacy.txt").exists():
|
|
358
358
|
path = "privacy.txt"
|
|
359
359
|
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
print(path, content)
|
|
360
|
+
if path:
|
|
361
|
+
try:
|
|
362
|
+
with pathlib.Path(path).open() as f:
|
|
363
|
+
content = f.read()
|
|
365
364
|
|
|
366
|
-
|
|
367
|
-
|
|
365
|
+
if path.endswith(".md"):
|
|
366
|
+
content = Markdown().convert(content)
|
|
368
367
|
|
|
369
|
-
|
|
370
|
-
|
|
368
|
+
except OSError:
|
|
369
|
+
pass
|
|
371
370
|
|
|
372
371
|
return render_template(
|
|
373
372
|
"privacypolicy.html", title="Privacy Policy", content=content
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structables-0.3.13 → structables-0.3.15}/src/structables/static/dist/css/bootstrap.min.css.map
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structables-0.3.13 → structables-0.3.15}/src/structables/static/img/magnifying-glass-solid.svg
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{structables-0.3.13 → structables-0.3.15}/src/structables/templates/member-instructables.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|