bloggy 0.1.43__py3-none-any.whl → 0.2.3__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.
- bloggy/__init__.py +1 -1
- bloggy/build.py +15 -4
- bloggy/config.py +8 -0
- bloggy/core.py +707 -91
- bloggy/main.py +3 -3
- bloggy/static/scripts.js +657 -45
- bloggy-0.2.3.dist-info/METADATA +167 -0
- bloggy-0.2.3.dist-info/RECORD +13 -0
- bloggy-0.1.43.dist-info/METADATA +0 -926
- bloggy-0.1.43.dist-info/RECORD +0 -13
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/WHEEL +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/entry_points.txt +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/licenses/LICENSE +0 -0
- {bloggy-0.1.43.dist-info → bloggy-0.2.3.dist-info}/top_level.txt +0 -0
bloggy/main.py
CHANGED
|
@@ -90,14 +90,14 @@ def cli():
|
|
|
90
90
|
if host == '0.0.0.0':
|
|
91
91
|
print(f"Server accessible from network at: http://<your-ip>:{port}")
|
|
92
92
|
|
|
93
|
-
# Configure reload to watch markdown files in the blog directory
|
|
93
|
+
# Configure reload to watch markdown and PDF files in the blog directory
|
|
94
94
|
reload_kwargs = {}
|
|
95
95
|
if reload:
|
|
96
96
|
blog_root = config.get_root_folder()
|
|
97
97
|
reload_kwargs = {
|
|
98
98
|
"reload": True,
|
|
99
99
|
"reload_dirs": [str(blog_root)],
|
|
100
|
-
"reload_includes": ["*.md"]
|
|
100
|
+
"reload_includes": ["*.md", "*.pdf", "*.bloggy"]
|
|
101
101
|
}
|
|
102
102
|
else:
|
|
103
103
|
reload_kwargs = {"reload": False}
|
|
@@ -105,4 +105,4 @@ def cli():
|
|
|
105
105
|
uvicorn.run("bloggy.main:app", host=host, port=port, **reload_kwargs)
|
|
106
106
|
|
|
107
107
|
if __name__ == "__main__":
|
|
108
|
-
cli()
|
|
108
|
+
cli()
|