Skip to content

Commit 557de9a

Browse files
ryan-williamsclaude
andcommitted
Extract to standalone Open-Athena/elvis repo
- Update GitHub link in `App.tsx` to `Open-Athena/elvis` - Update `CNAME` and README links from `elvis.rbw.sh` → `elvis.oa.dev` - Remove `cd elvis` from quickstart (now repo root) - Add GitHub Pages workflow for standalone deploy Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e89a19b commit 557de9a

4 files changed

Lines changed: 65 additions & 7 deletions

File tree

.github/workflows/pages.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build-and-test:
19+
runs-on: ubuntu-latest
20+
timeout-minutes: 10
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: pnpm/action-setup@v4
24+
with:
25+
version: 10
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: pnpm
30+
- run: pnpm install --frozen-lockfile
31+
- run: pnpm build
32+
env:
33+
BASE_PATH: /
34+
- name: Install Playwright browsers
35+
working-directory: pkgs/static
36+
run: pnpm exec playwright install --with-deps chromium
37+
- name: Run E2E tests
38+
working-directory: pkgs/static
39+
run: pnpm test:e2e
40+
- name: Upload test report
41+
if: failure()
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: playwright-report
45+
path: pkgs/static/playwright-report/
46+
retention-days: 7
47+
- uses: actions/upload-pages-artifact@v3
48+
with:
49+
path: pkgs/static/dist
50+
51+
deploy:
52+
needs: build-and-test
53+
runs-on: ubuntu-latest
54+
environment:
55+
name: github-pages
56+
url: ${{ steps.deployment.outputs.page_url }}
57+
steps:
58+
- id: deployment
59+
uses: actions/deploy-pages@v4

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ Interactive 3D electron density viewer for VASP CHGCAR/ELFCAR files and [Materia
55
**[Try it live →][demo]**
66

77
<p align="center">
8-
<a href="https://elvis.rbw.sh/?m=mp-1000020&xb&xa&do">
8+
<a href="https://elvis.oa.dev/?m=mp-1000020&xb&xa&do">
99
<img src="pkgs/static/public/scrns/orbit-updown.gif" alt="ELvis – 3D orbit of Fe₂Cu₂O₄ electron density" width="600" />
1010
</a>
1111
</p>
1212

1313
**Periodic tiling with slice sweep:**
1414

1515
<p align="center">
16-
<a href="https://elvis.rbw.sh/?iso=571.4&c=70.1+54.6+13.5+-88&od=30&si=0&a=0.5&tp=0.5&ss=20&ct=0.426+-0.56+-0.00378&sl">
16+
<a href="https://elvis.oa.dev/?iso=571.4&c=70.1+54.6+13.5+-88&od=30&si=0&a=0.5&tp=0.5&ss=20&ct=0.426+-0.56+-0.00378&sl">
1717
<img src="pkgs/static/public/scrns/tiling-slice-sweep.gif" alt="ELvis – Periodic tiling with slice sweep" width="600" />
1818
</a>
1919
</p>
@@ -35,12 +35,11 @@ Interactive 3D electron density viewer for VASP CHGCAR/ELFCAR files and [Materia
3535
## Quick start
3636

3737
```bash
38-
cd elvis
3938
pnpm install
4039
pnpm dev # → http://localhost:3150
4140
```
4241

43-
Or load a Materials Project example directly: [`elvis.rbw.sh/?m=mp-1000020`][demo]
42+
Or load a Materials Project example directly: [`elvis.oa.dev/?m=mp-1000020`][demo]
4443

4544
## URL parameters
4645

@@ -76,7 +75,7 @@ pnpm scrns -i og-image # just the og:image
7675
[React] · [Three.js] / [React Three Fiber] · [Vite] · [TypeScript] · [`use-kbd`] · [`use-prms`]
7776

7877
[Materials Project]: https://materialsproject.org
79-
[demo]: https://elvis.rbw.sh/?m=mp-1000020&xb&xa
78+
[demo]: https://elvis.oa.dev/?m=mp-1000020&xb&xa
8079
[`scrns`]: https://www.npmjs.com/package/scrns
8180
[React]: https://react.dev
8281
[Three.js]: https://threejs.org

pkgs/static/public/CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
elvis.rbw.sh
1+
elvis.oa.dev

pkgs/static/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const speedDialActions: SpeedDialAction[] = [
152152
key: 'github',
153153
label: 'View source on GitHub',
154154
icon: <GithubIcon />,
155-
href: 'https://github.com/Quantum-Accelerators/electrai/tree/elvis/elvis#readme',
155+
href: 'https://github.com/Open-Athena/elvis#readme',
156156
},
157157
]
158158

0 commit comments

Comments
 (0)