summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2024-04-06convert internal rooted links from ikiwiki directive to zola shortcodeJonas Smedegaard
command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?)\/?(?<!\.pdf)(#[^\[\]]*)?\s*\]\],[$1](\@$2/index.md$3),g; s,\[\[\s*([^\s!|\[\]][^|\[\]]*?)\s*\|\s*(/[^\[\]#]+?\.pdf)\s*\]\],[$1]($2),g;' '{}' + ```
2024-04-06fix image pathsJonas Smedegaard
2024-04-06convert meta and tag directives to TOML frontmatterJonas Smedegaard
command: ``` find * -type f -name '*.md' -execdir perl -MTOML::Tiny=to_toml -C63 -gni -E '%x=();s/\[\[!meta\s+(title|date)="?([^\]"]+?)\s*"?\s*\]\]\s*\n*/$x{$1}=$2;""/eg; s/\[\[!meta\s+stylesheet="?edu"?\s+rel="?stylesheet"?\s*\]\]\n*/$x{taxonomies}{categories}=["education"];""/e; s/\[\[!tag((?:\s+[^\]\s]+)+)\s*\]\]\n*/push @{$x{taxonomies}{tags}}, $1=~m{\S+}g;""/eg; s/\[\[!meta\s+(?:author|name)="?([^\]"]+?)\s*"?\s*\]\]\s*\n*/$x{extra}{author}=$1;""/eg; say "+++"; say to_toml({%x}); say "+++"; say $_' '{}' + ```
2024-04-06convert img and template directives to shortcodesJonas Smedegaard
command: ``` find * -type f -name '*.md' -execdir perl -gpi -e 's/\[\[!img\s+([^\s\]"]+)(\s(?:[^\]]|"[^"]*")+?)?\s*\]\]/{{ img(path="$1"$2) }}/g; s/\[\[!template\s+id="?(columns|note|video)"?\s+([^\]]+?)\s*\]\]/{{ $1($2) }}/g;' '{}' + ```
2024-04-06rename *.mdwn to */index.md, except index/topbar/farbar/sidebar filesJonas Smedegaard
command: ``` perl -MPath::Tiny -WE 'use strict; path(".")->visit(sub{return unless -f && /\.mdwn$/; my $stem=$_->basename(".mdwn"); my $new=$_->sibling($stem,"index.md"); return if $stem =~ /^index|topbar|sidebar|farbar|footer$/ || $new->exists; $new->parent->mkpath; system("git","mv", $_, $new)},{recurse=>1})' ```
2024-04-06normalize directives to always quote variablesJonas Smedegaard
command: ``` find * -type f -name '*.mdwn' -execdir perl -gpi -e 's/(?:class|link|size|stem|width|height)=\K[^=\s"\]>]+/"$&"/g;' '{}' + ```
2023-10-18wrap deco images, to support excempting auto-width stylingJonas Smedegaard
2023-05-10use secure https URIs where possibleJonas Smedegaard
2023-05-10fix replace link to dead website with link to archive.orgJonas Smedegaard
2022-10-28normalize headlines to have one leading space and no trailing spaceJonas Smedegaard
command: ``` find * -type f -name '*.mdwn' -execdir perl -pi -e 's/^(#+)\s*([^\s#].*?)\h*$/$1 $2/g;' '{}' + ```
2022-10-28fix image pathsJonas Smedegaard
2018-05-16Add waypoint.Siri Reiter
2018-05-15Add waypoint.Siri Reiter
2018-05-13Tag byvandring to tag ture.Siri Reiter
2018-05-12Put marker with popup.Siri Reiter
2018-05-12Paste text from real tour description. Add area map png with link for map.Siri Reiter
2018-05-11Add stamen layer. Add polygons with osterbro, norrebro and vesterbro.Siri Reiter
2018-05-10Move map from test.Siri Reiter
2017-01-06Change topbar image ref.Siri Reiter
2016-05-20Tags with small letters.Siri Reiter
2016-04-12Use test style.Siri Reiter
2016-04-09Add Christianshavn area.Siri Reiter
2016-04-09Fix osterbro border.Siri Reiter
2016-04-09Redraw Sydvest area.Siri Reiter
2016-04-09Redraw Valby area.Siri Reiter
2016-04-09Correct frederiksberg border line.Siri Reiter
2016-04-09Remake City area.Siri Reiter
2016-04-08Fix Vesterbro.Siri Reiter
2016-04-08Fix borders of havnen.Siri Reiter
2016-04-08Borders of Frederiksberg.Siri Reiter
2016-04-08Apply stamen map skin.Siri Reiter
2016-04-08Fix: Title as link.Siri Reiter
2016-04-08Resize front window images.Siri Reiter
2016-04-08Remove links to other maps for now.Siri Reiter
2016-04-07Improve borders of Bispebjerg.Siri Reiter
2016-04-07Improve borders of Osterbro.Siri Reiter
2016-04-07Correct Norrebro borders.Siri Reiter
2016-03-29Add sydvest.Siri Reiter
2016-03-29Add voldkvarterer.Siri Reiter
2016-03-29Add valby.Siri Reiter
2016-03-29Add norrebro.Siri Reiter
2016-03-29Add vesterbro.Siri Reiter
2016-03-29Add havnen to map.Siri Reiter
2016-03-29Add islandsbrygge and frederiksberg shapes.Siri Reiter
2016-03-29Add Amager to kbh-map.Siri Reiter
2016-03-06Fix link.Siri Reiter
2016-03-06Fix link.Siri Reiter
2016-03-06Fix link.Siri Reiter
2016-03-06Markup changes.Siri Reiter
2016-03-06Fix link.Siri Reiter