Skip to content

Commit ac0e6d4

Browse files
authored
Merge pull request #72 from MohamedRejeb/0.5.x
ci: publish web demo to GitHub Pages, fix docs logo
2 parents c5c1fae + 70819a7 commit ac0e6d4

5 files changed

Lines changed: 48 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,7 @@ jobs:
5151

5252
- name: Publish to Maven Central
5353
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache
54+
55+
pages:
56+
needs: deploy
57+
uses: ./.github/workflows/mkdocs.yml

.github/workflows/mkdocs.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
workflow_call:
78

89
permissions:
910
contents: write
@@ -28,5 +29,25 @@ jobs:
2829
- run: pip install pillow cairosvg
2930
- run: pip install mkdocs-minify-plugin
3031
- run: pip install mkdocs-macros-plugin
32+
- run: pip install ghp-import
3133

32-
- run: mkdocs gh-deploy --force
34+
- name: Set up JDK 17
35+
uses: actions/setup-java@v5
36+
with:
37+
java-version: '17'
38+
distribution: 'zulu'
39+
40+
- name: Setup gradle
41+
uses: gradle/actions/setup-gradle@v5
42+
43+
- name: Build web demo
44+
run: ./gradlew :sample:web:wasmJsBrowserDistribution
45+
46+
- name: Build docs
47+
run: mkdocs build
48+
49+
- name: Add web demo to site
50+
run: cp -r sample/web/build/dist/wasmJs/productionExecutable site/demo
51+
52+
- name: Deploy to GitHub Pages
53+
run: ghp-import --no-jekyll --push --force --no-history site

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ A library that allows you to easily add drag and drop functionality to your Jetp
1010

1111
![Compose DND sample](docs/images/hero.gif)
1212

13+
**[Try the live demo](https://mohamedrejeb.github.io/compose-dnd/demo/)** · **[Documentation](https://mohamedrejeb.github.io/compose-dnd/)**
14+
1315
## Features
1416

1517
- **Drag and Drop** -- Drag items from one location and drop them onto designated targets

docs/images/logo.svg

Lines changed: 18 additions & 0 deletions
Loading

mkdocs.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ edit_uri: ""
88
theme:
99
name: 'material'
1010
language: 'en'
11-
favicon: 'images/logo.ico'
11+
favicon: 'images/logo.svg'
1212
logo: 'images/logo.svg'
1313
palette:
1414
- scheme: default
@@ -53,6 +53,7 @@ nav:
5353
- 'Conditional Drop': drag-and-drop/conditional-drop.md
5454
- 'Multiple Lists (Kanban)': drag-and-drop/kanban-board.md
5555
- 'Form Builder (Copy on Drop)': drag-and-drop/form-builder.md
56+
- 'Live Demo': https://mohamedrejeb.github.io/compose-dnd/demo/
5657
- 'Code of Conduct': code_of_conduct.md
5758

5859
extra_css:

0 commit comments

Comments
 (0)