提交 a463e615 编写于 作者: Miykael_xxm's avatar Miykael_xxm 🚴

add nav

上级 e98a2fc4
......@@ -15,4 +15,4 @@ pages:
- public
expire_in: 1 day
only:
- master
\ No newline at end of file
- pages
\ No newline at end of file
......@@ -90,14 +90,6 @@ module.exports = {
logo: '/images/icons/spring-logo.svg',
sidebarDepth: 3,
activeHeaderLinks: true,
// nav: [{
// text: '语言',
// ariaLabel: 'Language',
// items: [
// { text: '中文文档', link: '/' },
// { text: '英文原文', link: '/en/' }
// ]
// }],
locales: {
'/en/': {
// 多语言下拉菜单的标题
......@@ -109,62 +101,133 @@ module.exports = {
// 编辑链接文字
editLinkText: 'Edit this page on GitCode',
algolia: {},
// nav: [
// { text: 'English', link: '/en/' }
// ],
sidebar: [{
title: 'Spring Docs', // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
collapsable: false, // 可选的, 默认值是 true,
sidebarDepth: 1, // 可选的, 默认值是 1
children: [
'/en/'
]
nav: [
{
text: 'Spring',
link: '/en/'
},
{
title: 'INTRO',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/why-spring.md",
"/en/introducing-spring-boot.md",
"/en/quickstart.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Boot',
link: '/en/spring-boot/'
},
{
title: 'GUIDE',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/system-requirements.md",
"/en/installing.md",
"/en/initializr.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Framework',
link: '/en/spring-framework/'
},
{
title: 'IDE',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/vscode_java.md",
"/en/intellij_idea.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Data',
link: '/en/spring-data/'
},
{
title: 'DEMO',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/getting-started_first-application.md",
"/en/rest-service.md",
"/en/consuming-rest.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Cloud',
link: '/en/spring-cloud/'
},
{
text: 'More',
ariaLabel: 'Others',
items: [
{ text: 'Spring Cloud Data Flow', link: '/en/spring-cloud-data-flow/'},
{ text: 'Spring Security', link: '/en/spring-security/'},
{ text: 'Spring for GraphQL', link: '/en/spring-for-graphql/'},
{ text: 'Spring Session', link: '/en/spring-session/'},
{ text: 'Spring Integration', link: '/en/spring-integration/'},
{ text: 'Spring HATEOAS', link: '/en/spring-hateoas/'},
{ text: 'Spring REST Docs', link: '/en/spring-rest-docs/'},
{ text: 'Spring Batch', link: '/en/spring-batch/'},
{ text: 'Spring AMQP', link: '/en/spring-amqp/'},
{ text: 'Spring CredHub', link: '/en/spring-credhub/'},
{ text: 'Spring Flo', link: '/en/spring-flo/'},
{ text: 'Spring for Apache Kafka', link: '/en/spring-for-apache-kafka/'},
{ text: 'Spring LDAP', link: '/en/spring-ldap/'},
{ text: 'Spring Shell', link: '/en/spring-shell/'},
{ text: 'Spring Statemachine', link: '/en/spring-statemachine/'},
{ text: 'Spring Vault', link: '/en/spring-vault/'},
{ text: 'Spring Web Flow', link: '/en/spring-web-flow/'},
{ text: 'Spring Web Services', link: '/en/spring-web-services/'}
]
}
]
],
sidebar: {
'/en/spring-boot/': [
{
title: 'Spring Boot',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/spring-boot/legal.md",
"/en/spring-boot/getting-help.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/getting-started.md",
"/en/spring-boot/upgrading-spring-boot-applications.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
"/en/spring-boot/documentation-overview.md",
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}
],
// fallback
'/en/':
[{
title: 'Spring Doc', // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
collapsable: false, // 可选的, 默认值是 true,
sidebarDepth: 1, // 可选的, 默认值是 1
children: [
''
]
},
{
title: 'INTRO',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/why-spring.md",
"/en/introducing-spring-boot.md",
"/en/quickstart.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: 'GUIDE',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/system-requirements.md",
"/en/installing.md",
"/en/initializr.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: 'IDE',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/vscode_java.md",
"/en/intellij_idea.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: 'DEMO',
sidebarDepth: 2,
collapsable: false,
children: [
"/en/getting-started_first-application.md",
"/en/rest-service.md",
"/en/consuming-rest.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}
]
}
},
'/': {
selectText: '选择语言',
......@@ -174,62 +237,125 @@ module.exports = {
editLinkText: '在 GitCode 上编辑此页',
lastUpdated: '上次更新',
algolia: {},
// nav: [
// { text: '中文文档', link: '/', ariaLabel: '中文文档' }
// ],
sidebar: [{
title: 'Spring 文档', // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
collapsable: false, // 可选的, 默认值是 true,
sidebarDepth: 1, // 可选的, 默认值是 1
children: [
'/'
]
nav: [
{
text: 'Spring',
link: '/'
},
{
title: '介绍',
sidebarDepth: 2,
collapsable: false,
children: [
"why-spring.md",
"introducing-spring-boot.md",
"quickstart.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Boot',
link: '/spring-boot/'
},
{
title: '教程',
sidebarDepth: 2,
collapsable: false,
children: [
"system-requirements.md",
"installing.md",
"initializr.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Framework',
link: '/spring-framework/'
},
{
title: '编辑器',
sidebarDepth: 2,
collapsable: false,
children: [
"vscode_java.md",
"intellij_idea.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Data',
link: '/spring-data/'
},
{
title: '代码案例',
sidebarDepth: 2,
collapsable: false,
children: [
"getting-started_first-application.md",
"rest-service.md",
"consuming-rest.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
text: 'Spring Cloud',
link: '/spring-cloud/'
},
{
text: '更多文档',
ariaLabel: 'Others',
items: [
{ text: 'Spring Cloud Data Flow', link: '/spring-cloud-data-flow/'},
{ text: 'Spring Security', link: '/spring-security/'},
{ text: 'Spring for GraphQL', link: '/spring-for-graphql/'},
{ text: 'Spring Session', link: '/spring-session/'},
{ text: 'Spring Integration', link: '/spring-integration/'},
{ text: 'Spring HATEOAS', link: '/spring-hateoas/'},
{ text: 'Spring REST Docs', link: '/spring-rest-docs/'},
{ text: 'Spring Batch', link: '/spring-batch/'},
{ text: 'Spring AMQP', link: '/spring-amqp/'},
{ text: 'Spring CredHub', link: '/spring-credhub/'},
{ text: 'Spring Flo', link: '/spring-flo/'},
{ text: 'Spring for Apache Kafka', link: '/spring-for-apache-kafka/'},
{ text: 'Spring LDAP', link: '/spring-ldap/'},
{ text: 'Spring Shell', link: '/spring-shell/'},
{ text: 'Spring Statemachine', link: '/spring-statemachine/'},
{ text: 'Spring Vault', link: '/spring-vault/'},
{ text: 'Spring Web Flow', link: '/spring-web-flow/'},
{ text: 'Spring Web Services', link: '/spring-web-services/'}
]
}
]
],
sidebar: {
'/spring-boot/': [
{
title: '介绍',
sidebarDepth: 2,
collapsable: false,
children: [
"/spring-boot/getting-help.md",
"/spring-boot/build-tool-plugins.md",
"/spring-boot/getting-started.md",
"/spring-boot/upgrading.md",
"/spring-boot/documentation.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}
],
// fallback
'/':
[{
title: 'Spring 文档', // 必要的
// path: '/', // 可选的, 标题的跳转链接,应为绝对路径且必须存在
collapsable: false, // 可选的, 默认值是 true,
sidebarDepth: 1, // 可选的, 默认值是 1
children: [
''
]
},
{
title: '介绍',
sidebarDepth: 2,
collapsable: false,
children: [
"why-spring.md",
"introducing-spring-boot.md",
"quickstart.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: '教程',
sidebarDepth: 2,
collapsable: false,
children: [
"system-requirements.md",
"installing.md",
"initializr.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: '编辑器',
sidebarDepth: 2,
collapsable: false,
children: [
"vscode_java.md",
"intellij_idea.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
},
{
title: '代码案例',
sidebarDepth: 2,
collapsable: false,
children: [
"getting-started_first-application.md",
"rest-service.md",
"consuming-rest.md"
],
initialOpenGroupIndex: 0 // 可选的, 默认值是 0
}
]
}
}
}
}
......
# Spring Boot
\ No newline at end of file
# Spring Boot
\ No newline at end of file
# actuator
\ No newline at end of file
---
navbar: /
---
# 为什么是Spring?
Spring 让每个人都可以更快、更轻松、更安全地编写 Java。Spring 对速度、简单性和生产力的关注使其成为[世界上最受欢迎的](https://snyk.io/blog/jvm-ecosystem-report-2018-platform-application/)Java 框架。
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册