bloggy 0.1.43__py3-none-any.whl → 0.2.5__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/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()