Fix tutorial build process and alias

This commit is contained in:
Oliver Blanthorn 2018-04-14 14:03:54 +01:00
parent 1cc76c3bb4
commit 13932f94a2
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3
3 changed files with 6 additions and 2 deletions

View file

@ -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"

View file

@ -137,6 +137,7 @@ const DEFAULTS = o({
bd: "tabclose",
bdelete: "tabclose",
sanitize: "sanitise",
tutorial: "tutor",
}),
followpagepatterns: o({
next: "^(next|newer)\\b|»|>>|more",

View file

@ -6,6 +6,10 @@ body {
margin: auto;
}
h1 {
padding-top: 1em;
}
@media screen and (max-width: 38em) {
body {
max-width: 100%;