Redirect old website to new URL

This commit is contained in:
Julien Bisconti 2018-03-18 06:30:10 +01:00
parent 4192aa438b
commit a8100184a9
3 changed files with 16 additions and 4 deletions

1
.gitignore vendored
View File

@ -6,5 +6,4 @@ node_modules
.cache
dist
package-lock.json
index.html

View File

@ -34,13 +34,13 @@ console.log('Merging files...');
const $ = cheerio.load(index);
$('#md').append(converter.makeHtml(readme));
console.log('Writing index.html');
fs.writeFileSync('index.html', $.html(), 'utf8');
console.log('Writing main.html');
fs.writeFileSync('main.html', $.html(), 'utf8');
console.log('Bundling with Parcel.js');
console.log('');
new Parcel('index.html', {
new Parcel('main.html', {
name: 'build',
// publicURL: '/awesome-docker'
publicURL: '/'

13
index.html Normal file
View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<meta HTTP-EQUIV="REFRESH" content="0; url=https://awesome-docker.netlify.com">
<title>Awesome-docker</title>
</head>
<body>
<p> <a href="https://awesome-docker.netlify.com/">We moved to a new place, click here to be redirected.</a></p>
</body>
</html>