From 72d4cef8d3c6a6a9058f21621269d898483e2f3e Mon Sep 17 00:00:00 2001 From: Zarko Simic <42171300+zarkosimic@users.noreply.github.com> Date: Wed, 18 Sep 2019 13:05:54 +0200 Subject: [PATCH 01/30] Update --- client/package-lock.json | 47 ++++++++++++++++++++++++++++------------ core/package-lock.json | 41 +++++++++++++++++++++++++---------- 2 files changed, 63 insertions(+), 25 deletions(-) diff --git a/client/package-lock.json b/client/package-lock.json index 1241824164..95d076c703 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -2573,7 +2573,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -2594,12 +2595,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -2614,17 +2617,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -2741,7 +2747,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -2753,6 +2760,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -2767,6 +2775,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -2774,12 +2783,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -2798,6 +2809,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -2878,7 +2890,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -2890,6 +2903,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -2975,7 +2989,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3011,6 +3026,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3030,6 +3046,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3073,12 +3090,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -3964,7 +3983,7 @@ }, "mkdirp": { "version": "0.5.1", - "resolved": "http://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { @@ -8064,7 +8083,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "http://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { @@ -9248,7 +9267,7 @@ }, "wrap-ansi": { "version": "2.1.0", - "resolved": "http://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { diff --git a/core/package-lock.json b/core/package-lock.json index 1d29ff2fd8..18190ec97b 100644 --- a/core/package-lock.json +++ b/core/package-lock.json @@ -3470,7 +3470,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -3491,12 +3492,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -3511,17 +3514,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -3638,7 +3644,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -3650,6 +3657,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -3664,6 +3672,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -3671,12 +3680,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -3695,6 +3706,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -3775,7 +3787,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -3787,6 +3800,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -3872,7 +3886,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -3908,6 +3923,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -3927,6 +3943,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -3970,12 +3987,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, From 589fad63769ad239123db4f8cd66dd59a477d62c Mon Sep 17 00:00:00 2001 From: Maryna Khromova <46446373+marynaKhromova@users.noreply.github.com> Date: Wed, 6 Nov 2019 11:35:55 +0100 Subject: [PATCH 02/30] initial styles --- .../src/luigi-config/extended/navigation.js | 33 +- .../src/luigi-config/extended/settings.js | 6 +- .../styles/fonts/icon-font/icon-font.eot | Bin 0 -> 2354 bytes .../styles/fonts/icon-font/icon-font.svg | 15 + .../styles/fonts/icon-font/icon-font.ttf | Bin 0 -> 2188 bytes .../styles/fonts/icon-font/icon-font.woff | Bin 0 -> 1500 bytes .../docs/src/luigi-config/styles/index.scss | 334 +++++++++++++++++- website/docs/src/routes/_layout.svelte | 126 ++++++- website/docs/src/routes/docs/[slug].svelte | 31 +- website/docs/src/template.html | 6 +- .../rehype-luigi-linkparser.js | 2 +- website/docs/static/luigi/favicon.png | Bin 0 -> 1828 bytes .../luigi/fonts/icon-font/icon-font.eot | Bin 0 -> 2354 bytes .../luigi/fonts/icon-font/icon-font.svg | 15 + .../luigi/fonts/icon-font/icon-font.ttf | Bin 0 -> 2188 bytes .../luigi/fonts/icon-font/icon-font.woff | Bin 0 -> 1500 bytes website/docs/static/luigi/index.html | 2 +- website/docs/static/luigi/logo.svg | 10 + 18 files changed, 527 insertions(+), 53 deletions(-) create mode 100644 website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.eot create mode 100644 website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.svg create mode 100644 website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.ttf create mode 100644 website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.woff create mode 100644 website/docs/static/luigi/favicon.png create mode 100644 website/docs/static/luigi/fonts/icon-font/icon-font.eot create mode 100644 website/docs/static/luigi/fonts/icon-font/icon-font.svg create mode 100644 website/docs/static/luigi/fonts/icon-font/icon-font.ttf create mode 100644 website/docs/static/luigi/fonts/icon-font/icon-font.woff create mode 100644 website/docs/static/luigi/logo.svg diff --git a/website/docs/src/luigi-config/extended/navigation.js b/website/docs/src/luigi-config/extended/navigation.js index bb042d60f9..f550ed98ac 100644 --- a/website/docs/src/luigi-config/extended/navigation.js +++ b/website/docs/src/luigi-config/extended/navigation.js @@ -22,11 +22,42 @@ const getDocuItems = () => { class Navigation { nodes = [ + { + label: 'About Luigi', + externalLink: { + url: 'https://luigi-project.io/about', + sameWindow: true + } + }, { pathSegment: 'docs', - label: 'Overview', + label: 'Documentation', viewUrl: baseUrl + '/docs', children: getDocuItems() + }, + { + label: 'Twitter', + externalLink: { + url: 'https://twitter.com/luigiprojectio', + sameWindow: false + }, + icon: 'twitter' + }, + { + label: 'Slack', + externalLink: { + url: 'https://slack.luigi-project.io', + sameWindow: false + }, + icon: 'slack' + }, + { + label: 'Github', + externalLink: { + url: 'https://github.com/SAP/luigi', + sameWindow: false + }, + icon: 'github' } ]; diff --git a/website/docs/src/luigi-config/extended/settings.js b/website/docs/src/luigi-config/extended/settings.js index 5edf1fe647..5a0537de3d 100644 --- a/website/docs/src/luigi-config/extended/settings.js +++ b/website/docs/src/luigi-config/extended/settings.js @@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IDIxLjQ0IDQgMjEuNDQgMTYuMTQgMCAxMi42LTkuNTEgMTYuNTctMjEuNDQgMTYuNTciLz48L3N2Zz4=', - title: 'Luigi Documentation', - favicon: '/assets/favicon-sap.ico' + logo: 'logo.svg', + favicon: 'favicon.png' }; responsiveNavigation = 'simpleMobileOnly'; // Options: simple | simpleMobileOnly | semiCollapsible diff --git a/website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.eot b/website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.eot new file mode 100644 index 0000000000000000000000000000000000000000..1111ccd08a10aafd75ad09d2f34458708b8ce28c GIT binary patch literal 2354 zcmc&#O>7%g5T4mxukF}QVrRWh^JBYC^V1YN{z>e%BvmRB7pj&Ifi99dE?y0U^TKwg+O-!$jpc_k- z(s|?C!4z!2qvw}EXlVt-+S;!YsJTYDvD&!;iY~+Y=ZZmA?)(|!dM_}c5 zZeLwE84O1apQ5S=u%aWn>patM~!ZuesE?a);sD>c)cC%%%i=rk(q+tJ`m1wr`o$Yzhb3! z0{8M39tC2oshtNB!)7jv6+2>z&Bzc|A7v5wTsD#~=x%hr#V>80JNt?!c>GWz-{yCB z`uC-c-m#A1_okJp1F6_x)Su{!hk4QEEq?fBieKR2n4-B44zf>)PxS5?JEVF#4ovR# z1P8m+KwJ{)!OKJZ4=$RA4C=>QlcghcjPUjq3_US4o_~=ek$(I#MsqYiFu?Qc&oo~TN28D#CKrk5C zo|KVawe%k>{V~rsf_|a=!LLHyA^g4;T{yf + + +Generated by Fontastic.me + + + + + + + + + + + diff --git a/website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.ttf b/website/docs/src/luigi-config/styles/fonts/icon-font/icon-font.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0be91403676d49c2cf8a5b9370b69da44aa727c6 GIT binary patch literal 2188 zcmcgtOKcle6uozT9>;bPC*yIN&)9LAPZR9;lX%*aM5#y|hzPA{2$iTnj_Wvq#14ro zT2>XX31q*z^~&nirJp|8N)yQgXvT86c**#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if## zeb~$Lv;eXgDY6N-FQB=Dy>UQG*X%DT(9%7#T9;s;>Ra*d!_wdkB7l^hmY1|qZB&Ou z9kt2VO5%`ylAt8QPvnj$sE$K1T{p`P|o~?;j4B$B%+L? z+-CXcteXED>nGYIrY{y-HNmV)>n+1Z#9wC`lp57?-;6dsL^`3dUz%_ z-ri?-;m($!E)B)1d|8xL;hqHh#|z{uL*B)G{#{D)T8E|OHPaK*{HxD_a~%ItMqbZ@ zo(&VDx6v2f_Z1k2X*N-N0{9G05~}C=d{Z*(nt62JaD9w|&Ewn#<%QYUJ`r8}qJkS)yNu^}dQ9fz|E}=1toQ-G2FVfO0o7~z$d&ej|F)5-Ux@C`?7^5sDPu_q1=#BJSqb+v{3s z`c1Vj)LBnV@V+SO;Yhhv=4a-gji0c(^OT2;HeSry;dNA)W#X22$yrdV{OND5l^IfA zugleP{Pebd*JZwTdUi*oOHuA!kzu4Vd;f|g8DOyN8RJ(<#|Xadw|%`= ziiwZC!n!*h?+RMtPE1yKPR$r9^_ge&f6(@K66hRh`qhHDIj`Pba3EJn31eLvCJ6X) z&%r<(_ul>G{@hVBz25it4_8h`-t}vKD&L+abTt}}Egq&f`nsud?jvuW4v#xlR?rxw z8zUu@rT*ZT9u;-I{>xkEp2{4fC`oN(Pq5=;&MSF?(Ur3KaPKiY0}R)!Wg;1q-1A$t zj1kE*eZJMmujY*<55qq`6Oz4FVbJ;>!rmS#tX~oHNaB&z3O{^ zks<;KIM_#I?0s;dhH((z{heTNp(Ntx7~X^cV{<^v07pJzVedx5udoiZ4Uo -
-
+
+
\ No newline at end of file diff --git a/website/docs/src/routes/docs/[slug].svelte b/website/docs/src/routes/docs/[slug].svelte index 841c411d67..21a719ba9c 100644 --- a/website/docs/src/routes/docs/[slug].svelte +++ b/website/docs/src/routes/docs/[slug].svelte @@ -17,7 +17,7 @@ export let post; - @@ -61,7 +40,5 @@ -
{@html post.contents} -
diff --git a/website/docs/src/template.html b/website/docs/src/template.html index a8422e0bd8..4fabf1e561 100644 --- a/website/docs/src/template.html +++ b/website/docs/src/template.html @@ -32,18 +32,14 @@ initialise the router --> %sapper.scripts% diff --git a/website/docs/src/unified-plugins/rehype-luigi-linkparser.js b/website/docs/src/unified-plugins/rehype-luigi-linkparser.js index 367f472846..315ac8a378 100644 --- a/website/docs/src/unified-plugins/rehype-luigi-linkparser.js +++ b/website/docs/src/unified-plugins/rehype-luigi-linkparser.js @@ -12,7 +12,7 @@ export default function transform () { function modify (node, prop) { if (has(node, prop)) { var parsed = url.parse(node.properties[prop]); - console.log(prop, 'parsed', parsed); + // console.log(prop, 'parsed', parsed); // node.properties[prop] = fn(parsed) // add logic here } diff --git a/website/docs/static/luigi/favicon.png b/website/docs/static/luigi/favicon.png new file mode 100644 index 0000000000000000000000000000000000000000..53e0e60c32ac133fb50ca7013c4cae4707805ddc GIT binary patch literal 1828 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyEa{HEjtmSN`?>!lvI6;x#X;^) z4C~IxyacIC_6YK2V5m}KU}$JzVE6?TYIwoGP-?)y@G60U!Dc zwHdo?d@HMB&df4H$;hdlj*LZxI?N)$lX^V3inEynefw-G>*d9G{by?}o=|Jo#kS<~ zrSRy|tc;7AF;e=I`4}5j+a`+hPtnz0pv)PN(vexBk$m!M_m%Co99By&sIXZ3J>S3p^r= z85m^SL71`s>Bm$C1}0ul7sn8b(^Dt^cD@uKa{OoCQrpy@2LhH%SQfohcebsDhI|Io z+Dj@EudkpyxoTde>Oi~zWe?6;&-;z-($K{%^9cM+;RBE z$+UpDz{u3~c8`AOGiCd(y&L)5s_M+UZC4jp6rV5Lw{YSUqcsZiEGkchHZ17Oe&+9; z?(lHh=Azd-Ki}qP;r`=#E?cPJ<)-zg_P1+&h}-!p^OF6VjO_Ndk`lIEJPsSGUtHo^ z_j^`@P-tqk3o}RCAve47*qw#KOJ~)r-rgd1wOsnd@4xR(%w>E#a4})m(1cYOY=ezt102pJy%W z@S*jVKbzmi6Z7YIy=VRT*KF&w%=_LE2lfV~-I;m4?R|R3Gl}ZOO!@aG-dm`*`plVq z@-r9PdC#f!I6L|9M81iqS$`|8eqyI4wPcTf(NU3=LXvii@|FnA&pJH6_;%gjLwmU1 z#K&YAcHGHWWc~X3Z?3Q}yqUUl<9<9^bmYmA@RbvPd3^S)5`X(?JF}Ic>G!?Ib{snM ziC-dHb3&WjpBPTLC6TMWAO93&y7r^=t;u^W(T5rD4A07ZUcG4R8JndC@{P>X9{QK& z-l&Gc7@Arc8C#hcX&V?=85jsW zpYjkzLvDUbW?Cg~4T-ySVu2dmKsFTTr6z=0MeiXQq^7 zfRtQbqsReNB8jBLH#0Z2q_QBD0qiRMg1mJ5O<{g$=JmdK II;Vst08B)QB>(^b literal 0 HcmV?d00001 diff --git a/website/docs/static/luigi/fonts/icon-font/icon-font.eot b/website/docs/static/luigi/fonts/icon-font/icon-font.eot new file mode 100644 index 0000000000000000000000000000000000000000..1111ccd08a10aafd75ad09d2f34458708b8ce28c GIT binary patch literal 2354 zcmc&#O>7%g5T4mxukF}QVrRWh^JBYC^V1YN{z>e%BvmRB7pj&Ifi99dE?y0U^TKwg+O-!$jpc_k- z(s|?C!4z!2qvw}EXlVt-+S;!YsJTYDvD&!;iY~+Y=ZZmA?)(|!dM_}c5 zZeLwE84O1apQ5S=u%aWn>patM~!ZuesE?a);sD>c)cC%%%i=rk(q+tJ`m1wr`o$Yzhb3! z0{8M39tC2oshtNB!)7jv6+2>z&Bzc|A7v5wTsD#~=x%hr#V>80JNt?!c>GWz-{yCB z`uC-c-m#A1_okJp1F6_x)Su{!hk4QEEq?fBieKR2n4-B44zf>)PxS5?JEVF#4ovR# z1P8m+KwJ{)!OKJZ4=$RA4C=>QlcghcjPUjq3_US4o_~=ek$(I#MsqYiFu?Qc&oo~TN28D#CKrk5C zo|KVawe%k>{V~rsf_|a=!LLHyA^g4;T{yf + + +Generated by Fontastic.me + + + + + + + + + + + diff --git a/website/docs/static/luigi/fonts/icon-font/icon-font.ttf b/website/docs/static/luigi/fonts/icon-font/icon-font.ttf new file mode 100644 index 0000000000000000000000000000000000000000..0be91403676d49c2cf8a5b9370b69da44aa727c6 GIT binary patch literal 2188 zcmcgtOKcle6uozT9>;bPC*yIN&)9LAPZR9;lX%*aM5#y|hzPA{2$iTnj_Wvq#14ro zT2>XX31q*z^~&nirJp|8N)yQgXvT86c**#>HwE9XX!&IjN?MZ8 z*8o1gyjH)W5%mCn3*5F^D;4FS1WFeEmbK!Qb$Xdzh5saQyjol1Zi5P;nP?(Pv`#N}3P{x5NeW^8NrPsmV;Q?7zM{~3-|XkcAXw}D zsbT^LLpaew>^l#Lr!Zti)qGFU@BiJ(*}*U zfOc|fAl5PHOZfdwjm(1`v4JUDYwU?+xmoVmT3B^Bn56hl_Hsaqk9HgzJ|*i-Lu1`~xVKdf#l>#w;_UL@IA}T<)P=hy zOA|Ch=ZS1XOZ1K8pXKOCK5KTdfTOK~63CY|4Q+@8%&CGBs9(g4vw#smNjVQAS2g=;0mA>$+ZjRI*z(`Kl_*4{bx>N z?Qdbu$EcsEwHtM!s%}hdBp(HGfomUnEWRBIheNw#Lh?(F{hebU@_Z{C6jU($MN3-? zeqRb(aQMHQWb%E!PXUTzR2B=<&tf4})(kUibAF^RG0)o#Ml7&fhvbr@0uIGHyY)cK zXy9!jkJw@ZDM;77JAuiMJ#_B}$+>Y{Tc%#R>hTI$>DdZmzVd7p^ZUWGHSoXF3YDlvRYWg2x=yrGs#TLqwJOX5&V>apMCc8w zP?_R5gegixpGJE;nakTqpFva-(P>zxhziJGsBKir@oXv`KOH|96tFf$$@dLZm1k5ZeN@yH14IV6LOL|QxJIc;VPqs(rqsYxU(j%PEA zL@$!0LZumxSw!T0=rEByQbbsr*sJZo{hjkU_kMr({(irE?mhPx<3T2Sczb&QAp069 z0BBeXfLI^@Zw_QK4gh2mq!j>Ehzr|ffK2wLz}RxQTN9#nIbzobXGbS8^kuAThz>9W ziXK#BA^-?)sGT7+PwfCv5R=Y^xuT(VfNQSELG&?32t63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new file mode 100644 index 0000000000..27b4100f44 --- /dev/null +++ b/website/docs/static/luigi/logo.svg @@ -0,0 +1,10 @@ + + + + + + + + + + From ed1b2aa5bd5c674dcbd4e6d160f2b0b49819f3ea Mon Sep 17 00:00:00 2001 From: Maryna Khromova <46446373+marynaKhromova@users.noreply.github.com> Date: Thu, 7 Nov 2019 17:01:27 +0100 Subject: [PATCH 03/30] content styles --- website/docs/public/index.html | 4 +- .../src/luigi-config/extended/navigation.js | 21 ++--- .../src/luigi-config/extended/settings.js | 2 +- .../docs/src/luigi-config/styles/index.scss | 64 +++++++++++++- website/docs/src/routes/_layout.svelte | 87 ++++++++++++++----- website/docs/static/luigi/index.html | 1 + 6 files changed, 142 insertions(+), 37 deletions(-) diff --git a/website/docs/public/index.html b/website/docs/public/index.html index 4188ca059c..4eedaac360 100644 --- a/website/docs/public/index.html +++ b/website/docs/public/index.html @@ -2,13 +2,15 @@ Luigi Core + + - + diff --git a/website/docs/src/luigi-config/extended/navigation.js b/website/docs/src/luigi-config/extended/navigation.js index f550ed98ac..7fe83eaefc 100644 --- a/website/docs/src/luigi-config/extended/navigation.js +++ b/website/docs/src/luigi-config/extended/navigation.js @@ -22,6 +22,12 @@ const getDocuItems = () => { class Navigation { nodes = [ + { + pathSegment: 'docs', + label: 'Documentation', + viewUrl: baseUrl + '/docs', + children: getDocuItems() + }, { label: 'About Luigi', externalLink: { @@ -29,33 +35,24 @@ class Navigation { sameWindow: true } }, - { - pathSegment: 'docs', - label: 'Documentation', - viewUrl: baseUrl + '/docs', - children: getDocuItems() - }, { label: 'Twitter', externalLink: { - url: 'https://twitter.com/luigiprojectio', - sameWindow: false + url: 'https://twitter.com/luigiprojectio' }, icon: 'twitter' }, { label: 'Slack', externalLink: { - url: 'https://slack.luigi-project.io', - sameWindow: false + url: 'https://slack.luigi-project.io' }, icon: 'slack' }, { label: 'Github', externalLink: { - url: 'https://github.com/SAP/luigi', - sameWindow: false + url: 'https://github.com/SAP/luigi' }, icon: 'github' } diff --git a/website/docs/src/luigi-config/extended/settings.js b/website/docs/src/luigi-config/extended/settings.js index 5a0537de3d..2dd7c8d51f 100644 --- a/website/docs/src/luigi-config/extended/settings.js +++ b/website/docs/src/luigi-config/extended/settings.js @@ -7,7 +7,7 @@ class Settings { }; responsiveNavigation = 'simpleMobileOnly'; // Options: simple | simpleMobileOnly | semiCollapsible - // sideNavFooterText = `Luigi Version: ${version || 'unknown'}`; + sideNavFooterText = 'Copyright 2019.'; // hideNavigation = true // backdropDisabled = true } diff --git a/website/docs/src/luigi-config/styles/index.scss b/website/docs/src/luigi-config/styles/index.scss index 57b3f89ef1..b4fc9f8483 100644 --- a/website/docs/src/luigi-config/styles/index.scss +++ b/website/docs/src/luigi-config/styles/index.scss @@ -144,7 +144,8 @@ $side-nav-width: 320px; border-radius: 0; transform: none; background-color: $secondary-color; - padding: 0 30px; + margin-top: -10px; + padding: 10px 30px; &[aria-hidden='false'] { left: 0; @@ -254,17 +255,34 @@ $side-nav-width: 320px; @media screen and (max-width: 599px) { .lui-burger { + width: 50px; + height: 50px; + text-align: center; position: fixed; bottom: 20px; left: 20px; color: black; z-index: 20; transition: left 0.1s linear; + background-color: white; + padding: 15px; + border-radius: 50%; + box-shadow: rgba(137, 165, 199, 0.42) 0px 1px 26px 0px; + cursor: pointer; + + &:before { + content: "\e1c0"; + transition: transform 0.4s ease; + } } &.lui-leftNavToggle { .lui-burger { left: calc(#{$side-nav-width} + 20px); + + &:before { + transform: rotateZ(-180deg); + } } } } @@ -323,8 +341,50 @@ $side-nav-width: 320px; content: "\61"; } + .fd-side-nav__subitem { + padding: 10px 0; + } + + .fd-side-nav__link, + .fd-side-nav__sublink { + font-size: 15px; + padding: 1px 10px; + border-left: 2px solid transparent; + + &:hover, + &.is-selected { + border-color: $primary-color; + color: $secondary-color; + background: none; + font-weight: 400; + + &:before { + display: none; + } + } + } + + .fd-side-nav__link .fd-side-nav__icon { + display: none; + } + + .lui-category { + text-transform: uppercase; + border: none; + font-size: 12px; + padding: 8px 0; + } + + .fd-side-nav { + padding: 30px; + + @media screen and (min-width: 1024px) { + padding: 93px 40px 0; + } + } + .fd-side-nav__group { - padding: 95px 10px; + margin-bottom: 10px; } } diff --git a/website/docs/src/routes/_layout.svelte b/website/docs/src/routes/_layout.svelte index bf8b995242..65a3ed3cc6 100644 --- a/website/docs/src/routes/_layout.svelte +++ b/website/docs/src/routes/_layout.svelte @@ -39,6 +39,16 @@ //Content styles + .h2Wrapper { + margin-top: 45px; + padding-top: 40px; + border-top: 1px solid $powder-blue; + } + + .h3Wrapper { + margin-top: 45px; + } + p, ol, ul, @@ -59,9 +69,6 @@ h2 { font-size: 28px; line-height: 30px; - margin-top: 40px; - padding-top: 40px; - border-top: 1px solid $powder-blue; } h3 { @@ -71,28 +78,42 @@ ul { list-style: none; - } - - li { - - list-style: none; + padding: 0 0 0 15px; - &:before { - content: ''; - width: 6px; - height: 6px; - border-radius: 50%; - display: inline-block; - background: $primary-color; - vertical-align: middle; - position: absolute; - left: 0; - top: 12px; + ul { + margin-bottom: 0; + padding-left: 0; } - position: relative; - padding-left: 20px; + li { + + list-style: none; + + &:before { + content: ''; + width: 6px; + height: 6px; + border-radius: 50%; + display: inline-block; + background: $primary-color; + vertical-align: middle; + position: absolute; + left: 0; + top: 12px; + } + + position: relative; + padding-left: 20px; + } + } + + ol { + padding: 0 0 0 18px; + ol { + margin-bottom: 0; + padding-left: 0; + } } strong { @@ -101,6 +122,11 @@ a { color: $secondary-color; + + &:hover, + &:active { + color: $primary-color; + } } pre { @@ -113,6 +139,13 @@ box-sizing: border-box; border-radius: 6px; margin-bottom: 40px; + + code { + word-break: normal; + white-space: pre; + overflow-wrap: normal; + background: none; + } } img { @@ -120,6 +153,18 @@ max-width: 100%; border: none; } + + code { + width: 100%; + white-space: pre-wrap; + overflow-wrap: break-word; + background-color: rgba(27, 31, 35, 0.05); + padding: 0.2em 0.4em; + margin: 0px; + border-radius: 3px; + font-size: 14px; + font-family: 'Open Sans', sans-serif; + } } diff --git a/website/docs/static/luigi/index.html b/website/docs/static/luigi/index.html index 0c42aefac3..4eedaac360 100644 --- a/website/docs/static/luigi/index.html +++ b/website/docs/static/luigi/index.html @@ -2,6 +2,7 @@ Luigi Core + Date: Thu, 7 Nov 2019 18:12:50 +0100 Subject: [PATCH 04/30] Docu app changes --- .../src/luigi-config/extended/navigation.js | 39 ++++++++++++++++++- website/docs/src/routes/docs/_parser.js | 34 ++++++++++++++++ website/docs/src/routes/docs/index.json.js | 4 +- website/docs/src/routes/docs/index.svelte | 16 ++------ .../rehype-luigi-linkparser.js | 2 +- 5 files changed, 78 insertions(+), 17 deletions(-) diff --git a/website/docs/src/luigi-config/extended/navigation.js b/website/docs/src/luigi-config/extended/navigation.js index bb042d60f9..545366a68c 100644 --- a/website/docs/src/luigi-config/extended/navigation.js +++ b/website/docs/src/luigi-config/extended/navigation.js @@ -6,7 +6,7 @@ if (location.port == '4000') { } const getDocuItems = () => { - return fetch('/navigation-children.json') + return fetch('/navigation-children2.json') .then(function(response) { return response.json(); }) @@ -24,10 +24,45 @@ class Navigation { nodes = [ { pathSegment: 'docs', - label: 'Overview', + label: 'Documentation', viewUrl: baseUrl + '/docs', children: getDocuItems() + }, + { + label: 'About Luigi', + defaultChildNode: 'docs', + externalLink: { + url: 'https://luigi-project.io/about', + sameWindow: true + } + }, + { + label: 'Twitter', + externalLink: { + url: 'https://twitter.com/luigiprojectio' + }, + icon: 'twitter' + }, + { + label: 'Slack', + externalLink: { + url: 'https://slack.luigi-project.io' + }, + icon: 'slack' + }, + { + label: 'Github', + externalLink: { + url: 'https://github.com/SAP/luigi' + }, + icon: 'github' } + // { + // pathSegment: 'docs', + // label: 'Overview', + // viewUrl: baseUrl + '/docs', + // children: getDocuItems() + // } ]; // getContextSwitcherActions = () => { diff --git a/website/docs/src/routes/docs/_parser.js b/website/docs/src/routes/docs/_parser.js index 21c00ee952..e440140f80 100644 --- a/website/docs/src/routes/docs/_parser.js +++ b/website/docs/src/routes/docs/_parser.js @@ -11,6 +11,16 @@ export function getParsedDocs() { return Promise.resolve(JSON.stringify(parsedDocs)); }); } +let parsedReadMeDoc; +export function getParsedReadMeDoc() { + if (parsedReadMeDoc) { + return Promise.resolve(JSON.stringify(parsedReadMeDoc)); + } + return setParsedReadMeDoc().then((doc) => { + parsedReadMeDoc = doc; + return Promise.resolve(JSON.stringify(parsedReadMeDoc)); + }); +} function setParsedDocs() { const dir = './../../docs'; @@ -52,4 +62,28 @@ function setParsedDocs() { // return for sapper return Promise.resolve(files); }); +} + +function setParsedReadMeDoc() { + const dir = './../../docs'; + let parsingArr; + readdirSync(dir) + .find(name => { + if(name == 'README.md') { + const mdContent = readFileSync(dir + '/' + name); + parsingArr = new Promise((resolve) => { + MarkdownSvc.process(mdContent).then((contents) => { + resolve({ + contents + }); + }) + }); + } + }); + + return parsingArr + .then((file) => { + // return for sapper + return file; + }); } \ No newline at end of file diff --git a/website/docs/src/routes/docs/index.json.js b/website/docs/src/routes/docs/index.json.js index 4198925fcf..5b078eb1e0 100644 --- a/website/docs/src/routes/docs/index.json.js +++ b/website/docs/src/routes/docs/index.json.js @@ -1,12 +1,12 @@ -import { getParsedDocs } from './_parser'; +import { getParsedReadMeDoc } from './_parser'; export function get(req, res) { res.writeHead(200, { 'Content-Type': 'application/json' }); - getParsedDocs().then((contents) => { + getParsedReadMeDoc().then((contents) => { res.end(contents); }); } \ No newline at end of file diff --git a/website/docs/src/routes/docs/index.svelte b/website/docs/src/routes/docs/index.svelte index 52592cc30f..d87cef8985 100644 --- a/website/docs/src/routes/docs/index.svelte +++ b/website/docs/src/routes/docs/index.svelte @@ -1,14 +1,14 @@