Skip to content

Commit 23b3c79

Browse files
authored
Merge branch 'main' into fix/android-preserve-inline-styles-during-ime-composition
2 parents d2fccad + 08eed0e commit 23b3c79

162 files changed

Lines changed: 23966 additions & 2106 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/docs-build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: docs build
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'docs/**'
7+
- '.github/workflows/docs-build.yml'
8+
workflow_dispatch:
9+
10+
jobs:
11+
docs-build:
12+
runs-on: ubuntu-latest
13+
defaults:
14+
run:
15+
working-directory: docs
16+
steps:
17+
- name: Check out
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Node
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: 22
24+
cache: yarn
25+
cache-dependency-path: |
26+
yarn.lock
27+
docs/yarn.lock
28+
29+
- name: Install library dependencies (local source)
30+
working-directory: ${{ github.workspace }}
31+
run: yarn install --immutable
32+
33+
- name: Install dependencies
34+
run: yarn install --immutable
35+
36+
- name: Typecheck docs
37+
working-directory: ${{ github.workspace }}
38+
run: yarn typecheck:docs
39+
40+
- name: Build docs
41+
run: yarn build
42+
43+
- name: Check docs llms.txt
44+
run: |
45+
file=build/llms.txt
46+
if [ ! -s "$file" ]; then
47+
echo "::error::$file is missing or empty"
48+
exit 1
49+
fi
50+
count=$(grep -cE '^- \[[^]]+\]\(https://docs\.swmansion\.com/react-native-enriched-html/[^)]+\)' "$file" || true)
51+
if [ "$count" -eq 0 ]; then
52+
echo "::error::$file lists no pages"
53+
exit 1
54+
fi
55+
echo "llms.txt lists $count pages"

.github/workflows/docs-publish.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: docs publish
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'docs/**'
9+
- '.github/workflows/docs-publish.yml'
10+
workflow_dispatch:
11+
12+
jobs:
13+
docs-publish:
14+
if: github.repository == 'software-mansion/react-native-enriched-html'
15+
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
defaults:
19+
run:
20+
working-directory: docs
21+
steps:
22+
- name: Check out
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Node
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: yarn
30+
cache-dependency-path: |
31+
yarn.lock
32+
docs/yarn.lock
33+
34+
- name: Install library dependencies (local source)
35+
working-directory: ${{ github.workspace }}
36+
run: yarn install --immutable
37+
38+
- name: Install dependencies
39+
run: yarn install --immutable
40+
41+
- name: Typecheck docs
42+
working-directory: ${{ github.workspace }}
43+
run: yarn typecheck:docs
44+
45+
- name: Build docs
46+
run: yarn build
47+
48+
- name: Deploy to GitHub Pages
49+
uses: JamesIves/github-pages-deploy-action@v4
50+
with:
51+
folder: docs/build
52+
branch: gh-pages
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
appId: swmansion.enriched.example
2+
---
3+
# Verifies that typing attributes are properly preserved on selection changes
4+
- launchApp
5+
6+
- tapOn:
7+
id: 'toggle-screen-button'
8+
9+
- tapOn:
10+
id: "editor-input"
11+
12+
- tapOn:
13+
id: "toolbar-bold"
14+
15+
- inputText: 'bold text'
16+
- pressKey: Enter
17+
- pressKey: Enter
18+
- pressKey: Enter
19+
- inputText: 'another line'
20+
21+
- doubleTapOn:
22+
id: 'editor-input'
23+
point: '20%, 75%'
24+
25+
- tapOn:
26+
id: 'editor-input'
27+
point: '50%, 15%'
28+
29+
- inputText: 'new'
30+
31+
- runFlow:
32+
file: '../subflows/capture_or_assert_screenshot.yaml'
33+
env:
34+
SCREENSHOT_NAME: 'preserve_typing_attributes_on_selection_changes'
9.81 KB
Loading
11.6 KB
Loading

CONTRIBUTING.md

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

0 commit comments

Comments
 (0)