Skip to content

Commit deb5fe7

Browse files
committed
fix(gh-pages): add root redirect and react-draggable link
- Add root index.html that redirects to /examples/ - Add React-Draggable link to examples header - Update gh-pages workflow to deploy root redirect alongside examples
1 parent 3dfc0b8 commit deb5fe7

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.github/workflows/gh-pages.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ jobs:
1717
run: |
1818
yarn
1919
yarn build-example
20+
mkdir -p dist
21+
cp -r examples dist/examples
22+
cp index.html dist/
2023
2124
- name: Deploy 🚀
2225
uses: JamesIves/github-pages-deploy-action@v4
2326
with:
2427
branch: gh-pages # The branch the action should deploy to.
25-
folder: examples # The folder the action should deploy.
26-
target-folder: examples # The destination. Shouldn't touch other folders.
28+
folder: dist # The folder the action should deploy.

examples/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
<header class="main-header">
1515
<h3>◢ React-Resizable</h3>
1616
<div class="header-links">
17+
<a class="rgl-link" href="https://react-grid-layout.github.io/react-draggable/" target="_blank">React-Draggable ⇢</a>
1718
<a class="rgl-link" href="https://react-grid-layout.github.io/react-grid-layout/examples/00-showcase.html" target="_blank">React-Grid-Layout ⇢</a>
1819
<a id="version-badge" class="version-badge" href="https://github.com/react-grid-layout/react-resizable/releases" target="_blank"></a>
1920
</div>

index.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta http-equiv="refresh" content="0; url=https://react-grid-layout.github.io/react-resizable/examples/">
6+
<title>React-Resizable</title>
7+
</head>
8+
<body>
9+
<p>Redirecting to <a href="https://react-grid-layout.github.io/react-resizable/examples/">examples</a>...</p>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)