-
Notifications
You must be signed in to change notification settings - Fork 671
/
deploy_docs.sh
executable file
·53 lines (47 loc) · 1.38 KB
/
deploy_docs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
set -e
# Build the Compose WASM sample.
./gradlew samples:compose:wasmJsBrowserDistribution
# Copy outside files into the docs folder.
cp -R samples/compose/build/dist/wasmJs/productionExecutable docs/sample
# Build the Dokka docs.
./assemble_docs.sh
# Copy outside files into the docs folder.
sed -e '/full documentation here/ { N; d; }' < README.md > docs/index.md
cp .github/ISSUE_TEMPLATE/CONTRIBUTING.md docs/contributing.md
cp CHANGELOG.md docs/changelog.md
cp coil-network-core/README.md docs/network.md
cp coil-compose/README.md docs/compose.md
cp coil-gif/README.md docs/gifs.md
cp coil-svg/README.md docs/svgs.md
cp coil-test/README.md docs/testing.md
cp coil-video/README.md docs/videos.md
cp logo.svg docs/logo.svg
cp README-ja.md docs/README-ja.md
cp README-ko.md docs/README-ko.md
cp README-ru.md docs/README-ru.md
cp README-sv.md docs/README-sv.md
cp README-tr.md docs/README-tr.md
cp README-zh.md docs/README-zh.md
# Deploy to Github pages.
python3 -m mkdocs gh-deploy --force
# Clean up.
rm docs/index.md \
docs/contributing.md \
docs/changelog.md \
docs/network.md \
docs/compose.md \
docs/logo.svg \
docs/gifs.md \
docs/svgs.md \
docs/testing.md \
docs/videos.md \
docs/README-ja.md \
docs/README-ko.md \
docs/README-ru.md \
docs/README-sv.md \
docs/README-tr.md \
docs/README-zh.md
rm -r docs/api \
docs/sample \
site