From 334a9dd184d94149579eb55e2ef6d47358390353 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 27 Jul 2023 12:29:43 +0200 Subject: [PATCH] fix broken link in getting started --- website/docs/gettingStarted.html | 6 +++--- website/docs/src/build.js | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/website/docs/gettingStarted.html b/website/docs/gettingStarted.html index d2d8815..799dd51 100644 --- a/website/docs/gettingStarted.html +++ b/website/docs/gettingStarted.html @@ -28,9 +28,9 @@

Loading the script from the cdn is quite straight forward. If you copy the below example code, you need to do nothing else, impress will be loaded automatically.

Direct links to different versions of the impress.js file

Download the file to your PC

Head to the releases tab and download the source code as zip or as a tarball. Go ahead and unzip / untar it. You need to copy the folder /js/ into the folder you are working in. Optionally, if you want to make your life a bit easier, you can copy also copy the folder /css/ in there.

diff --git a/website/docs/src/build.js b/website/docs/src/build.js index 28d58c5..32a3267 100644 --- a/website/docs/src/build.js +++ b/website/docs/src/build.js @@ -432,6 +432,8 @@ function generateGettingStarted ( inputHTML ) { } else { checkedLink = '/docs/plugins' + link.slice( 12, link.length ) + '.html'; }; + } else if ( link.slice( 0, 7 ) === 'http://' || link.slice( 0, 8 ) === 'https://' ) { + checkedLink = link; } html = html.slice( 0, parseInt( letter ) + 9 ) + checkedLink + html.slice( parseInt( letter ) + i, parseInt( html.length ) ); };