From 29973dac8bb2df8942e7fa7f6e29d14617f0a4d7 Mon Sep 17 00:00:00 2001 From: Wendell Hu Date: Tue, 10 Jul 2018 13:42:54 +0800 Subject: [PATCH] lesson 5: publish --- 404.html | 41 +++++++++++++++++++++++++++++++++++++++++ publish.sh | 5 +++++ src/index.html | 34 +++++++++++++++++++++++++++++++++- 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 404.html create mode 100644 publish.sh diff --git a/404.html b/404.html new file mode 100644 index 0000000..21994e8 --- /dev/null +++ b/404.html @@ -0,0 +1,41 @@ + + + + + + Single Page Apps for GitHub Pages + + + + + + + diff --git a/publish.sh b/publish.sh new file mode 100644 index 0000000..7f4fc7f --- /dev/null +++ b/publish.sh @@ -0,0 +1,5 @@ +ng build --prod; +cp ./404.html ./dist/today-ng/404.html; +git add dist --force; +git commit -m "demo: build demo"; +git subtree push --prefix dist/today-ng origin gh-pages; diff --git a/src/index.html b/src/index.html index 90051b4..d0cb42a 100644 --- a/src/index.html +++ b/src/index.html @@ -1,14 +1,46 @@ + TodayNg - + + + +