From 0380cdf0b2bb5381b5b8bb41783aa38c395bc3dc Mon Sep 17 00:00:00 2001 From: Oliver Windall Juhl <59018053+olivermrbl@users.noreply.github.com> Date: Mon, 22 Nov 2021 17:01:18 +0100 Subject: [PATCH] docs: Adds new index page and design tweaks (#833) --- docs/content/guides/carts-in-medusa.md | 4 +- docs/content/{how-to => guides}/plugins.md | 2 +- docs/content/homepage.mdx | 89 ++++++++++++++++++ .../tutorial/2-adding-custom-functionality.md | 46 ++++----- .../api/__tests__/admin/customer.js | 49 ++++++++++ .../routes/admin/customers/create-customer.ts | 2 +- www/docs/docusaurus.config.js | 27 +++--- www/docs/package.json | 3 +- www/docs/sidebars.js | 29 ++---- www/docs/src/css/custom.css | 87 +++++++++++++++-- www/docs/src/pages/index.js | 20 ---- www/docs/src/theme/SearchBar/index.js | 28 +++--- www/docs/src/theme/SearchBar/styles.css | 3 + .../src/theme/SearchBar/styles.module.css | 2 - www/docs/static/img/logo.png | Bin 33695 -> 84823 bytes www/docs/static/img/logo.svg | 22 ++--- www/docs/yarn.lock | 11 +++ 17 files changed, 305 insertions(+), 119 deletions(-) rename docs/content/{how-to => guides}/plugins.md (99%) create mode 100644 docs/content/homepage.mdx delete mode 100644 www/docs/src/pages/index.js diff --git a/docs/content/guides/carts-in-medusa.md b/docs/content/guides/carts-in-medusa.md index 7d7e673954..c742989ec9 100644 --- a/docs/content/guides/carts-in-medusa.md +++ b/docs/content/guides/carts-in-medusa.md @@ -1,8 +1,8 @@ --- -title: Carts in Medusa +title: Carts --- -# Carts in Medusa +# Carts In Medusa a Cart serves the purpose of collecting the information needed to create an Order, including what products to purchase, what address to send the products to and which payment method the purchase will be processed by. diff --git a/docs/content/how-to/plugins.md b/docs/content/guides/plugins.md similarity index 99% rename from docs/content/how-to/plugins.md rename to docs/content/guides/plugins.md index 8d8c837123..db5b6435f5 100644 --- a/docs/content/how-to/plugins.md +++ b/docs/content/guides/plugins.md @@ -1,5 +1,5 @@ --- -title: Plugins in Medusa +title: Plugins --- # Plugins diff --git a/docs/content/homepage.mdx b/docs/content/homepage.mdx new file mode 100644 index 0000000000..f5162ce65c --- /dev/null +++ b/docs/content/homepage.mdx @@ -0,0 +1,89 @@ +--- +id: homepage +title: Introduction +description: 'What is Medusa?' +slug: / +hide_table_of_contents: true +--- + +import useBaseUrl from '@docusaurus/useBaseUrl' +import Link from '@docusaurus/Link' +import Tabs from '@theme/Tabs' +import TabItem from '@theme/TabItem' + +Medusa is an open-source Shopify alternative. + +It provides you with the primitives to create amazing digital commerce experiences. + +
Set up your local development environment
+Create custom endpoints, services, or subscribers.
+Add or build a plugin to make your engine more powerful.
+Use one of our guides to deploy your Medusa project in seconds.
+A short guide to get you quickly started.
+Guides and walkthroughs of concepts, tools, deployment and APIs.
+NI>G
zw($bZk*C@ wm|D-c1?YrmhFM*zh4i0b-AlLAm&g_|nmU&}=(|Amcv8BPxO3bFV%+m~~)
zE%C7$_MAPX`RN&6nLf0rYB)& z&^&REb9tlPr#{;$-s{W^b{f$l+wk0wFf8rXb#<#`R}wY2Nm3$}tw}`N;ir
zTtS_+NdUzcK25#VQbvhDXg>&f0+m#}4-TY?eAiwc{l$>Myp5f`lW1uoNr0s-fGk
zZ@hu*keu%I*!V^lt`06+Xz|)9o8&<_@x0wR=9w_DE547w#R+xYyR%eSW$9E%H%o
z?gEwnVg>nD_!+Y>6|cRyUpjLrNz3F!)cVR*^ tZgI#ia_FeO$TmY9-$a55NStnB@q*r~ip!&6~)YT0z#R;BCjrYI|gZvzE
z3=q@9%8(Yx+NC?6Ko)9}KQli4ZFqw*L#L4XO**KFv%WU&9ygf4PZbE6J_}n(8@ejo
zKjX9Bzhk1=bI(h2bs__PN@*fiUCet-wtYvGs3|_O(etM=!U3A((voT&7ZuFq)g-_d
zq!|6yw`V@Moh?<3^6zz~u4F_|5TaP0~J$a7@4`CIi=asqDn7y8FtMVb0%*caeZapBjL=srmSu5Yz|>yZ>3~dX6c{@Xm!$GD@pqA%(^2lFF
B!_9u);kj`wPhJZX4Ek-rvu2+35;WibDRT<%8$tp?
%j@}*CKgH4