Skip to content

Commit 87ef490

Browse files
committed
chore(taskfile): revert some tasks
Signed-off-by: Evgeniy Frolov <evgeniy.frolov@flant.com>
1 parent 888925f commit 87ef490

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Taskfile.yaml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,44 @@ tasks:
2828
cmds:
2929
- gofumpt -extra -w {{.CLI_ARGS}} {{.paths | default "bin/"}}
3030

31+
# TODO: specify target framework
32+
gen:pages:
33+
desc: "Generate pages for all existing frameworks using framework_id folder as the source data"
34+
cmds:
35+
- |
36+
for framework in {{.frameworks}}
37+
do
38+
for lang in {{.languages}}
39+
do
40+
target_dir=pages_$lang/guides/$framework
41+
echo "# Regenerate $framework pages ($lang)"
42+
rm -rf $target_dir
43+
cp -a {{.framework_template_dir}} $target_dir
44+
find $target_dir -type f -exec sed -i -e "s|framework_id|$framework|g" {} \;
45+
if [ "x$framework" = "xgolang" ]
46+
then
47+
echo 1>&2 "WARNING: Removing $target_dir/200_real_apps because no content available for $framework at the moment"
48+
rm -rf $target_dir/200_real_apps*
49+
fi
50+
echo
51+
done
52+
done
53+
- |
54+
# FIXME: this page not available for other frameworks and languages yet
55+
git checkout pages_ru/guides/rails/200_real_apps/60_cron.md
56+
57+
gen:demo:
58+
desc: "Generate asciinema werf demos"
59+
cmds:
60+
- echo TODO
61+
62+
install:demo-tools-ubuntu:
63+
desc: "Install tools needed to record werf demos"
64+
cmds:
65+
# NOTE: also we need werf itself
66+
- sudo apt install pv asciinema
67+
- wget -q -O - https://raw.githubusercontent.com/k3d-io/k3d/main/install.sh | bash
68+
3169
local:gen:configurator:
3270
desc: "Regenerate configurator pages and copy to site directories"
3371
cmds:

0 commit comments

Comments
 (0)