Skip to content

Commit af516e3

Browse files
authored
Merge branch 'main' into @ksienkiewicz/fix-list-styling
2 parents 05079bb + 7e6e881 commit af516e3

130 files changed

Lines changed: 23656 additions & 2056 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: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

.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

CONTRIBUTING.md

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

0 commit comments

Comments
 (0)