Skip to content

Commit 8d0d888

Browse files
committed
feat: Deploy wiki using gh-pages
1 parent cd0a0ef commit 8d0d888

File tree

7 files changed

+130
-2
lines changed

7 files changed

+130
-2
lines changed

.github/renovate.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended"
5+
]
6+
}

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: actions/setup-python@v6
16+
with:
17+
python-version: "3.14"
18+
- run: python3 -m pip install --upgrade pip
19+
- id: pip-cache
20+
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
21+
- uses: actions/cache@v4
22+
with:
23+
path: ${{ steps.pip-cache.outputs.dir }}
24+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
25+
restore-keys: |
26+
${{ runner.os }}-pip-
27+
- run: |
28+
python3 -m pip install -r requirements.txt
29+
mkdocs build

.github/workflows/deploy.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: write
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
steps:
16+
- name: Clone repository
17+
uses: actions/checkout@v5
18+
19+
- name: Setup Python environment
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: "3.14"
23+
24+
- name: Upgrade pip
25+
run: python3 -m pip install --upgrade pip
26+
27+
- name: Get pip cache directory
28+
id: pip-cache
29+
run: echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
30+
31+
- name: Cache dependencies
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ steps.pip-cache.outputs.dir }}
35+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
36+
restore-keys: |
37+
${{ runner.os }}-pip-
38+
39+
- name: Install dependencies
40+
run: python3 -m pip install -r ./requirements.txt
41+
42+
- name: Build Docs
43+
run: mkdocs build
44+
45+
- name: Deploy
46+
uses: peaceiris/actions-gh-pages@v4
47+
if: github.ref == 'refs/heads/main'
48+
with:
49+
github_token: ${{ secrets.GITHUB_TOKEN }}
50+
publish_dir: ./site
51+
cname: dockwatch.wiki
52+
user_name: Notifiarr
53+
user_email: notifiarr+github-actions[bot]@users.noreply.github.com

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.venv

README.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# mkdocs-wiki
2+
3+
[Dockwatch wiki](https://dockwatch.wiki) source.
4+
5+
## Local Build
6+
7+
### macOS
8+
9+
```
10+
brew install python3
11+
python3 -m venv .venv
12+
source .venv/bin/activate
13+
python3 -m pip install -r requirements.txt
14+
mkdocs serve
15+
```
16+
17+
### Windows
18+
19+
```
20+
winget install Python.Python.3.14
21+
python3 -m venv .venv
22+
call venv\Scripts\activate
23+
python3 -m pip install -r requirements.txt
24+
mkdocs serve
25+
```
26+
27+
### Linux
28+
29+
```
30+
sudo apt install python3 || sudo yum install python3
31+
python3 -m venv .venv
32+
source .venv/bin/activate
33+
python3 -m pip install -r requirements.txt
34+
mkdocs serve
35+
```

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: Dockwatch Wiki
22
site_author: nitsua
33
site_description: Simple UI driven way to manage updates & notifications for Docker containers.
4-
site_url: http://rm-web-1:8005/en/latest/
4+
site_url: https://dockwatch.wiki
55
repo_name: dockwatch
66
repo_url: https://github.com/Notifiarr/dockwatch
77
repo_wiki_name: dockwatch-wiki
@@ -21,7 +21,7 @@ nav:
2121
- Notifications:
2222
- Notifiarr: pages/notifications/notifiarr.md
2323
- Telegram: pages/notifications/telegram.md
24-
- Settings:
24+
- Settings:
2525
- General: pages/settings/general.md
2626
- Logins: pages/settings/logins.md
2727
- Servers: pages/settings/servers.md

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
mkdocs~=1.6.0
2+
mkdocs-material~=9.6.0
3+
mkdocs-material-extensions~=1.3.0
4+
mkdocs-glightbox~=0.5.0

0 commit comments

Comments
 (0)