Skip to content

Commit 3fee6dd

Browse files
authored
re-organize plugins to navbar (#8269)
* re-organize plugins to navbar * Also adjust JA toc
1 parent ea55ea9 commit 3fee6dd

File tree

3 files changed

+29
-39
lines changed

3 files changed

+29
-39
lines changed

.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,

.vitepress/toc_ja.json

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -394,29 +394,12 @@
394394
"text": "依存性注入",
395395
"link": "/ja/development/dependency-injection"
396396
},
397+
{ "text": "プラグイン", "link": "/ja/plugins" },
397398
{ "text": "エラー", "link": "/ja/development/errors" },
398399
{ "text": "REST", "link": "/ja/development/rest" },
399400
{ "text": "テスト", "link": "/ja/development/testing" }
400401
]
401402
},
402-
{
403-
"text": "プラグイン",
404-
"collapsed": true,
405-
"items": [
406-
{ "text": "プラグインの作成", "link": "/ja/plugins" },
407-
{
408-
"text": "コアプラグイン",
409-
"items": [
410-
{ "text": "Bake", "link": "https://book.cakephp.org/bake/2/en/index.html" },
411-
{ "text": "Chronos", "link": "https://book.cakephp.org/chronos/" },
412-
{ "text": "Debug Kit", "link": "https://book.cakephp.org/debugkit/" },
413-
{ "text": "Elasticsearch", "link": "https://book.cakephp.org/elasticsearch/" },
414-
{ "text": "マイグレーション", "link": "https://book.cakephp.org/migrations/" },
415-
{ "text": "Phinx", "link": "https://book.cakephp.org/phinx/" }
416-
]
417-
}
418-
]
419-
},
420403
{
421404
"text": "セキュリティ",
422405
"collapsed": true,

0 commit comments

Comments
 (0)