Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiveReload is only enabled for base file #118

Open
nullromo opened this issue Oct 1, 2021 · 1 comment
Open

LiveReload is only enabled for base file #118

nullromo opened this issue Oct 1, 2021 · 1 comment

Comments

@nullromo
Copy link

nullromo commented Oct 1, 2021

Issue description

I started markserv by running readme &> /dev/null &. My project structure looks like this:

.
├── docs
│   ├── images
│   │   └── diagram.svg
│   ├── file1.md
│   ├── file2.md
│   └── file3.md
└── README.md

Markserv starts properly and I get a view of README.md in the browser. All good.

I have the LiveReload browser extension installed. After waiting a little bit for it to warm up, I start to see changes to README.md instantly in the browser after file saves. Excellent.

README.md contains lines like this:

Go [here](docs/file1.md) for information.

Those links work properly from markserv. When I click that link, I get served file1.md rendered as HTML. The problem is, that page does not live-reload. Only the base README.md page reloads instantly. Any pages that I linked to require manual refreshes to get updated content.

Main question

Is there a way to start markserv that allows for all the files to be live-reloaded? Perhaps I just missed some setup details, or maybe this is not implemented yet.

Environment details

Markserv: version 1.17.4
System: WSL2 on Windows 10
Browser: Google Chrome

@nullromo
Copy link
Author

nullromo commented Oct 1, 2021

Update: I noticed that editing and saving README.md causes the docs/file1.md page to live-reload. So I guess it's just the case that the live reloader is watching the README file for changes, then updating everything once a change occurs. But it's not watching the other loaded files for changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant