Skip to content

Commit bd483b2

Browse files
committed
update docurl
1 parent 1782169 commit bd483b2

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

src/.vuepress/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { path } from "@vuepress/utils";
44
import theme from "./theme.js";
55

66
export default defineUserConfig({
7-
base: "/",
7+
base: "/apidoc-php/",
88

99
lang: "zh-CN",
1010
title: "Apidoc",

src/.vuepress/theme.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import navbar from "./navbar.js";
44
import sidebar from "./sidebar.js";
55

66
export default hopeTheme({
7-
hostname: "https://docs.apidoc.icu",
7+
hostname: "https://hgthecode.github.io/apidoc-php/",
88

99
author: {
1010
name: "HG",
@@ -131,6 +131,15 @@ export default hopeTheme({
131131
components: ["Badge", "VPCard"],
132132
},
133133
slimsearch: true,
134+
notice: [
135+
{
136+
path: "/",
137+
title: "重要提示",
138+
showOnce:false,
139+
confirm:true,
140+
content: "原文档域名(apidoc.icu)即将于2026-01-01停止使用;请使用新的文档地址:<a href='https://hgthecode.github.io/apidoc-php/'>https://hgthecode.github.io/apidoc-php/</a>",
141+
},
142+
]
134143

135144
// 如果你需要 PWA。安装 @vuepress/plugin-pwa 并取消下方注释
136145
// pwa: {

src/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ actions:
1111
type: primary
1212

1313
- text: 演示 🏠
14-
link: http://demo-tp6.apidoc.icu/apidoc/
14+
link: https://github.com/HGthecode/apidoc-demos
1515

1616
features:
1717
- title: 开箱即用

src/config/fe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ window.apidocFeConfig = {
2424
HOSTS: [
2525
{
2626
title: "tp6",
27-
host: "http://tp6.apidoc.icu",
27+
host: "http://tp6.demo.com",
2828
},
2929
//...
3030
],

src/guide/install/thinkphp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ composer require hg/apidoc
5151
::: warning 404 问题
5252
如果使用 `php think run` 命令行启动项目,apidoc 可能会出现 404 错误,这是因为命令行启动的项目并未对 apidoc 接口进行伪静态处理,解决方案:
5353

54-
1、前端配置 host
54+
1、前端配置 host,使用 `php think run`运行时
5555

5656
```php
5757
// public/apidoc/config.js

src/use/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ headerDepth: 2
1111
- 如果您使用的是 php8 以上版本,建议使用 PHP8 原生注解方式书写注解。
1212
- 如果你使用小于 PHP8 版本,并使用 PHPStorm 的话,建议安装[Annotations 插件](https://plugins.jetbrains.com/plugin/7320-php-annotations),可以支持注解的语法提示及自动完成
1313

14-
- 配合查看[演示项目](https://demo-tp6.apidoc.icu/apidoc/)[演示源码](https://github.com/HGthecode/apidoc-demos)[基于 Webman 的 PHP8 原生注解示例源码](https://github.com/HGthecode/apidoc-demos/tree/webman)上手更快哦!
14+
- 配合查看[演示项目](https://github.com/HGthecode/apidoc-demos)[基于 Webman 的 PHP8 原生注解示例源码](https://github.com/HGthecode/apidoc-demos/tree/webman)上手更快哦!
1515

1616
## 书写规范
1717

0 commit comments

Comments
 (0)