Skip to content

Commit 97835d2

Browse files
committed
baileys.wiki: welcome!
1 parent 7a43179 commit 97835d2

75 files changed

Lines changed: 12118 additions & 9536 deletions

Some content is hidden

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

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Sync API Docs and Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Docs Repo
13+
uses: actions/checkout@v3
14+
15+
- name: Clone TS Library (Fetch Latest API Docs)
16+
run: |
17+
git clone --depth 1 https://github.com/WhiskeySockets/Baileys.git temp_library
18+
rm -rf docs/api
19+
cd temp_library && yarn install
20+
yarn build:docs
21+
cd ../
22+
mv temp_library/docs/api ./docs/api
23+
rm -rf temp_library
24+
25+
- name: Install Dependencies
26+
run: npm install
27+
28+
- name: Build & Deploy
29+
run: npm run build && npm run deploy

.github/workflows/publish.yml

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,68 @@
1-
name: Publish
2-
3-
on:
4-
push:
5-
branches:
6-
- "main"
7-
schedule:
8-
- cron: "0 0 * * *"
9-
workflow_dispatch:
10-
11-
permissions:
12-
contents: write
13-
14-
jobs:
15-
publish:
16-
runs-on: ubuntu-latest
17-
concurrency: publish
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v3
21-
22-
- name: Setup Node
23-
uses: actions/setup-node@v3
24-
with:
25-
node-version: 18.x
26-
27-
- name: Get npm cache directory
28-
id: npm-cache
29-
run: |
30-
echo "::set-output name=dir::$(npm config get cache)"
31-
32-
- name: Setup npm cache
33-
uses: actions/cache@v3
34-
with:
35-
path: ${{ steps.npm-cache.outputs.dir }}
36-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37-
restore-keys: |
38-
${{ runner.os }}-node-
39-
40-
- name: Setup docusaurus cache
41-
uses: actions/cache@v3
42-
with:
43-
path: ".docusaurus"
44-
key: ${{ runner.os }}-docusaurus-${{ hashFiles('**/docusaurus.config.js') }}
45-
restore-keys: |
46-
${{ runner.os }}-docusaurus-
47-
48-
- name: Setup node_modules cache
49-
uses: actions/cache@v3
50-
with:
51-
path: "node_modules/.cache"
52-
key: ${{ runner.os }}-node_modules-cache-${{ hashFiles('**/package-lock.json') }}
53-
restore-keys: |
54-
${{ runner.os }}-node_modules-cache-
55-
56-
- name: Install Dependencies
57-
run: npm ci || npm install
58-
59-
- name: Build Page
60-
run: npm run build
61-
62-
- name: Deploy Page
63-
uses: peaceiris/actions-gh-pages@v3
64-
continue-on-error: true
65-
with:
66-
github_token: ${{ secrets.GITHUB_TOKEN }}
67-
cname: guide.whiskeysockets.io
68-
publish_dir: ./build
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
schedule:
8+
- cron: "0 0 * * *"
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
publish:
16+
runs-on: ubuntu-latest
17+
concurrency: publish
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v3
21+
22+
- name: Setup Node
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18.x
26+
27+
- name: Get npm cache directory
28+
id: npm-cache
29+
run: |
30+
echo "::set-output name=dir::$(npm config get cache)"
31+
32+
- name: Setup npm cache
33+
uses: actions/cache@v3
34+
with:
35+
path: ${{ steps.npm-cache.outputs.dir }}
36+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
37+
restore-keys: |
38+
${{ runner.os }}-node-
39+
40+
- name: Setup docusaurus cache
41+
uses: actions/cache@v3
42+
with:
43+
path: ".docusaurus"
44+
key: ${{ runner.os }}-docusaurus-${{ hashFiles('**/docusaurus.config.js') }}
45+
restore-keys: |
46+
${{ runner.os }}-docusaurus-
47+
48+
- name: Setup node_modules cache
49+
uses: actions/cache@v3
50+
with:
51+
path: "node_modules/.cache"
52+
key: ${{ runner.os }}-node_modules-cache-${{ hashFiles('**/package-lock.json') }}
53+
restore-keys: |
54+
${{ runner.os }}-node_modules-cache-
55+
56+
- name: Install Dependencies
57+
run: npm ci || npm install
58+
59+
- name: Build Page
60+
run: npm run build
61+
62+
- name: Deploy Page
63+
uses: peaceiris/actions-gh-pages@v3
64+
continue-on-error: true
65+
with:
66+
github_token: ${{ secrets.GITHUB_TOKEN }}
67+
cname: baileys.wiki
68+
publish_dir: ./build

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,6 @@
1818
npm-debug.log*
1919
yarn-debug.log*
2020
yarn-error.log*
21+
22+
temp_library
23+
./docs/api/

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
# Website
2-
3-
This website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.
4-
1+
# baileys.wiki - Guide & Docs
2+
A website that serves documentation and guides for the [Baileys](https://github.com/whiskeysockets/baileys) project.
53
### Installation
64

75
```

babel.config.js

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

blog/2019-05-28-first-blog-post.md

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

blog/2019-05-29-long-blog-post.md

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

blog/2021-08-01-mdx-blog-post.mdx

Lines changed: 0 additions & 20 deletions
This file was deleted.
-93.9 KB
Binary file not shown.

blog/2021-08-26-welcome/index.md

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

0 commit comments

Comments
 (0)