Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,16 @@ jobs:
# Direct upload rather than the Pages Git integration: the token below is
# scoped to Pages alone, and the build that ships is the one this workflow
# produced.
- run: npx wrangler@4 pages deploy dist --project-name monitor-document --branch main
# Publishing is a separate concern from the repository being sound. Without the two
# credentials this step failed the whole run on every push to main; now it says why it
# skipped and lets the build that already succeeded stand.
- name: Publish to Cloudflare Pages
run: |
if [ -z "${CLOUDFLARE_API_TOKEN}" ] || [ -z "${CLOUDFLARE_ACCOUNT_ID}" ]; then
echo "CLOUDFLARE_API_TOKEN / CLOUDFLARE_ACCOUNT_ID 未配置,跳过发布(构建已完成)"
exit 0
fi
npx wrangler@4 pages deploy dist --project-name monitor-document --branch main
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
2 changes: 1 addition & 1 deletion src/content/ai.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ hub、配好反代、接入第一个节点。也可以把 [`llms.txt`](/llms.txt

### 第二步:装 hub
curl -fsSL -o install-hub.sh \
https://github.com/monitor-probe/monitor/releases/latest/download/install-hub.sh
https://raw.githubusercontent.com/spot-probe/monitor/main/install-hub.sh
chmod +x install-hub.sh
sudo ./install-hub.sh < /dev/null
< /dev/null 让脚本不显示菜单,直接按默认值安装;端口换过的,加 --port <端口>。
Expand Down
6 changes: 3 additions & 3 deletions src/content/dev/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

| 仓库 | 内容 |
|---|---|
| [monitor](https://github.com/monitor-probe/monitor) | hub + 内置后台 + `install.sh` |
| [agent](https://github.com/monitor-probe/agent) | Linux agent,发布自己的 musl 二进制 |
| [monitor-theme-default](https://github.com/monitor-probe/monitor-theme-default) | 默认公开页主题。**发布构建产物**,hub 按 sha256 钉住并嵌入 |
| [monitor](https://github.com/spot-probe/monitor) | hub + 内置后台 + `install.sh` |
| [agent](https://github.com/spot-probe/agent) | Linux agent,发布自己的 musl 二进制 |
| [monitor-theme-default](https://github.com/spot-probe/monitor-theme-default) | 默认公开页主题。**发布构建产物**,hub 按 sha256 钉住并嵌入 |

agent 单独一个仓库,因为它装在别的机器上,发布节奏也不同;默认主题单独一个仓库,让主题有独立的接口约定、
版本和开发流程。
Expand Down
2 changes: 1 addition & 1 deletion src/content/dev/theme.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,6 @@ agent 只有 Linux 版。在 macOS 上开发时节点会一直显示离线,要

## 参考实现

[monitor-theme-default](https://github.com/monitor-probe/monitor-theme-default),React + Vite +
[monitor-theme-default](https://github.com/spot-probe/monitor-theme-default),React + Vite +
shadcn/ui,黑白配色。它既是内置默认主题,也是第三方主题的范本:hub 嵌入的和装进 `themes/` 的是同一个
`theme.tar.gz`。
2 changes: 1 addition & 1 deletion src/content/install/docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ docker run -d --name monitor --restart unless-stopped \
stqfdyr/monitor
```

镜像同时发布在 Docker Hub(`stqfdyr/monitor`)和 GHCR(`ghcr.io/monitor-probe/monitor`),内容相同,
镜像发布在 GHCR(`ghcr.io/spot-probe/monitor`),
支持 x86_64 与 aarch64。

- `127.0.0.1:28080`:端口只对本机开放,域名由[反向代理](/install/reverse-proxy)接进来,上游写 `127.0.0.1:28080`
Expand Down
2 changes: 1 addition & 1 deletion src/content/install/hub.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ v1.2.0 及更早的脚本(当时从 `raw.githubusercontent.com` 下载)没

## 不用脚本

二进制在 [release](https://github.com/monitor-probe/monitor/releases) 页面,文件名是
二进制在 [release](https://github.com/spot-probe/monitor/releases) 页面,文件名是
`monitor-hub-<arch>-unknown-linux-musl`,静态链接,不需要配置文件:

```bash
Expand Down
2 changes: 1 addition & 1 deletion src/content/install/quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

```bash
curl -fsSL -o install-hub.sh \
https://github.com/monitor-probe/monitor/releases/latest/download/install-hub.sh
https://raw.githubusercontent.com/spot-probe/monitor/main/install-hub.sh
chmod +x install-hub.sh
sudo ./install-hub.sh
```
Expand Down
2 changes: 1 addition & 1 deletion src/hero-install.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```bash
curl -fsSL https://github.com/monitor-probe/monitor/releases/latest/download/install-hub.sh -o install-hub.sh
curl -fsSL https://raw.githubusercontent.com/spot-probe/monitor/main/install-hub.sh -o install-hub.sh
chmod +x install-hub.sh
sudo ./install-hub.sh
```
8 changes: 4 additions & 4 deletions src/site.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export const REPO = "https://github.com/monitor-probe/monitor"
export const REPO_AGENT = "https://github.com/monitor-probe/agent"
export const REPO_THEME = "https://github.com/monitor-probe/monitor-theme-default"
export const REPO_DOC = "https://github.com/monitor-probe/monitor-document"
export const REPO = "https://github.com/spot-probe/monitor"
export const REPO_AGENT = "https://github.com/spot-probe/agent"
export const REPO_THEME = "https://github.com/spot-probe/monitor-theme-default"
export const REPO_DOC = "https://github.com/spot-probe/monitor-document"
export const SITE = "https://monitor-document.pages.dev"
Loading