From 8dad17a9405f38f8bb0aafbddd2a8120a6216887 Mon Sep 17 00:00:00 2001 From: sunqi Date: Tue, 20 Oct 2026 14:23:51 +0800 Subject: [PATCH 1/2] docs: point doc entry links to valid installation guides - README.md Docs badge -> English open-source installation guide - README_ZH.md Docs badge -> Chinese installation guide - pyproject.toml/AGENTS.md documentation URL -> main docs site - drop dead /home/overview/ links - add lychee-based docs link check workflow (PR + monthly cron), excluding shields.io/discord/npmjs/API endpoints to avoid false positives --- .github/workflows/docs-link-check.yml | 39 +++++++++++++++++++++++++++ AGENTS.md | 2 +- README.md | 2 +- README_ZH.md | 2 +- pyproject.toml | 2 +- 5 files changed, 43 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/docs-link-check.yml diff --git a/.github/workflows/docs-link-check.yml b/.github/workflows/docs-link-check.yml new file mode 100644 index 000000000..841074da5 --- /dev/null +++ b/.github/workflows/docs-link-check.yml @@ -0,0 +1,39 @@ +name: Docs link check + +on: + pull_request: + paths: + - README.md + - README_ZH.md + - pyproject.toml + - AGENTS.md + - .github/workflows/docs-link-check.yml + schedule: + # 每月 1 日 09:00(北京时间)例行巡检,及时发现文档站改版导致的失效链接 + - cron: '0 1 1 * *' + workflow_dispatch: + +permissions: + contents: read + +jobs: + link-check: + name: Check links in README and pyproject + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Run lychee + uses: lycheeverse/lychee-action@v2 + with: + # 动态徽章(shields.io)与 Discord 邀请链接会随外部服务波动,跳过以免误报; + # npmjs.com 对非浏览器请求返回 403(反爬),API 端点需鉴权,均为误报来源 + args: >- + --verbose + --no-progress + --accept 200..299 + --exclude 'img.shields.io' + --exclude 'discord.gg' + --exclude 'www.npmjs.com' + --exclude 'memos.memtensor.cn/api' + README.md README_ZH.md pyproject.toml AGENTS.md + fail: true diff --git a/AGENTS.md b/AGENTS.md index cd885b3c4..346c14d6b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -8,7 +8,7 @@ **MemOS / MemoryOS**: a memory operating system for LLM agents. Python library plus a FastAPI service, providing multiple memory types (textual / tree / preference / skill / KV cache / LoRA parametric) plus scheduling, version management, and vector & graph storage. - **Repository**: https://github.com/MemTensor/MemOS -- **Documentation**: https://memos-docs.openmem.net/home/overview/ +- **Documentation**: https://memos-docs.openmem.net/ - **PyPI**: https://pypi.org/project/MemoryOS/ - **License**: Apache-2.0 - **Top-level package**: `src/memos/`. Distribution name `MemoryOS`; import name `memos`. diff --git a/README.md b/README.md index 9c85150d0..1157cc197 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@

- Docs + Docs ArXiv X Discord diff --git a/README_ZH.md b/README_ZH.md index 25dc7775b..3113e6643 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -7,7 +7,7 @@

- Docs + Docs ArXiv X Discord diff --git a/pyproject.toml b/pyproject.toml index 314fce3d5..f97d83bab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -57,7 +57,7 @@ repository = "https://github.com/MemTensor/MemOS" download = "https://pypi.org/project/MemoryOS/#files" changelog = "https://github.com/MemTensor/MemOS/releases" releasenotes = "https://github.com/MemTensor/MemOS/releases" -documentation = "https://memos-docs.openmem.net/home/overview/" +documentation = "https://memos-docs.openmem.net/" issues = "https://github.com/MemTensor/MemOS/issues" [project.scripts] From d8a3e86078949be1849e06f029f932e1ca4487cd Mon Sep 17 00:00:00 2001 From: sunqi Date: Tue, 20 Oct 2026 14:52:04 +0800 Subject: [PATCH 2/2] ci: exclude x.com from docs link check (403 bot protection) --- .github/workflows/docs-link-check.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs-link-check.yml b/.github/workflows/docs-link-check.yml index 841074da5..2c412a944 100644 --- a/.github/workflows/docs-link-check.yml +++ b/.github/workflows/docs-link-check.yml @@ -26,7 +26,8 @@ jobs: uses: lycheeverse/lychee-action@v2 with: # 动态徽章(shields.io)与 Discord 邀请链接会随外部服务波动,跳过以免误报; - # npmjs.com 对非浏览器请求返回 403(反爬),API 端点需鉴权,均为误报来源 + # npmjs.com 与 x.com 对非浏览器/数据中心 IP 请求返回 403(反爬), + # API 端点需鉴权,均为误报来源 args: >- --verbose --no-progress @@ -34,6 +35,7 @@ jobs: --exclude 'img.shields.io' --exclude 'discord.gg' --exclude 'www.npmjs.com' + --exclude 'x.com' --exclude 'memos.memtensor.cn/api' README.md README_ZH.md pyproject.toml AGENTS.md fail: true