diff options
author | jgart | 2021-10-28 20:58:51 -0400 |
---|---|---|
committer | jgart | 2021-10-28 20:58:51 -0400 |
commit | 6c9b4acc6e9e210bf174967f1ed6294dd64a71d6 (patch) | |
tree | 621047d4be0df2b0cd533a3808e71fd5b0656e77 /issues | |
parent | f74813e97dee960379fdbffd733597dd7ed404d7 (diff) | |
download | gn-gemtext-6c9b4acc6e9e210bf174967f1ed6294dd64a71d6.tar.gz |
Adds ansi2html feature for binderlite issue
Diffstat (limited to 'issues')
-rw-r--r-- | issues/binderlite/ansi2html_terminal_user_feedback.gmi | 36 | ||||
-rw-r--r-- | issues/binderlite/binderlite_ansi2html_terminal_diagram.png | bin | 0 -> 8784 bytes |
2 files changed, 36 insertions, 0 deletions
diff --git a/issues/binderlite/ansi2html_terminal_user_feedback.gmi b/issues/binderlite/ansi2html_terminal_user_feedback.gmi new file mode 100644 index 0000000..969448a --- /dev/null +++ b/issues/binderlite/ansi2html_terminal_user_feedback.gmi @@ -0,0 +1,36 @@ +# ansi2html terminal user feedback + +* ongoing +* feature-request +* assigned: jgart + +https://builds.sr.ht/~sircmpwn/job/610711 + +https://builds.sr.ht/~sircmpwn/job/611028 + +This issue proposes an alternative way to generate terminal output to the browser +from a process that does not dependent on js libraries but still looks great. + +Drew Devault uses this method in builds.sr.ht, the continuous integration +system/app that is part of the SourceHut suite. + +builds.sr.ht generates terminal output using jinja templates and a relatively +small python library called ansi2html. It is already packaged by guix upstream +as python-ansi2html (It could use an update). + +https://github.com/pycontribs/ansi2html +https://pypi.org/project/ansi2html/ + +Here are two examples of it in action at builds.sr.ht: + +https://builds.sr.ht/~sircmpwn/job/610711 + +https://builds.sr.ht/~sircmpwn/job/611028 + +And, the relevant places in builds.sr.ht code base: + +https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/buildsrht/templates/job.html#L117 + +https://git.sr.ht/~sircmpwn/builds.sr.ht/tree/master/item/buildsrht/blueprints/jobs.py#L333 + +I've added a diagram showing how it will integrate with binderlite. diff --git a/issues/binderlite/binderlite_ansi2html_terminal_diagram.png b/issues/binderlite/binderlite_ansi2html_terminal_diagram.png Binary files differnew file mode 100644 index 0000000..a4f16b4 --- /dev/null +++ b/issues/binderlite/binderlite_ansi2html_terminal_diagram.png |