File tree Expand file tree Collapse file tree 6 files changed +15
-6
lines changed
Expand file tree Collapse file tree 6 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { path } from "@vuepress/utils";
44import theme from "./theme.js" ;
55
66export default defineUserConfig ( {
7- base : "/" ,
7+ base : "/apidoc-php/ " ,
88
99 lang : "zh-CN" ,
1010 title : "Apidoc" ,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import navbar from "./navbar.js";
44import sidebar from "./sidebar.js" ;
55
66export 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: {
Original file line number Diff line number Diff 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
1616features :
1717 - title : 开箱即用
Original file line number Diff line number Diff 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 ],
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments