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

Allow serve single file #108

Closed
Moelf opened this issue Sep 20, 2020 · 2 comments
Closed

Allow serve single file #108

Moelf opened this issue Sep 20, 2020 · 2 comments

Comments

@Moelf
Copy link

Moelf commented Sep 20, 2020

using this with Weave.jl. Usually PDF readers are able to auto-refresh. But for browsers, due to security, extensions are not allowed to read file://. Currently I need to make a ln blah.html index.html for LiveServer to work.

I think this is already possible if we manually make a filewatcher or something, so maybe just document how to DIY this would be enough.

@tlienart
Copy link
Collaborator

Hello, sorry I'm unclear on what you're trying to do. If you have a file blah.html with

<html>
	<body>
		<h1>Hello</h1>
		This is some more text.
	</body>
</html>

and you do

using LiveServer; serve()

and navigate to localhost:8000/blah.html it will be live rendered; no need for it to have the name index.html ?

Could you clarify what you're hoping to do + provide a MWE? thanks!

@Moelf
Copy link
Author

Moelf commented Sep 21, 2020

oh you're absolutely right and I was not thinking.

@Moelf Moelf closed this as completed Sep 21, 2020
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

2 participants