From 13932f94a2aa6bf71f291639a16275f955832e58 Mon Sep 17 00:00:00 2001 From: Oliver Blanthorn Date: Sat, 14 Apr 2018 14:03:54 +0100 Subject: [PATCH] Fix tutorial build process and alias --- scripts/make_tutorial.sh | 3 +-- src/config.ts | 1 + src/static/newtab.css | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/scripts/make_tutorial.sh b/scripts/make_tutorial.sh index 24b4fcec..d63d269c 100755 --- a/scripts/make_tutorial.sh +++ b/scripts/make_tutorial.sh @@ -7,8 +7,7 @@ cd src/static/clippy pages=$(ls *.md) dest="../../../generated/static/clippy/" -# Very tempted to add fish as a dependency because this is dreadful -for page in "${pages[@]}" +for page in $pages do fileroot=$(echo $page | cut -d'.' -f-1) sed "/REPLACETHIS/,$ d" tutor.template.html > "$dest$fileroot.html" diff --git a/src/config.ts b/src/config.ts index b31c2b3c..0d0ad51f 100644 --- a/src/config.ts +++ b/src/config.ts @@ -137,6 +137,7 @@ const DEFAULTS = o({ bd: "tabclose", bdelete: "tabclose", sanitize: "sanitise", + tutorial: "tutor", }), followpagepatterns: o({ next: "^(next|newer)\\b|ยป|>>|more", diff --git a/src/static/newtab.css b/src/static/newtab.css index 2662ab62..d49cc7dc 100644 --- a/src/static/newtab.css +++ b/src/static/newtab.css @@ -6,6 +6,10 @@ body { margin: auto; } +h1 { + padding-top: 1em; +} + @media screen and (max-width: 38em) { body { max-width: 100%;