Heydon/bruck

live demo

Closed this issue ยท 8 comments

FND commented

This project is not just an excellent idea, but also nicely executed - bravo! (Not that I'd expect any less from you... ๐Ÿ˜‰ )

It would be nice if there was a demo I could link people to, so they don't have to clone the repo locally.

Thanks to GitHub Pages, this should be pretty straightforward:

$ git checkout -b gh-pages

# optionally make `demo.html` the entry point
$ git mv demo.html index.html
$ git commit -m "demo page as entry point for GitHub Pages"

$ git push origin gh-pages

Shortly after, the site should be available at https://heydon.github.io/bruck/. The downside, of course, is that continually updating that branch can be a bit of a pain - but you might consider making it the default branch.

(Apologies if you already knew all this.)

@FND Good idea. I'll get onto this.

It would be nice to have the demo linked from the README.md, or a list of projects using bruck in real-life.

@FND @MrKuzio I have set up a build script which copies the editor.html (as index.html) and assets into the /docs folder and serves them. It's linked in the README (thanks for the suggestion!)

https://heydon.github.io/bruck/

The editor is simple (just a styled textarea) but I think it does the trick for now. Something a bit more codepen-like, with syntax highlighting and the ability to tab indent would be nice later on...

Good job!

FND commented

Looking good, thank you!

I've noticed that in Firefox, all: initial results in line breaks within the <textarea> being swallowed. Applying white-space: pre fixes that. ยฏ\_(ใƒ„)_/ยฏ

@FND Weird - I noticed that too and thought I fixed it. Was stung by specificity, though. Just pushed a fix to master. Thanks!

FND commented

I'm afraid you forgot to port that fix to the docs directory. ๐Ÿ™‚ (FWIW, this is why, personally, I don't like duplicating artifacts within the source repo - though of course I understand the pragmatism of avoiding a separate branch.)

Feel free to close this issue; I'd consider the original request resolved.

PS: You might also link to the live demo from the repo's header, next to the description.

@FND LOL, whoops. Just pushed that. Firefox looking good.