Skip to content

Commit a3a0b3e

Browse files
committed
port root config.js to .vitepress/config.js
1 parent ebdfb3b commit a3a0b3e

File tree

2 files changed

+11
-81
lines changed

2 files changed

+11
-81
lines changed

.vitepress/config.js

Lines changed: 11 additions & 6 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' },
@@ -22,19 +22,19 @@ const versions = {
2222
// This file contains overrides for .vitepress/config.js
2323
export default {
2424
extends: baseConfig,
25-
base: "/5.x/",
25+
base: "/5.next/",
2626
rewrites: {
2727
"en/:slug*": ":slug*",
2828
},
2929
sitemap: {
30-
hostname: "https://book.cakephp.org/5.x/",
30+
hostname: "https://book.cakephp.org/5.next/",
3131
},
3232
themeConfig: {
3333
socialLinks: [
3434
{ icon: "github", link: "https://github.com/cakephp/cakephp" },
3535
],
3636
editLink: {
37-
pattern: "https://github.com/cakephp/docs/edit/5.x/docs/:path",
37+
pattern: "https://github.com/cakephp/docs/edit/5.next/docs/:path",
3838
text: "Edit this page on GitHub",
3939
},
4040
sidebar: toc_en,
@@ -44,12 +44,17 @@ export default {
4444
{ text: "Documentation", link: "/" },
4545
{ ...versions },
4646
],
47+
versionBanner: {
48+
message: 'This is a development version of documentation for CakePHP 5.4.',
49+
link: '/latest/',
50+
linkText: 'Go to latest docs.'
51+
}
4752
},
4853
substitutions: {
4954
'|phpversion|': { value: '8.5', format: 'bold' },
5055
'|minphpversion|': { value: '8.2', format: 'italic' },
51-
'|cakeversion|': '5.3',
52-
'|cakefullversion|': 'CakePHP 5',
56+
'|cakeversion|': '5.4.0',
57+
'|cakefullversion|': 'CakePHP 5.next',
5358
},
5459
locales: {
5560
root: {

config.js

Lines changed: 0 additions & 75 deletions
This file was deleted.

0 commit comments

Comments
 (0)