Skip to content

Commit

Permalink
Add demo gif
Browse files Browse the repository at this point in the history
  • Loading branch information
kotfu committed Dec 11, 2023
1 parent f016335 commit eb7d58a
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 1 deletion.
61 changes: 61 additions & 0 deletions demos/tour.tape
@@ -0,0 +1,61 @@
#
# This is a .tape file for vhs, which will turn it into a gif
# run it like:
#
# $ vhs tour.tape
#

Output tour.gif

Set Framerate 15

Set FontFamily "MesloLGL Nerd Font Mono"
Set FontSize 14

Set Width 933
Set Margin 20
Set Padding 0

Set TypingSpeed 60ms

Type "tomcat-manager" Sleep 30ms Enter
Sleep 1.1s
Type@40ms "connect http://localhost:8080/manager ace" Sleep 200ms Enter
Type@40ms "newenglandclamchowder" Enter
Sleep 2s

Type "list" Sleep 200ms Enter
Sleep 2s

Type "deploy local tests/war/sample.war /sampleapp" Sleep 190ms Enter
Sleep 1.75s

Type "list" Sleep 350ms Enter
Sleep 1.75s

Type "help" Sleep 150ms Enter
Sleep 3s
Space
Sleep 3s
Space
Sleep 3s
Type "q"
Sleep 2s

Type "help undeploy" Sleep 250ms Enter
Sleep 3s

Type "undeploy /sampleapp" Sleep 325ms Enter
Sleep 2.5s

Type "list" Sleep 275ms Enter
Sleep 2.25s

Type "set" Sleep 300ms Enter
Sleep 3s

Type "theme list" Sleep 350ms Enter
Sleep 3s

Type "exit" Enter
Sleep 1.5s
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -81,7 +81,7 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = []
html_static_path = ["demos"]

# -- Options for HTMLHelp output ------------------------------------------

Expand Down
Binary file added docs/demos/tour.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions tasks.py
Expand Up @@ -36,6 +36,21 @@ def rmrf(items, verbose=True):
namespace.add_collection(namespace_check, "check")


#####
#
# demos
#
#####
@invoke.task
def demos(context):
"Render demos using 'vhs'"
TOUR_FILE = DOCS_SRCDIR / "demos" / "tour.gif"
context.run(f"vhs demos/tour.tape -o {TOUR_FILE}", echo=True)


namespace.add_task(demos)


#####
#
# pytest, tox, pylint, and codecov
Expand Down

0 comments on commit eb7d58a

Please sign in to comment.