config.js 41.7 KB
Newer Older
Miykael_xxm's avatar
Miykael_xxm 已提交
1
// .vuepress/config.js
璃白.'s avatar
璃白. 已提交
2
const path = require('path');
Miykael_xxm's avatar
seo  
Miykael_xxm 已提交
3 4 5 6 7 8 9
const autometa_options = {
    site: {
        name: 'Spring 中文文档社区'
    },
    canonical_base: 'https://dev-cloud.gitcode.host/spring/',
};

Miykael_xxm's avatar
Miykael_xxm 已提交
10 11
module.exports = {
    title: "Spring 中文文档社区",
Miykael_xxm's avatar
Miykael_xxm 已提交
12
    base: "/spring/",
Miykael_xxm's avatar
Miykael_xxm 已提交
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
    head: [
        [
            'link',
            {
                rel: 'icon',
                type: 'image/png',
                sizes: '16x16',
                href: `/images/icons/favicon.ico`,
            },
        ],
        [
            'link',
            {
                rel: 'icon',
                type: 'image/png',
                sizes: '48x48',
                href: `/images/icons/icon-48x48.png`,
            },
        ],
        [
            'link',
            {
                rel: 'icon',
                type: 'image/png',
                sizes: '72x72',
                href: `/images/icons/icon-72x72.png`,
            },
        ],
        ['link', { rel: 'manifest', href: '/manifest.webmanifest' }],
        ['meta', { name: 'application-name', content: 'Spring 中文文档社区' }],
        ['meta', { name: 'apple-mobile-web-app-title', content: 'Spring 中文社区' }],
        [
            'meta',
            { name: 'apple-mobile-web-app-status-bar-style', content: 'black' },
        ],
        [
            'link',
            { rel: 'apple-touch-icon', href: `/images/icons/icon_48x48.png` },
        ],
        [
            'link',
            {
                rel: 'mask-icon',
                href: '/images/icons/favicon.ico',
Miykael_xxm's avatar
seo  
Miykael_xxm 已提交
57
                color: '#5dac38',
Miykael_xxm's avatar
Miykael_xxm 已提交
58 59
            },
        ],
Miykael_xxm's avatar
seo  
Miykael_xxm 已提交
60 61 62 63
        ['meta', { name: 'msapplication-TileColor', content: '#5dac38' }],
        ['meta', { name: 'theme-color', content: '#5dac38' }],
        ['meta', { name: 'viewport', content: 'width=device-width, initial-scale=1' }],
        ['meta', { 'http-equiv': 'X-UA-Compatible', 'content': 'IE=edge' }]
Miykael_xxm's avatar
Miykael_xxm 已提交
64
    ],
Miykael_xxm's avatar
Miykael_xxm 已提交
65
    locales: {
李少辉-开发者's avatar
李少辉-开发者 已提交
66 67 68 69 70
        // '/en/': {
        //     lang: 'en-US',
        //     title: 'Spring Docs',
        //     description: ''
        // },
Miykael_xxm's avatar
Miykael_xxm 已提交
71 72
        '/': {
            lang: 'zh-CN',
Miykael_xxm's avatar
Miykael_xxm 已提交
73
            title: '中文文档',
Miykael_xxm's avatar
Miykael_xxm 已提交
74 75 76
            description: ''
        }
    },
Miykael_xxm's avatar
seo  
Miykael_xxm 已提交
77
    plugins: [
Miykael_xxm's avatar
Miykael_xxm 已提交
78
        ['autometa', autometa_options]
Miykael_xxm's avatar
seo  
Miykael_xxm 已提交
79
    ],
茶陵後's avatar
茶陵後 已提交
80
    theme: path.resolve(__dirname, './themes/theme-gitcode/index.js'),
Miykael_xxm's avatar
Miykael_xxm 已提交
81 82 83
    themeConfig: {
        repo: "https://gitcode.net/dev-cloud/spring",
        repoLabel: "GitCode",
Miykael_xxm's avatar
Miykael_xxm 已提交
84 85 86
        docsRepo: "https://gitcode.net/dev-cloud/spring/",
        docsDir: 'docs',
        docsBranch: 'master',
Miykael_xxm's avatar
Miykael_xxm 已提交
87 88 89
        editLinks: true,
        editLinkText: "帮助我们改善此页面!",
        lastUpdated: "Last Updated",
Miykael_xxm's avatar
Miykael_xxm 已提交
90
        logo: '/images/icons/spring-logo.svg',
Miykael_xxm's avatar
Miykael_xxm 已提交
91 92 93
        sidebarDepth: 3,
        activeHeaderLinks: true,
        locales: {
李少辉-开发者's avatar
李少辉-开发者 已提交
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268
            // '/en/': {
            //     // 多语言下拉菜单的标题
            //     selectText: 'Language',
            //     // 该语言在下拉菜单中的标签
            //     label: 'English',
            //     lastUpdated: 'Last Updated',
            //     lang: 'en-US',
            //     // 编辑链接文字
            //     editLinkText: 'Edit this page on GitCode',
            //     algolia: {},
            //     nav: [
            //         {
            //             text: 'Spring',
            //             link: '/en/'
            //         },
            //         {
            //             text: 'Spring Boot',
            //             link: '/en/spring-boot/'
            //         },
            //         {
            //             text: 'Spring Framework',
            //             link: '/en/spring-framework/'
            //         },
            //         {
            //             text: 'Spring Data',
            //             link: '/en/spring-data/'
            //         },
            //         {
            //             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.md",
            //                     "/en/spring-boot/getting-started.md",
            //                     "/en/spring-boot/upgrading.md",
            //                     "/en/spring-boot/using.md",
            //                     "/en/spring-boot/features.md",
            //                     "/en/spring-boot/web.md",
            //                     "/en/spring-boot/data.md",
            //                     "/en/spring-boot/io.md",
            //                     "/en/spring-boot/messaging.md",
            //                     "/en/spring-boot/container-images.md",
            //                     "/en/spring-boot/actuator.md",
            //                     "/en/spring-boot/deployment.md",
            //                     "/en/spring-boot/cli.md",
            //                     "/en/spring-boot/build-tool-plugins.md",
            //                     "/en/spring-boot/howto.md"
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
            //         '/en/spring-framework/': [
            //             {
            //                 title: 'Spring Framework',
            //                 sidebarDepth: 2,
            //                 collapsable: false,
            //                 children: [
            //                     "/en/spring-framework/overview.md",
            //                     "/en/spring-framework/core.md",
            //                     "/en/spring-framework/testing.md",
            //                     "/en/spring-framework/data-access.md",
            //                     "/en/spring-framework/web-servlet.md",
            //                     "/en/spring-framework/web-reactive.md",
            //                     "/en/spring-framework/integration.md",
            //                     "/en/spring-framework/languages.md"
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
            //         '/en/spring-data/': [
            //             {
            //                 title: 'Spring Data',
            //                 sidebarDepth: 2,
            //                 collapsable: false,
            //                 children: [
            //                     "/en/spring-data/spring-data.md"
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
            //         '/en/spring-cloud/': [
            //             {
            //                 title: 'Spring Cloud',
            //                 sidebarDepth: 2,
            //                 collapsable: false,
            //                 children: [
            //                     "/en/spring-cloud/legal.md",
            //                     "/en/spring-cloud/documentation-overview.md",
            //                     "/en/spring-cloud/spring-cloud-build.md",
            //                     "/en/spring-cloud/spring-cloud-bus.md",
            //                     "/en/spring-cloud/spring-cloud-circuitbreaker.md",
            //                     "/en/spring-cloud/spring-cloud-cli.md",
            //                     "/en/spring-cloud/spring-cloud-cloudfoundry.md",
            //                     "/en/spring-cloud/spring-cloud-commons.md",
            //                     "/en/spring-cloud/spring-cloud-config.md",
            //                     "/en/spring-cloud/spring-cloud-consul.md",
            //                     "/en/spring-cloud/spring-cloud-contract.md",
            //                     "/en/spring-cloud/spring-cloud-function.md",
            //                     "/en/spring-cloud/spring-cloud-gateway.md",
            //                     "/en/spring-cloud/spring-cloud-kubernetes.md",
            //                     "/en/spring-cloud/spring-cloud-netflix.md",
            //                     "/en/spring-cloud/spring-cloud-openfeign.md",
            //                     "/en/spring-cloud/spring-cloud-sleuth.md",
            //                     "/en/spring-cloud/spring-cloud-stream.md",
            //                     "/en/spring-cloud/spring-cloud-task.md",
            //                     "/en/spring-cloud/spring-cloud-vault.md",
            //                     "/en/spring-cloud/spring-cloud-zookeeper.md",
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
            //         '/en/spring-cloud-data-flow/': [
            //             {
            //                 title: 'Spring Cloud Data Flow',
            //                 sidebarDepth: 2,
            //                 collapsable: false,
            //                 children: [
            //                     "/en/spring-cloud-data-flow/spring-cloud-dataflow.md",
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
            //         '/en/spring-security/': [
            //             {
            //                 title: 'Spring Security',
            //                 sidebarDepth: 2,
            //                 collapsable: false,
            //                 children: [
            //                     "/en/spring-security/index.md",
            //                     "/en/spring-security/prerequisites.md",
            //                     "/en/spring-security/community.md",
            //                     "/en/spring-security/whats-new.md",
            //                     "/en/spring-security/getting-spring-security.md",
            //                     "/en/spring-security/features.md",
            //                     "/en/spring-security/modules.md",
            //                     "/en/spring-security/samples.md",
            //                     "/en/spring-security/servlet.md",
            //                     "/en/spring-security/reactive.md"
            //                 ],
            //                 initialOpenGroupIndex: 0 // 可选的, 默认值是 0
            //             }
            //         ],
茶陵後's avatar
茶陵後 已提交
269

李少辉-开发者's avatar
李少辉-开发者 已提交
270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
            //         // 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
            //             }
            //         ]
            //     }
            // },
Miykael_xxm's avatar
Miykael_xxm 已提交
327 328 329 330 331 332
            '/': {
                selectText: '选择语言',
                label: '简体中文',
                ariaLabel: '语言',
                lang: 'zh-CN',
                editLinkText: '在 GitCode 上编辑此页',
Miykael_xxm's avatar
Miykael_xxm 已提交
333
                lastUpdated: '上次更新',
Miykael_xxm's avatar
Miykael_xxm 已提交
334
                algolia: {},
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
335 336 337 338
                nav: [
                    {
                        text: 'Spring',
                        link: '/'
Miykael_xxm's avatar
Miykael_xxm 已提交
339 340
                    },
                    {
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
341 342
                        text: 'Spring Boot',
                        link: '/spring-boot/'
Miykael_xxm's avatar
Miykael_xxm 已提交
343 344
                    },
                    {
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
345 346
                        text: 'Spring Framework',
                        link: '/spring-framework/'
Miykael_xxm's avatar
Miykael_xxm 已提交
347 348
                    },
                    {
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
349 350
                        text: 'Spring Data',
                        link: '/spring-data/'
Miykael_xxm's avatar
Miykael_xxm 已提交
351 352
                    },
                    {
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
353 354 355 356 357 358 359
                        text: 'Spring Cloud',
                        link: '/spring-cloud/'
                    },
                    {
                        text: '更多文档',
                        ariaLabel: 'Others',
                        items: [
茶陵後's avatar
茶陵後 已提交
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377
                            { 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/' }
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
378
                        ]
Miykael_xxm's avatar
Miykael_xxm 已提交
379
                    }
茶陵後's avatar
茶陵後 已提交
380
                ],
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
381 382 383
                sidebar: {
                    '/spring-boot/': [
                        {
Miykael_xxm's avatar
Miykael_xxm 已提交
384
                            title: 'Spring Boot 文档',
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
385 386 387
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
Miykael_xxm's avatar
Miykael_xxm 已提交
388 389 390 391 392 393 394 395
                                "/spring-boot/legal.md",
                                "/spring-boot/getting-help.md",
                                "/spring-boot/documentation.md",
                                "/spring-boot/getting-started.md",
                                "/spring-boot/upgrading.md",
                                "/spring-boot/using.md",
                                "/spring-boot/features.md",
                                "/spring-boot/web.md",
Miykael_xxm's avatar
Miykael_xxm 已提交
396
                                "/spring-boot/data.md",
Miykael_xxm's avatar
Miykael_xxm 已提交
397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
                                "/spring-boot/io.md",
                                "/spring-boot/messaging.md",
                                "/spring-boot/container-images.md",
                                "/spring-boot/actuator.md",
                                "/spring-boot/deployment.md",
                                "/spring-boot/cli.md",
                                "/spring-boot/build-tool-plugins.md",
                                "/spring-boot/howto.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
                    '/spring-framework/': [
                        {
                            title: 'Spring Framework 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-framework/overview.md",
                                "/spring-framework/core.md",
                                "/spring-framework/testing.md",
                                "/spring-framework/data-access.md",
                                "/spring-framework/web-servlet.md",
                                "/spring-framework/web-reactive.md",
                                "/spring-framework/integration.md",
                                "/spring-framework/languages.md"
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
423 424 425 426
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
茶陵後's avatar
茶陵後 已提交
427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468
                    '/spring-data/': [
                        {
                            title: 'Spring Data 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-data/spring-data.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
                    '/spring-cloud/': [
                        {
                            title: 'Spring Cloud 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-cloud/legal.md",
                                "/spring-cloud/documentation-overview.md",
                                "/spring-cloud/spring-cloud-build.md",
                                "/spring-cloud/spring-cloud-bus.md",
                                "/spring-cloud/spring-cloud-circuitbreaker.md",
                                "/spring-cloud/spring-cloud-cli.md",
                                "/spring-cloud/spring-cloud-cloudfoundry.md",
                                "/spring-cloud/spring-cloud-commons.md",
                                "/spring-cloud/spring-cloud-config.md",
                                "/spring-cloud/spring-cloud-consul.md",
                                "/spring-cloud/spring-cloud-contract.md",
                                "/spring-cloud/spring-cloud-function.md",
                                "/spring-cloud/spring-cloud-gateway.md",
                                "/spring-cloud/spring-cloud-kubernetes.md",
                                "/spring-cloud/spring-cloud-netflix.md",
                                "/spring-cloud/spring-cloud-openfeign.md",
                                "/spring-cloud/spring-cloud-sleuth.md",
                                "/spring-cloud/spring-cloud-stream.md",
                                "/spring-cloud/spring-cloud-task.md",
                                "/spring-cloud/spring-cloud-vault.md",
                                "/spring-cloud/spring-cloud-zookeeper.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
469 470
                    '/spring-cloud-data-flow/': [
                        {
471
                            title: 'Spring Cloud Data Flow 文档',
472 473 474 475 476 477 478 479
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-cloud-data-flow/spring-cloud-dataflow.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
李少辉-开发者's avatar
李少辉-开发者 已提交
480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499
                    // '/spring-security/': [
                    //     {
                    //         title: 'Spring 安全',
                    //         sidebarDepth: 2,
                    //         collapsable: false,
                    //         children: [
                    //             "/spring-security/overview.md",
                    //             "/spring-security/prerequisites.md",
                    //             "/spring-security/community.md",
                    //             "/spring-security/whats-new.md",
                    //             "/spring-security/getting-spring-security.md",
                    //             "/spring-security/features.md",
                    //             "/spring-security/modules.md",
                    //             "/spring-security/samples.md",
                    //             "/spring-security/servlet.md",
                    //             "/spring-security/reactive.md"
                    //         ],
                    //         initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                    //     }
                    // ],
500 501 502

                    '/spring-for-graphql/': [
                        {
503
                            title: 'Spring For Graphql 文档',
504 505 506 507 508 509 510 511
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-for-graphql/spring-graphql.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
茶陵後's avatar
茶陵後 已提交
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613
                    '/spring-session/': [
                        {
                            title: 'Spring Session 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-session/_index.md",
                                "/spring-session/whats-new.md",
                                "/spring-session/samples.md",
                                "/spring-session/bootSamples/HttpSession/mongo.md",
                                "/spring-session/bootSamples/HttpSession/jdbc.md",
                                "/spring-session/bootSamples/HttpSession/Redis/boot-redis.md",
                                "/spring-session/bootSamples/boot-findbyusername.md",
                                "/spring-session/bootSamples/boot-websocket.md",
                                "/spring-session/webFlux/boot-webflux-custom-cookie.md",
                                "/spring-session/modules.md",
                                "/spring-session/http-session.md",
                                "/spring-session/web-socket.md",
                                "/spring-session/web-session.md",
                                "/spring-session/spring-security.md",
                                "/spring-session/api.md",
                                "/spring-session/upgrading.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
                    '/spring-session/sample/': [
                        {
                            title: 'Spring Session 文档3',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-session/sample/samples.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
                    '/spring-integration/': [
                        {
                            title: 'Spring Integration 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-integration/preface.md",
                                "/spring-integration/whats-new.md",
                                "/spring-integration/overview.md",
                                "/spring-integration/core.md",
                                "/spring-integration/message.md",
                                "/spring-integration/message-routing.md",
                                "/spring-integration/message-transformation.md",
                                "/spring-integration/messaging-endpoints.md",
                                "/spring-integration/dsl.md",
                                "/spring-integration/kotlin-dsl.md",
                                "/spring-integration/system-management.md",
                                "/spring-integration/reactive-streams.md",
                                "/spring-integration/endpoint-summary.md",
                                "/spring-integration/amqp.md",
                                "/spring-integration/event.md",
                                "/spring-integration/feed.md",
                                "/spring-integration/file.md",
                                "/spring-integration/ftp.md",
                                "/spring-integration/gemfire.md",
                                "/spring-integration/http.md",
                                "/spring-integration/jdbc.md",
                                "/spring-integration/jpa.md",
                                "/spring-integration/jms.md",
                                "/spring-integration/jmx.md",
                                "/spring-integration/kafka.md",
                                "/spring-integration/mail.md",
                                "/spring-integration/mongodb.md",
                                "/spring-integration/mqtt.md",
                                "/spring-integration/r2dbc.md",
                                "/spring-integration/redis.md",
                                "/spring-integration/resource.md",
                                "/spring-integration/rmi.md",
                                "/spring-integration/rsocket.md",
                                "/spring-integration/sftp.md",
                                "/spring-integration/stomp.md",
                                "/spring-integration/stream.md",
                                "/spring-integration/syslog.md",
                                "/spring-integration/ip.md",
                                "/spring-integration/webflux.md",
                                "/spring-integration/web-sockets.md",
                                "/spring-integration/ws.md",
                                "/spring-integration/xml.md",
                                "/spring-integration/xmpp.md",
                                "/spring-integration/zeromq.md",
                                "/spring-integration/zookeeper.md",
                                "/spring-integration/error-handling.md",
                                "/spring-integration/spel.md",
                                "/spring-integration/message-publishing.md",
                                "/spring-integration/transactions.md",
                                "/spring-integration/security.md",
                                "/spring-integration/configuration.md",
                                "/spring-integration/testing.md",
                                "/spring-integration/samples.md",
                                "/spring-integration/resources.md",
                                "/spring-integration/history.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
614 615
                    '/spring-hateoas/': [
                        {
616
                            title: 'Spring HATEOAS 文档',
617 618 619 620 621 622 623 624
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-hateoas/spring-hateoas.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
625 626
                    '/spring-rest-docs/': [
                        {
627
                            title: 'Spring HATEOAS 文档',
628 629 630 631 632 633 634 635
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-rest-docs/spring-restdocs.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664
                    '/spring-batch/': [
                        {
                            title: 'Spring Batch 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-batch/spring-batch-intro.md",
                                "/spring-batch/whatsnew.md",
                                "/spring-batch/domain.md",
                                "/spring-batch/job.md",
                                "/spring-batch/step.md",
                                "/spring-batch/readersAndWriters.md",
                                "/spring-batch/processor.md",
                                "/spring-batch/scalability.md",
                                "/spring-batch/repeat.md",
                                "/spring-batch/retry.md",
                                "/spring-batch/testing.md",
                                "/spring-batch/common-patterns.md",
                                "/spring-batch/jsr-352.md",
                                "/spring-batch/spring-batch-integration.md",
                                "/spring-batch/monitoring-and-metrics.md",
                                "/spring-batch/appendix.md",
                                "/spring-batch/schema-appendix.md",
                                "/spring-batch/transaction-appendix.md",
                                "/spring-batch/glossary.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
665 666
                    '/spring-amqp/': [
                        {
667
                            title: 'Spring AMQP 文档',
668 669 670 671 672 673 674 675
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-amqp/spring-amqp.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
676 677
                    '/spring-credhub/': [
                        {
678
                            title: 'Spring CredHub 文档',
679 680 681 682 683 684 685 686
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-credhub/spring-credhub.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
687 688
                    '/spring-flo/': [
                        {
689
                            title: 'Spring Flo 文档',
690 691 692 693 694 695 696 697
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-flo/spring-flo.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
698 699 700 701 702 703 704 705 706 707 708
                    '/spring-for-apache-kafka/': [
                        {
                            title: 'Spring for Apache Kafka 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-for-apache-kafka/spring-kafka.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
709 710 711 712 713 714 715 716 717 718 719
                    '/spring-ldap/': [
                        {
                            title: 'Spring for Apache Kafka 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-ldap/spring-ldap.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
720 721 722 723 724 725 726 727 728 729 730
                    '/spring-shell/': [
                        {
                            title: 'Spring Shell 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-shell/spring-shell.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
731 732 733 734 735 736 737 738 739 740 741
                    '/spring-statemachine/': [
                        {
                            title: 'Spring Statemachine 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-statemachine/spring-statemachine.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
742 743 744 745 746 747 748 749 750 751 752
                    '/spring-vault/': [
                        {
                            title: 'Spring Vault 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-vault/spring-vault.md",
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778
                    '/spring-web-flow/': [
                        {
                            title: 'Spring Web Flow 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
                                "/spring-web-flow/preface.md",
                                "/spring-web-flow/introduction.md",
                                "/spring-web-flow/whatsnew.md",
                                "/spring-web-flow/defining-flows.md",
                                "/spring-web-flow/el.md",
                                "/spring-web-flow/views.md",
                                "/spring-web-flow/actions.md",
                                "/spring-web-flow/flow-managed-persistence.md",
                                "/spring-web-flow/flow-security.md",
                                "/spring-web-flow/flow-inheritance.md",
                                "/spring-web-flow/system-setup.md",
                                "/spring-web-flow/spring-mvc.md",
                                "/spring-web-flow/spring-js.md",
                                "/spring-web-flow/spring-faces.md",
                                "/spring-web-flow/testing.md",
                                "/spring-web-flow/field-mappings.md"
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
779 780 781 782 783 784
                    '/spring-web-services/': [
                        {
                            title: 'Spring Web Services 文档',
                            sidebarDepth: 2,
                            collapsable: false,
                            children: [
785
                                "/spring-web-flow/spring-web-service.md",
786 787 788 789
                            ],
                            initialOpenGroupIndex: 0 // 可选的, 默认值是 0
                        }
                    ],
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
790
                    // fallback
茶陵後's avatar
茶陵後 已提交
791
                    '/':
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843
                        [{
                            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
                        }
茶陵後's avatar
茶陵後 已提交
844
                        ]
Miykael_xxm's avatar
add nav  
Miykael_xxm 已提交
845
                }
Miykael_xxm's avatar
Miykael_xxm 已提交
846 847 848 849
            }
        }
    }
}