Skip to content

Commit 6fe9b3e

Browse files
committed
re-organize plugins to navbar
1 parent ea55ea9 commit 6fe9b3e

2 files changed

Lines changed: 28 additions & 21 deletions

File tree

.vitepress/config.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,31 @@ const versions = {
1919
],
2020
};
2121

22+
const plugins = {
23+
text: "Plugins",
24+
items: [
25+
{
26+
text: "Core Plugins",
27+
items: [
28+
{ text: "Authentication", link: "https://book.cakephp.org/authentication/", target: "_self" },
29+
{ text: "Authorization", link: "https://book.cakephp.org/authorization/", target: "_self" },
30+
{ text: "Bake", link: "https://book.cakephp.org/bake/", target: "_self" },
31+
{ text: "Chronos", link: "https://book.cakephp.org/chronos/", target: "_self" },
32+
{ text: "Debug Kit", link: "https://book.cakephp.org/debugkit/", target: "_self" },
33+
{ text: "Elasticsearch", link: "https://book.cakephp.org/elasticsearch/", target: "_self" },
34+
{ text: "Migrations", link: "https://book.cakephp.org/migrations/", target: "_self" },
35+
{ text: "Phinx", link: "https://book.cakephp.org/phinx/", target: "_self" },
36+
],
37+
},
38+
{
39+
text: "Community",
40+
items: [
41+
{ text: "Community Plugins", link: "https://plugins.cakephp.org/", target: "_self" },
42+
],
43+
},
44+
],
45+
};
46+
2247
const substitutions = {
2348
'|phpversion|': { value: '8.5', format: 'bold' },
2449
'|minphpversion|': { value: '8.2', format: 'italic' },
@@ -53,7 +78,7 @@ export default {
5378
nav: [
5479
{ text: "Guide", link: "/intro" },
5580
{ text: "API", link: "https://api.cakephp.org/" },
56-
{ text: "Documentation", link: "/" },
81+
{ ...plugins },
5782
{ ...versions },
5883
],
5984
},
@@ -70,6 +95,7 @@ export default {
7095
{ text: "ガイド", link: "/ja/intro" },
7196
{ text: "API", link: "https://api.cakephp.org/" },
7297
{ text: "ドキュメント", link: "/ja/" },
98+
{ ...plugins },
7399
{ ...versions },
74100
],
75101
sidebar: toc_ja,

.vitepress/toc_en.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -306,31 +306,12 @@
306306
"text": "Dependency Injection",
307307
"link": "/development/dependency-injection"
308308
},
309+
{ "text": "plugins", "link": "/plugins" },
309310
{ "text": "Errors", "link": "/development/errors" },
310311
{ "text": "REST", "link": "/development/rest" },
311312
{ "text": "Testing", "link": "/development/testing" }
312313
]
313314
},
314-
{
315-
"text": "Plugins",
316-
"collapsed": true,
317-
"items": [
318-
{ "text": "Creating Plugins", "link": "/plugins" },
319-
{
320-
"text": "Core Plugins",
321-
"items": [
322-
{ "text": "Authentication", "link": "https://book.cakephp.org/authentication/" },
323-
{ "text": "Authorization", "link": "https://book.cakephp.org/authorization/" },
324-
{ "text": "Bake", "link": "https://book.cakephp.org/bake/" },
325-
{ "text": "Chronos", "link": "https://book.cakephp.org/chronos/" },
326-
{ "text": "Debug Kit", "link": "https://book.cakephp.org/debugkit/" },
327-
{ "text": "Elasticsearch", "link": "https://book.cakephp.org/elasticsearch/" },
328-
{ "text": "Migrations", "link": "https://book.cakephp.org/migrations/" },
329-
{ "text": "Phinx", "link": "https://book.cakephp.org/phinx/" }
330-
]
331-
}
332-
]
333-
},
334315
{
335316
"text": "Security",
336317
"collapsed": true,

0 commit comments

Comments
 (0)