Skip to content

Commit b9b8e1e

Browse files
committed
fix 5.next deploy
1 parent 67d95db commit b9b8e1e

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

.github/workflows/deploy_5.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
name: 'deploy_5'
2+
name: 'deploy_5next'
33

44
on:
55
push:
66
branches:
7-
- 5.x
7+
- 5.next
88
workflow_dispatch:
99

1010
concurrency:
@@ -22,7 +22,7 @@ jobs:
2222
- name: Push to dokku
2323
uses: dokku/github-action@master
2424
with:
25-
branch: '5.x'
26-
git_remote_url: 'ssh://dokku@apps.cakephp.org:22/newbook-5'
25+
branch: '5.next'
26+
git_remote_url: 'ssh://dokku@apps.cakephp.org:22/newbook-5next'
2727
git_push_flags: '-f'
2828
ssh_private_key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}

.vitepress/config.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const toc_en = require("./toc_en.json");
66
const toc_ja = require("./toc_ja.json");
77

88
const versions = {
9-
text: "5.x",
9+
text: "5.next",
1010
items: [
1111
{ text: "5.x (latest)", link: "https://book.cakephp.org/5.x/", target: '_self' },
1212
{ text: "4.x", link: "https://book.cakephp.org/4.x/", target: '_self' },
@@ -60,19 +60,19 @@ export default {
6060
md.use(substitutionsReplacer, { substitutions });
6161
}
6262
},
63-
base: "/5.x/",
63+
base: "/5.next/",
6464
rewrites: {
6565
"en/:slug*": ":slug*",
6666
},
6767
sitemap: {
68-
hostname: "https://book.cakephp.org/5.x/",
68+
hostname: "https://book.cakephp.org/5.next/",
6969
},
7070
themeConfig: {
7171
socialLinks: [
7272
{ icon: "github", link: "https://github.com/cakephp/cakephp" },
7373
],
7474
editLink: {
75-
pattern: "https://github.com/cakephp/docs/edit/5.x/docs/:path",
75+
pattern: "https://github.com/cakephp/docs/edit/5.next/docs/:path",
7676
text: "Edit this page on GitHub",
7777
},
7878
sidebar: toc_en,
@@ -81,7 +81,12 @@ export default {
8181
{ text: "API", link: "https://api.cakephp.org/" },
8282
{ ...plugins },
8383
{ ...versions },
84-
]
84+
],
85+
versionBanner: {
86+
message: 'This is documentation for CakePHP 5.next',
87+
link: '/latest/',
88+
linkText: 'Go to latest docs.'
89+
}
8590
},
8691
locales: {
8792
root: {

0 commit comments

Comments
 (0)