Skip to content

Commit

Permalink
chore: add index.html page
Browse files Browse the repository at this point in the history
  • Loading branch information
bptodorova committed Jan 12, 2024
1 parent cea6d16 commit b75677b
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

defaults:
run:
working-directory: ./examples
working-directory: ./live

env:
NODE_OPTIONS: --max_old_space_size=6144
Expand All @@ -27,14 +27,14 @@ jobs:
uses: actions/checkout@v4

- name: Build
run: ../bin/build-gh-pages
run: ./bin/build-gh-pages
env:
KENDO_UI_LICENSE: ${{ secrets.KENDO_UI_LICENSE }}

- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ github.token }}
publish_dir: ./examples/dist
publish_dir: ./live/dist
user_name: 'kendo-bot'
user_email: '[email protected]'
11 changes: 7 additions & 4 deletions bin/build-gh-pages → live/bin/build-gh-pages
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,17 @@ set -e
# Standalone Projects
for PROJECT in "${STANDALONE_PROJECTS[@]}"
do
pushd ./examples/${PROJECT} > /dev/null
pushd ../examples/${PROJECT} > /dev/null

echo Building ${PROJECT}
npm ci
rm -rf dist
npm run build
mkdir -p ../../dist/${PROJECT}
mv -v dist/* ../../dist/${PROJECT}
mkdir -p ../../live/dist/${PROJECT}
mv -v dist/* ../../live/dist/${PROJECT}

popd > /dev/null
done
done

# Copy static assets
cp static/* dist
15 changes: 15 additions & 0 deletions live/static/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>KendoReact - Sample Applications</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>Error</h1>

<p>
Resource not found.
<p>
</body>
</html>
27 changes: 27 additions & 0 deletions live/static/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>KendoReact - Sample Applications</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<h1>KendoReact - Sample Applications</h1>
<p>
This GitHub pages site hosts runnable versions of the following sample applications:
<p>
<ul>
<li><a href="kendo-react-finance-portfolio/">Finance Portfolio Application</a></li>
<li><a href="react-coffee-warehouse/">Coffee Warehouse Dashboard Application</a></li>
<li><a href="react-admin-dashboard/">Admin Dashboard Application</a></li>
<li><a href="kendo-react-homepage-demo/">Github Issues Data Grid</a></li>
<li><a href="kendo-react-file-manager/">File Manager Template Application</a></li>
<li><a href="react-grid-live-data/">Grid Live Data Application</a></li>
</ul>
<p>
To access the source code of all sample applications, go to the
<a href="https://github.com/telerik/kendo-react/">telerik/kendo-react GitHub</a>
repository.
</p>
</body>
</html>
4 changes: 4 additions & 0 deletions live/static/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
html {
font-family: sans-serif;
line-height: 1.15;
}

0 comments on commit b75677b

Please sign in to comment.