mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-14 02:57:52 +08:00
4b4726b9a6
The main benefits of this change are: 1) It uses a hermetic "home" directory with a known command and location history. Which means it no longer depends on the interactive history and directory layout of the person creating the ttyshot. Which also means it no longer leaks the private history of anyone creating a ttyshot. This produces reproducible results when updating ttyshots. 2) The user no longer has to augment the ttyshot by manually adding the output of the commands to the generated HTML file. A process that is error prone. The output of the commands that generate the ttyshot is now captured and automatically included in the resulting HTML. 3) It makes it trivial to recreate every ttyshot. Simply execute these commands: ``` make ttyshot for f [website/ttyshot/**.spec] { put $f; ./ttyshot $f } ``` 4) It makes it easy to introduce new "ttyshot" images by creating a shell session "spec" file. This makes it easy to replace the existing "```elvish-transcript...```" examples with ttyshots in order to ensure a consistent representation and visual consistency with the transcripts that are currently generated as ttyshots. The downside of this change is the introduction of a dependency on the Tmux application. But that seems reasonable since Tmux is a mature application available on Linux, macOS, BSD, and probably every other UNIX like OS we care about. Note that generating the Elvish documentation already depends on similar apps such as Pandoc. Related #1459
9 lines
725 B
Plaintext
9 lines
725 B
Plaintext
github.com/creack/pty v1.1.15 h1:cKRCLMj3Ddm54bKSpemfQ8AtYFBhAI2MPmdys22fBdc=
|
|
github.com/creack/pty v1.1.15/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
|
github.com/BurntSushi/toml v1.0.0 h1:dtDWrepsVPfW9H/4y7dDgFc2MBUSeJhlaDtK13CxFlU=
|
|
github.com/BurntSushi/toml v1.0.0/go.mod h1:CxXYINrC8qIiEnFrOxCa7Jy5BFHlXnUU2pbicEuybxQ=
|
|
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
|
|
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9 h1:nhht2DYV/Sn3qOayu8lM+cU1ii9sTLUeBQwQQfUHtrs=
|
|
golang.org/x/sys v0.0.0-20220227234510-4e6760a101f9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
|