diff --git a/scripts/make_tutorial.sh b/scripts/make_tutorial.sh index dee90cbe..60f8cb74 100755 --- a/scripts/make_tutorial.sh +++ b/scripts/make_tutorial.sh @@ -13,7 +13,8 @@ dest="../../../generated/static/clippy/" for page in $pages do fileroot=$(echo "$page" | cut -d'.' -f-2) - sed "/REPLACETHIS/,$ d" tutor.template.html > "$dest$fileroot.html" + sed -e "s|href=\"$fileroot.html\"|aria-current=\"page\" &|" \ + -e "/REPLACETHIS/,$ d" tutor.template.html > "$dest$fileroot.html" "$(yarn bin)/marked" "$page" >> "$dest$fileroot.html" sed "1,/REPLACETHIS/ d" tutor.template.html >> "$dest$fileroot.html" sed -i.bak "s|\(href=['\"]\./[^'\"]*\)\.md\(['\"]\)|\1.html\2|g" "$dest$fileroot.html" diff --git a/src/static/clippy/tutor.template.html b/src/static/clippy/tutor.template.html index 03e575b6..41b68263 100644 --- a/src/static/clippy/tutor.template.html +++ b/src/static/clippy/tutor.template.html @@ -2,14 +2,54 @@ + Tridactyl Tutorial + + REPLACETHIS