Skip to content

Commit ee600c2

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

74 files changed

Lines changed: 12112 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: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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+
mv temp_library/docs/api docs/
20+
rm -rf temp_library
21+
22+
- name: Install Dependencies
23+
run: npm install
24+
25+
- name: Build & Deploy
26+
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

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.

blog/authors.yml

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

0 commit comments

Comments
 (0)