site.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404
  1. /*
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing,
  13. * software distributed under the License is distributed on an
  14. * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15. * KIND, either express or implied. See the License for the
  16. * specific language governing permissions and limitations
  17. * under the License.
  18. *
  19. */
  20. // 全局的一些配置
  21. export default {
  22. rootPath: '',
  23. port: 8080,
  24. domain: 'dolphinscheduler.apache.org',
  25. copyToDist: ['asset', 'img', 'file', '.asf.yaml', 'sitemap.xml', '.nojekyll', '.htaccess', 'googled0df7b96f277a143.html'],
  26. docsLatest: '3.0.0',
  27. defaultSearch: 'google', // default search engine
  28. defaultLanguage: 'en-us',
  29. 'en-us': {
  30. banner: {
  31. text: '🤔 Have queries regarding Apache DolphinScheduler, Join Slack channel to disscuss them ',
  32. link: 'https://join.slack.com/t/asf-dolphinscheduler/shared_invite/zt-omtdhuio-_JISsxYhiVsltmC5h38yfw'
  33. },
  34. pageMenu: [
  35. {
  36. key: 'home',
  37. text: 'HOME',
  38. link: '/en-us/index.html',
  39. },
  40. {
  41. key: 'docs',
  42. text: 'DOCS',
  43. link: '/en-us/docs/latest/user_doc/about/introduction.html',
  44. children: [
  45. {
  46. key: 'docs0',
  47. text: 'latest(3.0.0-alpha)',
  48. link: '/en-us/docs/latest/user_doc/about/introduction.html',
  49. },
  50. {
  51. key: 'docs1',
  52. text: '1.3.9',
  53. link: '/en-us/docs/1.3.9/user_doc/quick-start.html',
  54. },
  55. {
  56. key: 'docsHistory',
  57. text: 'Older Versions',
  58. link: '/en-us/docs/release/history-versions.html',
  59. },
  60. {
  61. key: 'pythonAPI',
  62. text: 'PyDolphinScheduler',
  63. link: '/python/index.html',
  64. },
  65. {
  66. key: 'docsdev',
  67. text: 'dev',
  68. link: '/en-us/docs/dev/user_doc/about/introduction.html',
  69. },
  70. ],
  71. },
  72. {
  73. key: 'download',
  74. text: 'DOWNLOAD',
  75. link: '/en-us/download/download.html',
  76. },
  77. { key: 'blog',
  78. text: 'BLOG',
  79. link: '/en-us/blog/index.html',
  80. },
  81. {
  82. key: 'development',
  83. text: 'DEVELOPMENT',
  84. link: '/en-us/development/development-environment-setup.html',
  85. },
  86. {
  87. key: 'community',
  88. text: 'COMMUNITY',
  89. link: '/en-us/community/team.html',
  90. },
  91. {
  92. key: 'ASF',
  93. text: 'ASF',
  94. target: '_blank',
  95. link: 'https://www.apache.org/',
  96. children: [
  97. {
  98. key: 'Foundation',
  99. text: 'Foundation',
  100. target: '_blank',
  101. link: 'https://www.apache.org/',
  102. },
  103. {
  104. key: 'License',
  105. text: 'License',
  106. target: '_blank',
  107. link: 'https://www.apache.org/licenses/',
  108. },
  109. {
  110. key: 'Events',
  111. text: 'Events',
  112. target: '_blank',
  113. link: 'https://www.apache.org/events/current-event',
  114. },
  115. {
  116. key: 'Security',
  117. text: 'Security',
  118. target: '_blank',
  119. link: 'https://www.apache.org/security/',
  120. },
  121. {
  122. key: 'Sponsorship',
  123. text: 'Sponsorship',
  124. target: '_blank',
  125. link: 'https://www.apache.org/foundation/sponsorship.html',
  126. },
  127. {
  128. key: 'Thanks',
  129. text: 'Thanks',
  130. target: '_blank',
  131. link: 'https://www.apache.org/foundation/thanks.html',
  132. },
  133. ],
  134. },
  135. {
  136. key: 'user',
  137. text: 'USER',
  138. link: '/en-us/user/index.html',
  139. },
  140. ],
  141. documentation: {
  142. title: 'Documentation',
  143. list: [
  144. {
  145. text: 'Overview',
  146. link: '/en-us/development/architecture-design.html',
  147. },
  148. {
  149. text: 'Quick start',
  150. link: '/en-us/docs/latest/user_doc/guide/quick-start.html',
  151. },
  152. {
  153. text: 'Developer guide',
  154. link: '/en-us/development/development-environment-setup.html',
  155. },
  156. ],
  157. },
  158. asf: {
  159. title: 'ASF',
  160. list: [
  161. {
  162. text: 'Foundation',
  163. link: 'http://www.apache.org',
  164. },
  165. {
  166. text: 'License',
  167. link: 'http://www.apache.org/licenses/',
  168. },
  169. {
  170. text: 'Events',
  171. link: 'http://www.apache.org/events/current-event',
  172. },
  173. {
  174. text: 'Sponsorship',
  175. link: 'http://www.apache.org/foundation/sponsorship.html',
  176. },
  177. {
  178. text: 'Thanks',
  179. link: 'http://www.apache.org/foundation/thanks.html',
  180. },
  181. ],
  182. },
  183. contact: {
  184. title: 'About us',
  185. content: 'Do you need feedback? Please contact us through the following ways.',
  186. list: [
  187. {
  188. name: 'Email List',
  189. img1: '/img/emailgray.png',
  190. img2: '/img/emailblue.png',
  191. link: '/en-us/community/development/subscribe.html',
  192. },
  193. {
  194. name: 'Twitter',
  195. img1: '/img/twittergray.png',
  196. img2: '/img/twitterblue.png',
  197. link: 'https://twitter.com/dolphinschedule',
  198. },
  199. {
  200. name: 'Stack Overflow',
  201. img1: '/img/stackoverflow.png',
  202. img2: '/img/stackoverflow-selected.png',
  203. link: 'https://stackoverflow.com/questions/tagged/apache-dolphinscheduler',
  204. },
  205. {
  206. name: 'Slack',
  207. img1: '/img/slack.png',
  208. img2: '/img/slack-selected.png',
  209. link: 'https://join.slack.com/t/asf-dolphinscheduler/shared_invite/zt-omtdhuio-_JISsxYhiVsltmC5h38yfw',
  210. },
  211. ],
  212. },
  213. copyright: 'Copyright © 2019-2021 The Apache Software Foundation. Apache DolphinScheduler, DolphinScheduler, and its feather logo are trademarks of The Apache Software Foundation.',
  214. },
  215. 'zh-cn': {
  216. banner: {
  217. text: '🤔 有关于 Apache DolphinScheduler 的疑问,加入 Slack 频道来讨论他们 ',
  218. link: 'https://join.slack.com/t/asf-dolphinscheduler/shared_invite/zt-omtdhuio-_JISsxYhiVsltmC5h38yfw'
  219. },
  220. pageMenu: [
  221. {
  222. key: 'home',
  223. text: '首页',
  224. link: '/zh-cn/index.html',
  225. },
  226. {
  227. key: 'docs',
  228. text: '文档',
  229. link: '/zh-cn/docs/latest/user_doc/about/introduction.html',
  230. children: [
  231. {
  232. key: 'docs0',
  233. text: '最新版本latest(3.0.0-alpha)',
  234. link: '/zh-cn/docs/latest/user_doc/about/introduction.html',
  235. },
  236. {
  237. key: 'docs1',
  238. text: '1.3.9',
  239. link: '/zh-cn/docs/1.3.9/user_doc/quick-start.html',
  240. },
  241. {
  242. key: 'docsHistory',
  243. text: '历史版本',
  244. link: '/zh-cn/docs/release/history-versions.html',
  245. },
  246. {
  247. key: 'pythonAPI',
  248. text: 'PyDolphinScheduler',
  249. link: '/python/index.html',
  250. },
  251. {
  252. key: 'docsdev',
  253. text: 'dev',
  254. link: '/zh-cn/docs/dev/user_doc/about/introduction.html',
  255. },
  256. ],
  257. },
  258. {
  259. key: 'download',
  260. text: '下载',
  261. link: '/zh-cn/download/download.html',
  262. },
  263. {
  264. key: 'blog',
  265. text: '博客',
  266. link: '/zh-cn/blog/index.html',
  267. },
  268. {
  269. key: 'development',
  270. text: '开发者',
  271. link: '/zh-cn/development/development-environment-setup.html',
  272. },
  273. {
  274. key: 'community',
  275. text: '社区',
  276. link: '/zh-cn/community/team.html',
  277. },
  278. {
  279. key: 'ASF',
  280. text: 'ASF',
  281. target: '_blank',
  282. link: 'https://www.apache.org/',
  283. children: [
  284. {
  285. key: 'Foundation',
  286. text: 'Foundation',
  287. target: '_blank',
  288. link: 'https://www.apache.org/',
  289. },
  290. {
  291. key: 'License',
  292. text: 'License',
  293. target: '_blank',
  294. link: 'https://www.apache.org/licenses/',
  295. },
  296. {
  297. key: 'Events',
  298. text: 'Events',
  299. target: '_blank',
  300. link: 'https://www.apache.org/events/current-event',
  301. },
  302. {
  303. key: 'Security',
  304. text: 'Security',
  305. target: '_blank',
  306. link: 'https://www.apache.org/security/',
  307. },
  308. {
  309. key: 'Sponsorship',
  310. text: 'Sponsorship',
  311. target: '_blank',
  312. link: 'https://www.apache.org/foundation/sponsorship.html',
  313. },
  314. {
  315. key: 'Thanks',
  316. text: 'Thanks',
  317. target: '_blank',
  318. link: 'https://www.apache.org/foundation/thanks.html',
  319. },
  320. ],
  321. },
  322. {
  323. key: 'user',
  324. text: '用户',
  325. // link: '',
  326. link: '/zh-cn/user/index.html',
  327. },
  328. ],
  329. documentation: {
  330. title: '文档',
  331. list: [
  332. {
  333. text: '概览',
  334. link: '/zh-cn/development/architecture-design.html',
  335. },
  336. {
  337. text: '快速开始',
  338. link: '/zh-cn/docs/latest/user_doc/guide/quick-start.html',
  339. },
  340. {
  341. text: '开发者指南',
  342. link: '/zh-cn/development/development-environment-setup.html',
  343. },
  344. ],
  345. },
  346. asf: {
  347. title: 'ASF',
  348. list: [
  349. {
  350. text: '基金会',
  351. link: 'http://www.apache.org',
  352. },
  353. {
  354. text: '证书',
  355. link: 'http://www.apache.org/licenses/',
  356. },
  357. {
  358. text: '事件',
  359. link: 'http://www.apache.org/events/current-event',
  360. },
  361. {
  362. text: '赞助',
  363. link: 'http://www.apache.org/foundation/sponsorship.html',
  364. },
  365. {
  366. text: '致谢',
  367. link: 'http://www.apache.org/foundation/thanks.html',
  368. },
  369. ],
  370. },
  371. contact: {
  372. title: '联系我们',
  373. content: '有问题需要反馈?请通过以下方式联系我们。',
  374. list: [
  375. {
  376. name: '邮件列表',
  377. img1: '/img/emailgray.png',
  378. img2: '/img/emailblue.png',
  379. link: '/zh-cn/community/development/subscribe.html',
  380. },
  381. {
  382. name: 'Twitter',
  383. img1: '/img/twittergray.png',
  384. img2: '/img/twitterblue.png',
  385. link: 'https://twitter.com/dolphinschedule',
  386. },
  387. {
  388. name: 'Stack Overflow',
  389. img1: '/img/stackoverflow.png',
  390. img2: '/img/stackoverflow-selected.png',
  391. link: 'https://stackoverflow.com/questions/tagged/apache-dolphinscheduler',
  392. },
  393. {
  394. name: 'Slack',
  395. img1: '/img/slack.png',
  396. img2: '/img/slack-selected.png',
  397. link: 'https://join.slack.com/t/asf-dolphinscheduler/shared_invite/zt-omtdhuio-_JISsxYhiVsltmC5h38yfw',
  398. },
  399. ],
  400. },
  401. copyright: 'Copyright © 2019-2021 The Apache Software Foundation. Apache DolphinScheduler, DolphinScheduler, and its feather logo are trademarks of The Apache Software Foundation.',
  402. },
  403. };