diff --git a/Makefile b/Makefile index 37de2640b..219a45faf 100644 --- a/Makefile +++ b/Makefile @@ -978,8 +978,13 @@ site-build: site/hakyll-std/hakyll-std site/manual.md \ site/docs.md: wiki/_Sidebar.md \ $(call def-help,site/docs.md, update docs page with wiki sidebar content which should be in ./wiki/_Sidebar ) (sed -ne '1,// p' site/docs.md ; \ - sed -ne '/^#/,$$ p' wiki/_Sidebar.md \ - | perl -p -e 's/\[\[([^\]]*)\]\]/[\1](https:\/\/github.com\/simonmichael\/hledger\/wiki\/\1)/g' ; \ + sed -ne '/^#.*User/,$$ p' wiki/_Sidebar.md \ + | perl -p \ + -e 's/\[\[([^\|]*)\|([^\]]*)\]\]/[\1](https:\/\/github.com\/simonmichael\/hledger\/wiki\/\2)/g;' \ + -e 's/\[\[([^\]]*)\]\]/[\1](https:\/\/github.com\/simonmichael\/hledger\/wiki\/\1)/g;' \ + | perl -p \ + -e 's/\[dev\//[/g;' \ + ; \ sed -ne '//,$$ p' site/docs.md ) \ > site/_docs.md.$$$$ && \ mv site/_docs.md.$$$$ site/docs.md diff --git a/site/docs.md b/site/docs.md index ae6498e0b..404db7c76 100644 --- a/site/docs.md +++ b/site/docs.md @@ -117,13 +117,10 @@ a file format for human-friendly approximate time logging