Skip to content

Commit 5555c3a

Browse files
committed
Add Svelte demo application
Introduce an interactive demo built with Svelte and Vite to showcase the belmorph library. Users can search for words, view their morphological analysis, inflect them into different forms, and see their full lexeme. A GitHub Actions workflow is included to build and deploy the demo to GitHub Pages. A custom Vite plugin copies dictionary files for the analyzer.
1 parent 18010a2 commit 5555c3a

19 files changed

+3169
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Deploy Demo
2+
on:
3+
push:
4+
branches: [main]
5+
permissions:
6+
contents: write
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: 20
15+
cache: npm
16+
- name: Install root deps
17+
run: npm ci
18+
- name: Install demo deps
19+
run: cd demo && npm ci
20+
- name: Build demo
21+
run: cd demo && npm run build
22+
- name: Deploy to GitHub Pages
23+
uses: peaceiris/actions-gh-pages@v4
24+
with:
25+
github_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_dir: demo/dist

demo/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html lang="be">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<title>Belmorph — марфалагічны аналізатар беларускай мовы</title>
7+
<meta name="description" content="Інтэрактыўны марфалагічны аналізатар беларускай мовы" />
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.ts"></script>
12+
</body>
13+
</html>

0 commit comments

Comments
 (0)