From 330411d6ee635a5c7766ddd53acbadb362c3dfad Mon Sep 17 00:00:00 2001 From: James Sleeman Date: Sat, 6 Feb 2016 13:28:46 +1300 Subject: [PATCH] FIx link replacement for README.md --- README.md | 2 +- docs/update-docs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9132446..5d2427d 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,6 @@ Choose the other examples starting with those in "z1_TimeAndDate" for the basis ## Full Class Reference -I recommend to just look at the examples which show you how to use all the features, but if you want the nitty-gritty then here is the [full class reference](https://cdn.rawgit.com/sleemanj/DS3231_Simple/4215dc8/docs/html/class_d_s3231___simple.html) +I recommend to just look at the examples which show you how to use all the features, but if you want the nitty-gritty then here is the [full class reference](https://cdn.rawgit.com/sleemanj/DS3231_Simple/31d0dac/docs/html/class_d_s3231___simple.html) Thanks to the super kind folks of [RawGit](https://rawgit.com/) and [MaxCDN](http://www.maxcdn.com/) diff --git a/docs/update-docs.sh b/docs/update-docs.sh index 9b383ff..b848029 100755 --- a/docs/update-docs.sh +++ b/docs/update-docs.sh @@ -55,7 +55,7 @@ else if ( git add . && git commit ) then HEAD="$(git log --format=format:"%h" | head -1)" - cat ../README.md | sed -r "s/(\(http.*\/)[^\/]+(\/docs\/html\/index.html)/\1$HEAD\2/" >../README.md.2 + cat ../README.md | sed -r "s/(\(http.*\/)[^\/]+(\/docs\/html\/[^.]+\.html)/\1$HEAD\2/" >../README.md.2 mv ../README.md.2 ../README.md echo "Updated documentation link to use $HEAD"