Skip to content

Commit ecaebe0

Browse files
committed
Add v2 version warning message
1 parent 4a9087c commit ecaebe0

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

docs/.vitepress/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default {
1919
text: 'v3 (alpha)',
2020
items: [
2121
{ text: 'v3 (alpha)', link: '/en/' },
22-
{ text: 'v2', link: '/v2/en/guide/' },
22+
{ text: 'v2', link: 'https://static-php.github.io/v2-docs/' },
2323
],
2424
},
2525
],
@@ -43,7 +43,7 @@ export default {
4343
text: 'v3 (alpha)',
4444
items: [
4545
{ text: 'v3 (alpha)', link: '/zh/' },
46-
{ text: 'v2', link: '/v2/zh/guide/' },
46+
{ text: 'v2', link: 'https://static-php.github.io/v2-docs/' },
4747
],
4848
},
4949
],

docs/en/guide/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Guide
22

3+
::: warning
4+
You are reading the documentation for StaticPHP v3. The v2 version will be deprecated after the stable release of v3.
5+
The 3.0 version is currently in the alpha stage, and you can view the v2 documentation [here](https://static-php.github.io/v2-docs/).
6+
:::
7+
38
## What is StaticPHP?
49

510
StaticPHP is a build tool that compiles the PHP interpreter together with any extensions you need into a single self-contained binary. The target system doesn't need PHP or any runtime libraries installed — just copy the binary and run it. Builds target Linux, macOS, and Windows.

docs/zh/guide/index.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# 构建指南
22

3+
::: warning
4+
你正在阅读 StaticPHP v3 版本的文档,v2 版本将在 v3 稳定发布后废弃。v3 版本目前仍处于 alpha 阶段,
5+
你可以在 [这里](https://static-php.github.io/v2-docs/) 查看 v2 文档。
6+
:::
7+
38
## StaticPHP 是什么
49

510
StaticPHP 是一个构建工具,能够将 PHP 解释器与你所需的扩展一起编译成一个独立的二进制文件,无需在目标系统上预先安装 PHP 或任何依赖库。

0 commit comments

Comments
 (0)