Hacker News new | ask | show | jobs
by timcwinkler 1831 days ago
If you download and open up the html file, it contains, what is essentially, a screenshot with explanations. (A very simple screenshot, but one you can extrapolate from.)
2 comments

But that requires us downloading and opening it. A lot of effort if one just wants to take a quick look. A screenshot or demo would be better.
OK. I am afraid that I am not very knowledgeable about github, or YCombinator comments, but I'll give it a shot.

Here is a screen shot:

Simple screenshot:

https://github.com/timcwinkler/javascript-notebook/blob/main...

What you see if you load js+help.html:

https://github.com/timcwinkler/javascript-notebook/blob/main...

(Will the links work as I hoped? ... I am not disappointed.)

Don't get me wrong, I know that my comment sounds a little bit weird in the context of your project. I know that I could just rightclick the file, download and open it in the browser.

It's just more of a hint to you that, whenever you want to show something to the public, every extra action the user has to make, could lose you that user.

Keep in mind that "we" want to figure out in seconds if we want to spend more time looking at what you have created or not.

What I would wish that I could do is just make it so that there was a link to the HTML file in the Readme. Click it and there you go. My impression is that this is discouraged. (Am I wrong about that?)
You can do that with Github Pages, but I'm not too knowledgable. But I copied your code in an codesandbox:

https://ijlkq.csb.app/

Fork it if you want, I will delete it then (or on your request)

You can leave it if you wish. I'll have to learn a bit more about https://codesandbox.io/, it looks very useful.

Apparently the contents of the page were somehow mangled a bit. As a result it is not functional.

Come on. Two clicks !== a lot of work
You can instead use githack[1] to quickly serve files directly from your repository.

[1]: https://raw.githack.com

Another very useful pointer. Thank you.

I wonder what "Files are automatically optimized" means, exactly?

Have tried this out.

(See comment https://news.ycombinator.com/item?id=27452226)