diff --git a/.codechina-ci.yml b/.codechina-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..db6f651fd5367d0384bcaa8e0fb32015a365a630 --- /dev/null +++ b/.codechina-ci.yml @@ -0,0 +1,16 @@ +image: node:12.18.3 + +pages: + cache: + paths: + - node_modules/ + + script: + - yarn install # npm install + - yarn add -D vuepress # npm install -D vuepress + - yarn docs:build # npm run docs:build + artifacts: + paths: + - public + only: + - master diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..b512c09d476623ff4bf8d0d63c29b784925dbdf8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/README.md b/README.md deleted file mode 100644 index ab27f205003860dd962c2d1145c7e1a411ec850d..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Spring 社区 - -Spring 社区 \ No newline at end of file diff --git a/docs/.vuepress/config.js b/docs/.vuepress/config.js new file mode 100644 index 0000000000000000000000000000000000000000..fbdb32251d0a17241f0821fc4d07e18fdac1b16a --- /dev/null +++ b/docs/.vuepress/config.js @@ -0,0 +1,84 @@ +// .vuepress/config.js +module.exports = { + title: "Spring 中文文档社区", + base: "/", + locales: { + '/en/': { + lang: 'en-US', + title: 'Spring Docs', + description: '' + }, + '/': { + lang: 'zh-CN', + title: 'Spring 中文文档', + description: '' + } + }, + themeConfig: { + repo: "https://gitcode.net/dev-cloud/spring", + repoLabel: "GitCode", + docsRepo: "https://gitcode.net/dev-cloud/spring", + editLinks: true, + editLinkText: "帮助我们改善此页面!", + lastUpdated: "Last Updated", + //logo: '/assets/img/logo.png', + sidebarDepth: 3, + activeHeaderLinks: true, + nav: [{ + text: '语言', + ariaLabel: 'Language', + items: [ + { text: '中文文档', link: '/' }, + { text: '英文原文', link: '/en/' } + ] + }], + locales: { + '/en/': { + // 多语言下拉菜单的标题 + selectText: 'Language', + // 该语言在下拉菜单中的标签 + label: 'English', + lang: 'en-US', + // 编辑链接文字 + editLinkText: 'Edit this page on GitCode', + algolia: {}, + // nav: [ + // { text: 'English', link: '/en/' } + // ], + sidebar: { + "/": [ + "", + "/en/quickstart.md", + "/en/initializr.md", + "/en/installing.md", + "/en/system-requirements.md", + "/en/vscode_ide.md", + "/en/why-spring.md" + ] + } + }, + '/': { + selectText: '选择语言', + label: '简体中文', + ariaLabel: '语言', + lang: 'zh-CN', + editLinkText: '在 GitCode 上编辑此页', + algolia: {}, + // nav: [ + // { text: '中文文档', link: '/', ariaLabel: '中文文档' } + // ], + sidebar: { + "/": [ + "", + "quickstart.md", + "initializr.md", + "installing.md", + "system-requirements.md", + "vscode_ide.md", + "why-spring.md" + ] + } + } + } + } +} \ No newline at end of file diff --git a/docs/.vuepress/configs/index.ts b/docs/.vuepress/configs/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..a65b516065bf9edaa9a77b00f404739046fcb654 --- /dev/null +++ b/docs/.vuepress/configs/index.ts @@ -0,0 +1,2 @@ +export * as navbar from './navbar' +export * as sidebar from './sidebar' diff --git a/docs/.vuepress/configs/meta.ts b/docs/.vuepress/configs/meta.ts new file mode 100644 index 0000000000000000000000000000000000000000..9ad6a43977cb31055f43c90e2d9f23921c440781 --- /dev/null +++ b/docs/.vuepress/configs/meta.ts @@ -0,0 +1 @@ +export { version } from '../../../lerna.json' diff --git a/docs/.vuepress/configs/navbar/en.ts b/docs/.vuepress/configs/navbar/en.ts new file mode 100644 index 0000000000000000000000000000000000000000..29b1020b74a25f66341a0dc067b9f15fffdc949d --- /dev/null +++ b/docs/.vuepress/configs/navbar/en.ts @@ -0,0 +1,140 @@ +import type { NavbarConfig } from '@vuepress/theme-default' +import { version } from '../meta' + +export const en: NavbarConfig = [ + { + text: 'Guide', + link: '/guide/', + }, + { + text: 'Reference', + children: [ + { + text: 'VuePress', + children: [ + { + text: 'CLI', + link: '/reference/cli.html', + }, + '/reference/config.md', + '/reference/frontmatter.md', + '/reference/components.md', + '/reference/plugin-api.md', + '/reference/theme-api.md', + '/reference/client-api.md', + '/reference/node-api.md', + ], + }, + { + text: 'Bundlers', + children: [ + '/reference/bundler/vite.md', + '/reference/bundler/webpack.md', + ], + }, + { + text: 'Default Theme', + children: [ + '/reference/default-theme/config.md', + '/reference/default-theme/frontmatter.md', + '/reference/default-theme/components.md', + '/reference/default-theme/markdown.md', + '/reference/default-theme/styles.md', + '/reference/default-theme/extending.md', + ], + }, + ], + }, + { + text: 'Plugins', + children: [ + { + text: 'Common Features', + children: [ + '/reference/plugin/back-to-top.md', + '/reference/plugin/container.md', + '/reference/plugin/external-link-icon.md', + '/reference/plugin/google-analytics.md', + '/reference/plugin/medium-zoom.md', + '/reference/plugin/nprogress.md', + '/reference/plugin/register-components.md', + ], + }, + { + text: 'Content Search', + children: [ + '/reference/plugin/docsearch.md', + '/reference/plugin/search.md', + ], + }, + { + text: 'PWA', + children: [ + '/reference/plugin/pwa.md', + '/reference/plugin/pwa-popup.md', + ], + }, + { + text: 'Syntax Highlighting', + children: [ + '/reference/plugin/prismjs.md', + '/reference/plugin/shiki.md', + ], + }, + { + text: 'Theme Development', + children: [ + '/reference/plugin/active-header-links.md', + '/reference/plugin/git.md', + '/reference/plugin/palette.md', + '/reference/plugin/theme-data.md', + '/reference/plugin/toc.md', + ], + }, + ], + }, + { + text: 'Learn More', + children: [ + { + text: 'Advanced', + children: [ + '/advanced/architecture.md', + '/advanced/plugin.md', + '/advanced/theme.md', + { + text: 'Cookbook', + link: '/advanced/cookbook/', + }, + ], + }, + { + text: 'Resources', + children: [ + '/contributing.md', + { + text: 'Awesome VuePress', + link: 'https://github.com/vuepress/awesome-vuepress', + }, + ], + }, + ], + }, + { + text: `v${version}`, + children: [ + { + text: 'Changelog', + link: 'https://github.com/vuepress/vuepress-next/blob/main/CHANGELOG.md', + }, + { + text: 'v1.x', + link: 'https://v1.vuepress.vuejs.org', + }, + { + text: 'v0.x', + link: 'https://v0.vuepress.vuejs.org', + }, + ], + }, +] diff --git a/docs/.vuepress/configs/navbar/index.ts b/docs/.vuepress/configs/navbar/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..c09551765946295eca22afe649ac22274633f472 --- /dev/null +++ b/docs/.vuepress/configs/navbar/index.ts @@ -0,0 +1,2 @@ +export * from './en' +export * from './zh' diff --git a/docs/.vuepress/configs/navbar/zh.ts b/docs/.vuepress/configs/navbar/zh.ts new file mode 100644 index 0000000000000000000000000000000000000000..367496f1a713dba3308eb2341c4a40bc9e417b8d --- /dev/null +++ b/docs/.vuepress/configs/navbar/zh.ts @@ -0,0 +1,137 @@ +import type { NavbarConfig } from '@vuepress/theme-default' +import { version } from '../meta' + +export const zh: NavbarConfig = [ + { + text: '指南', + link: '/zh/guide/', + }, + { + text: '参考', + children: [ + { + text: 'VuePress', + children: [ + '/zh/reference/cli.md', + '/zh/reference/config.md', + '/zh/reference/frontmatter.md', + '/zh/reference/components.md', + '/zh/reference/plugin-api.md', + '/zh/reference/theme-api.md', + '/zh/reference/client-api.md', + '/zh/reference/node-api.md', + ], + }, + { + text: '打包工具', + children: [ + '/zh/reference/bundler/vite.md', + '/zh/reference/bundler/webpack.md', + ], + }, + { + text: '默认主题', + children: [ + '/zh/reference/default-theme/config.md', + '/zh/reference/default-theme/frontmatter.md', + '/zh/reference/default-theme/components.md', + '/zh/reference/default-theme/markdown.md', + '/zh/reference/default-theme/styles.md', + '/zh/reference/default-theme/extending.md', + ], + }, + ], + }, + { + text: '插件', + children: [ + { + text: '常用功能', + children: [ + '/zh/reference/plugin/back-to-top.md', + '/zh/reference/plugin/container.md', + '/zh/reference/plugin/external-link-icon.md', + '/zh/reference/plugin/google-analytics.md', + '/zh/reference/plugin/medium-zoom.md', + '/zh/reference/plugin/nprogress.md', + '/zh/reference/plugin/register-components.md', + ], + }, + { + text: '内容搜索', + children: [ + '/zh/reference/plugin/docsearch.md', + '/zh/reference/plugin/search.md', + ], + }, + { + text: 'PWA', + children: [ + '/zh/reference/plugin/pwa.md', + '/zh/reference/plugin/pwa-popup.md', + ], + }, + { + text: '语法高亮', + children: [ + '/zh/reference/plugin/prismjs.md', + '/zh/reference/plugin/shiki.md', + ], + }, + { + text: '主题开发', + children: [ + '/zh/reference/plugin/active-header-links.md', + '/zh/reference/plugin/git.md', + '/zh/reference/plugin/palette.md', + '/zh/reference/plugin/theme-data.md', + '/zh/reference/plugin/toc.md', + ], + }, + ], + }, + { + text: '了解更多', + children: [ + { + text: '深入', + children: [ + '/zh/advanced/architecture.md', + '/zh/advanced/plugin.md', + '/zh/advanced/theme.md', + { + text: 'Cookbook', + link: '/zh/advanced/cookbook/', + }, + ], + }, + { + text: '其他资源', + children: [ + '/zh/contributing.md', + { + text: 'Awesome VuePress', + link: 'https://github.com/vuepress/awesome-vuepress', + }, + ], + }, + ], + }, + { + text: `v${version}`, + children: [ + { + text: '更新日志', + link: 'https://github.com/vuepress/vuepress-next/blob/main/CHANGELOG.md', + }, + { + text: 'v1.x', + link: 'https://v1.vuepress.vuejs.org/zh/', + }, + { + text: 'v0.x', + link: 'https://v0.vuepress.vuejs.org/zh/', + }, + ], + }, +] diff --git a/docs/.vuepress/configs/sidebar/en.ts b/docs/.vuepress/configs/sidebar/en.ts new file mode 100644 index 0000000000000000000000000000000000000000..e83c2bf759d75b0cf4a99220d6c03ffba68e2d04 --- /dev/null +++ b/docs/.vuepress/configs/sidebar/en.ts @@ -0,0 +1,126 @@ +import type { SidebarConfig } from '@vuepress/theme-default' + +export const en: SidebarConfig = { + '/guide/': [ + { + text: 'Guide', + children: [ + '/guide/README.md', + '/guide/getting-started.md', + '/guide/configuration.md', + '/guide/page.md', + '/guide/markdown.md', + '/guide/assets.md', + '/guide/i18n.md', + '/guide/deployment.md', + '/guide/theme.md', + '/guide/plugin.md', + '/guide/bundler.md', + '/guide/migration.md', + ], + }, + ], + '/advanced/': [ + { + text: 'Advanced', + children: [ + '/advanced/architecture.md', + '/advanced/plugin.md', + '/advanced/theme.md', + ], + }, + { + text: 'Cookbook', + children: [ + '/advanced/cookbook/README.md', + '/advanced/cookbook/usage-of-client-app-enhance.md', + '/advanced/cookbook/adding-extra-pages.md', + '/advanced/cookbook/making-a-theme-extendable.md', + '/advanced/cookbook/passing-data-to-client-code.md', + '/advanced/cookbook/markdown-and-vue-sfc.md', + ], + }, + ], + '/reference/': [ + { + text: 'VuePress Reference', + collapsible: true, + children: [ + '/reference/cli.md', + '/reference/config.md', + '/reference/frontmatter.md', + '/reference/components.md', + '/reference/plugin-api.md', + '/reference/theme-api.md', + '/reference/client-api.md', + '/reference/node-api.md', + ], + }, + { + text: 'Bundlers Reference', + collapsible: true, + children: ['/reference/bundler/vite.md', '/reference/bundler/webpack.md'], + }, + { + text: 'Default Theme Reference', + collapsible: true, + children: [ + '/reference/default-theme/config.md', + '/reference/default-theme/frontmatter.md', + '/reference/default-theme/components.md', + '/reference/default-theme/markdown.md', + '/reference/default-theme/styles.md', + '/reference/default-theme/extending.md', + ], + }, + { + text: 'Official Plugins Reference', + collapsible: true, + children: [ + { + text: 'Common Features', + children: [ + '/reference/plugin/back-to-top.md', + '/reference/plugin/container.md', + '/reference/plugin/external-link-icon.md', + '/reference/plugin/google-analytics.md', + '/reference/plugin/medium-zoom.md', + '/reference/plugin/nprogress.md', + '/reference/plugin/register-components.md', + ], + }, + { + text: 'Content Search', + children: [ + '/reference/plugin/docsearch.md', + '/reference/plugin/search.md', + ], + }, + { + text: 'PWA', + children: [ + '/reference/plugin/pwa.md', + '/reference/plugin/pwa-popup.md', + ], + }, + { + text: 'Syntax Highlighting', + children: [ + '/reference/plugin/prismjs.md', + '/reference/plugin/shiki.md', + ], + }, + { + text: 'Theme Development', + children: [ + '/reference/plugin/active-header-links.md', + '/reference/plugin/git.md', + '/reference/plugin/palette.md', + '/reference/plugin/theme-data.md', + '/reference/plugin/toc.md', + ], + }, + ], + }, + ], +} diff --git a/docs/.vuepress/configs/sidebar/index.ts b/docs/.vuepress/configs/sidebar/index.ts new file mode 100644 index 0000000000000000000000000000000000000000..c09551765946295eca22afe649ac22274633f472 --- /dev/null +++ b/docs/.vuepress/configs/sidebar/index.ts @@ -0,0 +1,2 @@ +export * from './en' +export * from './zh' diff --git a/docs/.vuepress/configs/sidebar/zh.ts b/docs/.vuepress/configs/sidebar/zh.ts new file mode 100644 index 0000000000000000000000000000000000000000..805dcead270a4fdd898d257aee1e7336278dfe3e --- /dev/null +++ b/docs/.vuepress/configs/sidebar/zh.ts @@ -0,0 +1,129 @@ +import type { SidebarConfig } from '@vuepress/theme-default' + +export const zh: SidebarConfig = { + '/zh/guide/': [ + { + text: '指南', + children: [ + '/zh/guide/README.md', + '/zh/guide/getting-started.md', + '/zh/guide/configuration.md', + '/zh/guide/page.md', + '/zh/guide/markdown.md', + '/zh/guide/assets.md', + '/zh/guide/i18n.md', + '/zh/guide/deployment.md', + '/zh/guide/theme.md', + '/zh/guide/plugin.md', + '/zh/guide/bundler.md', + '/zh/guide/migration.md', + ], + }, + ], + '/zh/advanced/': [ + { + text: '深入', + children: [ + '/zh/advanced/architecture.md', + '/zh/advanced/plugin.md', + '/zh/advanced/theme.md', + ], + }, + { + text: 'Cookbook', + children: [ + '/zh/advanced/cookbook/README.md', + '/zh/advanced/cookbook/usage-of-client-app-enhance.md', + '/zh/advanced/cookbook/adding-extra-pages.md', + '/zh/advanced/cookbook/making-a-theme-extendable.md', + '/zh/advanced/cookbook/passing-data-to-client-code.md', + '/zh/advanced/cookbook/markdown-and-vue-sfc.md', + ], + }, + ], + '/zh/reference/': [ + { + text: 'VuePress 参考', + collapsible: true, + children: [ + '/zh/reference/cli.md', + '/zh/reference/config.md', + '/zh/reference/frontmatter.md', + '/zh/reference/components.md', + '/zh/reference/plugin-api.md', + '/zh/reference/theme-api.md', + '/zh/reference/client-api.md', + '/zh/reference/node-api.md', + ], + }, + { + text: '打包工具参考', + collapsible: true, + children: [ + '/zh/reference/bundler/vite.md', + '/zh/reference/bundler/webpack.md', + ], + }, + { + text: '默认主题参考', + collapsible: true, + children: [ + '/zh/reference/default-theme/config.md', + '/zh/reference/default-theme/frontmatter.md', + '/zh/reference/default-theme/components.md', + '/zh/reference/default-theme/markdown.md', + '/zh/reference/default-theme/styles.md', + '/zh/reference/default-theme/extending.md', + ], + }, + { + text: '官方插件参考', + collapsible: true, + children: [ + { + text: '常用功能', + children: [ + '/zh/reference/plugin/back-to-top.md', + '/zh/reference/plugin/container.md', + '/zh/reference/plugin/external-link-icon.md', + '/zh/reference/plugin/google-analytics.md', + '/zh/reference/plugin/medium-zoom.md', + '/zh/reference/plugin/nprogress.md', + '/zh/reference/plugin/register-components.md', + ], + }, + { + text: '内容搜索', + children: [ + '/zh/reference/plugin/docsearch.md', + '/zh/reference/plugin/search.md', + ], + }, + { + text: 'PWA', + children: [ + '/zh/reference/plugin/pwa.md', + '/zh/reference/plugin/pwa-popup.md', + ], + }, + { + text: '语法高亮', + children: [ + '/zh/reference/plugin/prismjs.md', + '/zh/reference/plugin/shiki.md', + ], + }, + { + text: '主题开发', + children: [ + '/zh/reference/plugin/active-header-links.md', + '/zh/reference/plugin/git.md', + '/zh/reference/plugin/palette.md', + '/zh/reference/plugin/theme-data.md', + '/zh/reference/plugin/toc.md', + ], + }, + ], + }, + ], +} diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000000000000000000000000000000000000..b898c3c4f07242de0281addde45e087f9d15f2e2 --- /dev/null +++ b/docs/README.md @@ -0,0 +1,7 @@ +# Spring 社区 + +Spring 文档项目介绍 + +## 参与建设奖励 + +## 参与建设流程 \ No newline at end of file diff --git a/docs/en/README.md b/docs/en/README.md new file mode 100644 index 0000000000000000000000000000000000000000..501adabdd72fe447f1070feacd0a874d0be51822 --- /dev/null +++ b/docs/en/README.md @@ -0,0 +1 @@ +# English Version \ No newline at end of file diff --git a/translation/initializr.md b/docs/en/initializr.md similarity index 82% rename from translation/initializr.md rename to docs/en/initializr.md index f322f28dee34df415352f0c6610c0c1e97fb17be..8a57a6ea6c9fb5367152f57e2bcb3ed18f3273c6 100644 --- a/translation/initializr.md +++ b/docs/en/initializr.md @@ -1,3 +1,5 @@ +# Spring initializr + ![2022-03-01-18-11-18](./initializr/2022-03-01-18-11-18.png) 原文链接: https://start.spring.io/ diff --git a/origin/initializr/2022-03-01-18-11-18.png b/docs/en/initializr/2022-03-01-18-11-18.png similarity index 100% rename from origin/initializr/2022-03-01-18-11-18.png rename to docs/en/initializr/2022-03-01-18-11-18.png diff --git a/origin/installing.md b/docs/en/installing.md similarity index 100% rename from origin/installing.md rename to docs/en/installing.md diff --git a/origin/quickstart.md b/docs/en/quickstart.md similarity index 100% rename from origin/quickstart.md rename to docs/en/quickstart.md diff --git a/origin/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png b/docs/en/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png similarity index 100% rename from origin/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png rename to docs/en/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png diff --git a/origin/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png b/docs/en/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png similarity index 100% rename from origin/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png rename to docs/en/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png diff --git a/origin/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png b/docs/en/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png similarity index 100% rename from origin/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png rename to docs/en/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png diff --git a/origin/system-requirements.md b/docs/en/system-requirements.md similarity index 100% rename from origin/system-requirements.md rename to docs/en/system-requirements.md diff --git a/origin/vscode_ide.md b/docs/en/vscode_ide.md similarity index 100% rename from origin/vscode_ide.md rename to docs/en/vscode_ide.md diff --git a/origin/vscode_ide/spring_guide_new_project.png b/docs/en/vscode_ide/spring_guide_new_project.png similarity index 100% rename from origin/vscode_ide/spring_guide_new_project.png rename to docs/en/vscode_ide/spring_guide_new_project.png diff --git a/origin/vscode_ide/spring_guide_select_gradle_file.png b/docs/en/vscode_ide/spring_guide_select_gradle_file.png similarity index 100% rename from origin/vscode_ide/spring_guide_select_gradle_file.png rename to docs/en/vscode_ide/spring_guide_select_gradle_file.png diff --git a/origin/vscode_ide/spring_guide_welcome_import.png b/docs/en/vscode_ide/spring_guide_welcome_import.png similarity index 100% rename from origin/vscode_ide/spring_guide_welcome_import.png rename to docs/en/vscode_ide/spring_guide_welcome_import.png diff --git a/origin/why-spring.md b/docs/en/why-spring.md similarity index 100% rename from origin/why-spring.md rename to docs/en/why-spring.md diff --git a/origin/initializr.md b/docs/initializr.md similarity index 75% rename from origin/initializr.md rename to docs/initializr.md index f322f28dee34df415352f0c6610c0c1e97fb17be..979d876923862fe563aeb74c784c609a487dc1a5 100644 --- a/origin/initializr.md +++ b/docs/initializr.md @@ -1,3 +1,5 @@ +# Spring initializr 构建工程 + ![2022-03-01-18-11-18](./initializr/2022-03-01-18-11-18.png) 原文链接: https://start.spring.io/ diff --git a/translation/initializr/2022-03-01-18-11-18.png b/docs/initializr/2022-03-01-18-11-18.png similarity index 100% rename from translation/initializr/2022-03-01-18-11-18.png rename to docs/initializr/2022-03-01-18-11-18.png diff --git a/translation/installing.md b/docs/installing.md similarity index 100% rename from translation/installing.md rename to docs/installing.md diff --git a/translation/quickstart.md b/docs/quickstart.md similarity index 100% rename from translation/quickstart.md rename to docs/quickstart.md diff --git a/translation/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png b/docs/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png similarity index 100% rename from translation/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png rename to docs/quickstart_img/quick-img-1-12bfde9c5c280b1940d85dee3d81772d.png diff --git a/translation/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png b/docs/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png similarity index 100% rename from translation/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png rename to docs/quickstart_img/quick-img2-ac5ae88c60ffaa062234a580f9f1abc3.png diff --git a/translation/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png b/docs/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png similarity index 100% rename from translation/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png rename to docs/quickstart_img/quick-img3-afa0a1fe446db8e3c8c7a8d9ca532d23.png diff --git a/translation/system-requirements.md b/docs/system-requirements.md similarity index 100% rename from translation/system-requirements.md rename to docs/system-requirements.md diff --git a/translation/vscode_ide.md b/docs/vscode_ide.md similarity index 100% rename from translation/vscode_ide.md rename to docs/vscode_ide.md diff --git a/translation/vscode_ide/spring_guide_new_project.png b/docs/vscode_ide/spring_guide_new_project.png similarity index 100% rename from translation/vscode_ide/spring_guide_new_project.png rename to docs/vscode_ide/spring_guide_new_project.png diff --git a/translation/vscode_ide/spring_guide_select_gradle_file.png b/docs/vscode_ide/spring_guide_select_gradle_file.png similarity index 100% rename from translation/vscode_ide/spring_guide_select_gradle_file.png rename to docs/vscode_ide/spring_guide_select_gradle_file.png diff --git a/translation/vscode_ide/spring_guide_welcome_import.png b/docs/vscode_ide/spring_guide_welcome_import.png similarity index 100% rename from translation/vscode_ide/spring_guide_welcome_import.png rename to docs/vscode_ide/spring_guide_welcome_import.png diff --git a/translation/why-spring.md b/docs/why-spring.md similarity index 94% rename from translation/why-spring.md rename to docs/why-spring.md index 14b26bf1e0370954dc1b914476a3b6d4b06a84c0..f472c55b368807f442d876349dd9f042275eb7da 100644 --- a/translation/why-spring.md +++ b/docs/why-spring.md @@ -1,8 +1,8 @@ -# 为什么是春天? +# 为什么是 Spring? Spring 让每个人都可以更快、更轻松、更安全地编写 Java。Spring 对速度、简单性和生产力的关注使其成为[世界上最受欢迎的](https://snyk.io/blog/jvm-ecosystem-report-2018-platform-application/)Java 框架。 -## 春天无处不在 +## Spring 无处不在 Spring 的灵活库受到全世界开发人员的信赖。Spring 每天为数百万最终用户提供令人愉悦的体验——无论是[流媒体电视](https://medium.com/netflix-techblog/netflix-oss-and-spring-boot-coming-full-circle-4855947713a0),[网上购物](https://tech.target.com/2018/12/18/spring-feign.html),或无数其他创新解决方案。Spring 也有来自所有科技巨头的贡献,包括阿里巴巴、亚马逊、谷歌、微软等。 @@ -10,21 +10,21 @@ Spring 的灵活库受到全世界开发人员的信赖。Spring 每天为数百 Spring 灵活而全面的扩展集和第三方库让开发人员可以构建几乎任何可以想象的应用程序。Spring 框架的核心是[控制反转 (IoC)](https://en.wikipedia.org/wiki/Inversion_of_control)和[依赖注入 (DI)](https://en.wikipedia.org/wiki/Dependency_injection)特性为广泛的特性和功能集提供了基础。无论您是为 Web 构建安全、反应式、基于云的微服务,还是为企业构建复杂的流数据流,Spring 都有可以提供帮助的工具。 -## 春天是生产力 +## Spring 是生产力 [弹簧靴](https://spring.io/guides/gs/spring-boot/)改变您处理 Java 编程任务的方式,从根本上简化您的体验。Spring Boot 结合了应用程序上下文和自动配置的嵌入式 Web 服务器等必需品,[微服务](https://spring.io/microservices)发展小菜一碟。为了更快,您可以将 Spring Boot 与 Spring Cloud 丰富的支持库、服务器、模式和模板集相结合,以安全地将整个基于微服务的架构部署到[云](https://spring.io/cloud),在创纪录的时间内。 -## 春天来得很快 +## Spring 来得很快 我们的工程师非常关心性能。使用 Spring,您会注意到默认情况下快速启动、快速关闭和优化执行。Spring 项目也越来越多地支持[反应式](https://spring.io/reactive)(非阻塞)编程模型,效率更高。开发人员的生产力是 Spring 的超能力。Spring Boot 可帮助开发人员轻松构建应用程序,并且比其他竞争范式更省力。嵌入式 Web 服务器、自动配置和“fat jars”可帮助您快速入门,创新如[Spring DevTools 中的 LiveReload](https://docs.spring.io/spring-boot/docs/current/reference/html/using-spring-boot.html#using-boot-devtools-livereload)意味着开发人员可以比以往更快地迭代。您甚至可以在几秒钟内启动一个新的 Spring 项目,Spring Initializr 位于[启动.spring.io](https://start.spring.io/). -## 春天是安全的 +## Spring 是安全的 Spring 在快速、负责任地处理安全问题方面有着良好的记录。Spring 提交者与安全专家合作,修补和测试任何报告的漏洞。第三方依赖项也受到密切监控,并定期发布更新以帮助确保您的数据和应用程序尽可能安全。此外,[春季安全](https://spring.io/projects/spring-security)让您更轻松地与行业标准的安全方案集成,并提供默认安全的值得信赖的解决方案。 -## 春天是支持的 +## Spring 是支持的 -这[春天社区](https://spring.io/community)是巨大的、全球性的、多样化的,涵盖了所有年龄和能力的人,从完全的初学者到经验丰富的专业人士。无论您在旅途中的哪个阶段,都可以找到使您更上一层楼所需的支持和资源:[快速入门](https://spring.io/quickstart),[指南和教程](https://spring.io/guides),[视频](https://www.youtube.com/channel/UC7yfnfvEUlXUIfm8rGLwZdA),[聚会](https://spring.io/events),[支持](https://spring.io/support),甚至是正式的[培训和认证](https://spring.io/training). +这[Spring社区](https://spring.io/community)是巨大的、全球性的、多样化的,涵盖了所有年龄和能力的人,从完全的初学者到经验丰富的专业人士。无论您在旅途中的哪个阶段,都可以找到使您更上一层楼所需的支持和资源:[快速入门](https://spring.io/quickstart),[指南和教程](https://spring.io/guides),[视频](https://www.youtube.com/channel/UC7yfnfvEUlXUIfm8rGLwZdA),[聚会](https://spring.io/events),[支持](https://spring.io/support),甚至是正式的[培训和认证](https://spring.io/training). # What can Spring do? diff --git a/package.json b/package.json new file mode 100644 index 0000000000000000000000000000000000000000..6c17537455b4c376ab29e6c19f4d951b456d37d5 --- /dev/null +++ b/package.json @@ -0,0 +1,7 @@ +{ + "scripts": { + "docs:dev": "vuepress dev docs --open --host 127.0.0.1", + "docs:build": "vuepress build docs" + } + } + \ No newline at end of file diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000000000000000000000000000000000000..fb57ccd13afbd082ad82051c2ffebef4840661ec --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + +