timothycrosley / portray

Your Project with Great Documentation.
MIT License
861 stars 74 forks source link

Live reload not working #87

Closed jmrichardson closed 2 years ago

jmrichardson commented 2 years ago

I ran portray in_browser and all works great except when I update for example the README.MD, it is not reflected in the browser. It is identified in the output of portray:

[I 220114 16:44:29 handlers:92] Reload 1 waiters: D:\Projects\aim\README.md
[I 220114 16:44:29 handlers:135] Browser Connected: http://127.0.0.1:8000/
[I 220114 16:44:42 handlers:92] Reload 1 waiters: D:\Projects\aim\README.md
[I 220114 16:44:42 handlers:135] Browser Connected: http://127.0.0.1:8000/

I have tried clearing my cache as well as different browsers with no luck. It does work if I kill and restart. Any help would be appreciated. Here is my config:

[tool.portray.mkdocs.theme]
name = "material"
palette = {primary = "blue grey", accent = "pink"}

Thank you.

jmrichardson commented 2 years ago

Couldn't get it to work with CLI using this config:

[tool.portray]
reload = true

However, it works using API:

from portray import api
api.server(reload=True)
jmrichardson commented 2 years ago

Actually, the previous only works with md files and not docstrings/pdocs

jmrichardson commented 2 years ago

Nobody home