Skip to content

Commit bd6dbb0

Browse files
committed
improve demo page
1 parent 52e215e commit bd6dbb0

File tree

9 files changed

+26
-37
lines changed

9 files changed

+26
-37
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,10 @@ jobs:
2525
env:
2626
CI: true
2727

28-
- name: Build
29-
run: yarn build
30-
env:
31-
PUBLIC_URL: /treebank-react
32-
3328
- name: Predeploy
3429
run: yarn predeploy
3530
env:
36-
PUBLIC_URL: /treebank-react
31+
PUBLIC_URL: /alignment-react
3732

3833
- name: Deploy GitHub
3934
uses: JamesIves/github-pages-deploy-action@releases/v3

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,10 @@ jobs:
2222
- name: Lint code
2323
run: yarn lint
2424

25-
# Ideally yarn audit would be part of the CI flow
26-
# but currently there is too much noise
27-
# See e.g. https://github.com/facebook/create-react-app/issues/8529
28-
# - name: Audit dependencies
29-
# - run: yarn audit
30-
3125
- name: Run unit tests
3226
run: yarn test --coverage
3327
env:
3428
CI: true
29+
30+
- name: Build
31+
run: yarn build

example/public/favicon.ico

38 KB
Binary file not shown.

example/public/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
name="viewport"
88
content="width=device-width, initial-scale=1, shrink-to-fit=no"
99
/>
10-
<meta name="theme-color" content="#000000" />
10+
<meta name="theme-color" content="alignment-react demo" />
1111

1212
<!--
1313
manifest.json provides metadata used when your web app is added to the

example/src/App/App.js

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react';
22

3+
import styles from './App.module.scss';
4+
35
import {
46
Alignment,
57
Collapse,
@@ -458,15 +460,17 @@ const xml = `
458460
`;
459461

460462
const App = () => (
461-
<Alignment alignment={xml}>
462-
<Sentence n="1">
463-
<Segment lnum="L1" />
464-
<Segment lnum="L2" />
465-
<Collapse title="XML">
466-
<Xml />
467-
</Collapse>
468-
</Sentence>
469-
</Alignment>
463+
<div className={styles.alignment}>
464+
<Alignment alignment={xml}>
465+
<Sentence n="1">
466+
<Segment lnum="L1" />
467+
<Segment lnum="L2" />
468+
<Collapse title="XML">
469+
<Xml />
470+
</Collapse>
471+
</Sentence>
472+
</Alignment>
473+
</div>
470474
);
471475

472476
export default App;

example/src/App/App.module.css

Lines changed: 0 additions & 5 deletions
This file was deleted.

example/src/App/App.module.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.alignment {
2+
width: 80vw;
3+
margin-left: 10vw;
4+
5+
margin-top: 5vh;
6+
margin-bottom: 5vh;
7+
}

example/src/App/App.test.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "alignment-react",
33
"version": "0.1.0",
44
"description": "Alignment display engine for React",
5-
"homepage": "https://perseids-tools.github.io/treebank-react/",
5+
"homepage": "https://perseids-tools.github.io/alignment-react/",
66
"repository": {
77
"type": "git",
88
"url": "git+https://github.com/perseids-tools/alignment-react.git"

0 commit comments

Comments
 (0)