api-ref: custom API reference (#4770)

* initialized next.js project

* finished markdown sections

* added operation schema component

* change page metadata

* eslint fixes

* fixes related to deployment

* added response schema

* resolve max stack issue

* support for different property types

* added support for property types

* added loading for components

* added more loading

* type fixes

* added oneOf type

* removed console

* fix replace with push

* refactored everything

* use static content for description

* fixes and improvements

* added code examples section

* fix path name

* optimizations

* fixed tag navigation

* add support for admin and store references

* general enhancements

* optimizations and fixes

* fixes and enhancements

* added search bar

* loading enhancements

* added loading

* added code blocks

* added margin top

* add empty response text

* fixed oneOf parameters

* added path and query parameters

* general fixes

* added base path env variable

* small fix for arrays

* enhancements

* design enhancements

* general enhancements

* fix isRequired

* added enum values

* enhancements

* general fixes

* general fixes

* changed oas generation script

* additions to the introduction section

* added copy button for code + other enhancements

* fix response code block

* fix metadata

* formatted store introduction

* move sidebar logic to Tags component

* added test env variables

* fix code block bug

* added loading animation

* added expand param + loading

* enhance operation loading

* made responsive + improvements

* added loading provider

* fixed loading

* adjustments for small devices

* added sidebar label for endpoints

* added feedback component

* fixed analytics

* general fixes

* listen to scroll for other headings

* added sample env file

* update api ref files + support new fields

* fix for external docs link

* added new sections

* fix last item in sidebar not showing

* move docs content to www/docs

* change redirect url

* revert change

* resolve build errors

* configure rewrites

* changed to environment variable url

* revert changing environment variable name

* add environment variable for API path

* fix links

* fix tailwind settings

* remove vercel file

* reconfigured api route

* move api page under api

* fix page metadata

* fix external link in navigation bar

* update api spec

* updated api specs

* fixed google lint error

* add max-height on request samples

* add padding before loading

* fix for one of name

* fix undefined types

* general fixes

* remove response schema example

* redesigned navigation bar

* redesigned sidebar

* fixed up paddings

* added feedback component + report issue

* fixed up typography, padding, and general styling

* redesigned code blocks

* optimization

* added error timeout

* fixes

* added indexing with algolia + fixes

* fix errors with algolia script

* redesign operation sections

* fix heading scroll

* design fixes

* fix padding

* fix padding + scroll issues

* fix scroll issues

* improve scroll performance

* fixes for safari

* optimization and fixes

* fixes to docs + details animation

* padding fixes for code block

* added tab animation

* fixed incorrect link

* added selection styling

* fix lint errors

* redesigned details component

* added detailed feedback form

* api reference fixes

* fix tabs

* upgrade + fixes

* updated documentation links

* optimizations to sidebar items

* fix spacing in sidebar item

* optimizations and fixes

* fix endpoint path styling

* remove margin

* final fixes

* change margin on small devices

* generated OAS

* fixes for mobile

* added feedback modal

* optimize dark mode button

* fixed color mode useeffect

* minimize dom size

* use new style system

* radius and spacing design system

* design fixes

* fix eslint errors

* added meta files

* change cron schedule

* fix docusaurus configurations

* added operating system to feedback data

* change content directory name

* fixes to contribution guidelines

* revert renaming content

* added api-reference to documentation workflow

* fixes for search

* added dark mode + fixes

* oas fixes

* handle bugs

* added code examples for clients

* changed tooltip text

* change authentication to card

* change page title based on selected section

* redesigned mobile navbar

* fix icon colors

* fix key colors

* fix medusa-js installation command

* change external regex in algolia

* change changeset

* fix padding on mobile

* fix hydration error

* update depedencies
This commit is contained in:
Shahed Nasser authored and GitHub committed 2023-08-15 18:07:54 +03:00
1 parent 16249ec280
commit 914d773d3a
3270 files changed
+22075 -192064

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 162 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

-9
View File
@@ -1,9 +0,0 @@
<svg width="20" height="22" viewBox="0 0 20 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.4002 3.79623L12.5702 1.017C10.9899 0.105417 9.05347 0.105417 7.47315 1.017L2.62091 3.79623C1.06285 4.70781 0.0834961 6.39758 0.0834961 8.19852V13.7792C0.0834961 15.6024 1.06285 17.2699 2.62091 18.1815L7.45089 20.983C9.03121 21.8945 10.9677 21.8945 12.548 20.983L17.378 18.1815C18.9583 17.2699 19.9154 15.6024 19.9154 13.7792V8.19852C19.9599 6.39758 18.9805 4.70781 17.4002 3.79623ZM10.0106 15.9581C7.27283 15.9581 5.04703 13.7347 5.04703 11C5.04703 8.26522 7.27283 6.04184 10.0106 6.04184C12.7483 6.04184 14.9964 8.26522 14.9964 11C14.9964 13.7347 12.7706 15.9581 10.0106 15.9581Z" fill="url(#paint0_linear_5058_7779)"/>
<defs>
<linearGradient id="paint0_linear_5058_7779" x1="19.9168" y1="0.333313" x2="-1.35993" y2="20.1141" gradientUnits="userSpaceOnUse">
<stop stop-color="#A78BFA"/>
<stop offset="1" stop-color="#6D28D9"/>
</linearGradient>
</defs>
</svg>

Before

Width:  |  Height:  |  Size: 970 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 570 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 921 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.8 KiB

-3
View File
@@ -1,3 +0,0 @@
<svg width="20" height="22" viewBox="0 0 20 22" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M17.4002 3.79641L12.5702 1.01719C10.9899 0.1056 9.05347 0.1056 7.47315 1.01719L2.62091 3.79641C1.06285 4.708 0.0834961 6.39777 0.0834961 8.1987V13.7794C0.0834961 15.6026 1.06285 17.2701 2.62091 18.1817L7.45089 20.9831C9.03121 21.8947 10.9677 21.8947 12.548 20.9831L17.378 18.1817C18.9583 17.2701 19.9154 15.6026 19.9154 13.7794V8.1987C19.9599 6.39777 18.9805 4.708 17.4002 3.79641ZM10.0106 15.9583C7.27283 15.9583 5.04703 13.7349 5.04703 11.0002C5.04703 8.2654 7.27283 6.04202 10.0106 6.04202C12.7483 6.04202 14.9964 8.2654 14.9964 11.0002C14.9964 13.7349 12.7706 15.9583 10.0106 15.9583Z" fill="#111827"/>
</svg>

Before

Width:  |  Height:  |  Size: 719 B

+5
View File
@@ -0,0 +1,5 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<g id="magnifying-glass">
<path id="Vector" d="M17.4997 17.5001L13.1688 13.1693M13.1688 13.1693C14.341 11.9972 14.9995 10.4074 14.9995 8.74972C14.9995 7.09205 14.341 5.50228 13.1688 4.33014C11.9967 3.15799 10.4069 2.49949 8.74926 2.49949C7.09159 2.49949 5.50182 3.15799 4.32967 4.33014C3.15753 5.50228 2.49902 7.09205 2.49902 8.74972C2.49902 10.4074 3.15753 11.9972 4.32967 13.1693C5.50182 14.3414 7.09159 15 8.74926 15C10.4069 15 11.9967 14.3414 13.1688 13.1693V13.1693Z" stroke="#6E6E6E" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 666 B

+3 -1
View File
@@ -1,3 +1,5 @@
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M16.0005 16.0005L12.5359 12.5359M12.5359 12.5359C13.4736 11.5981 14.0004 10.3263 14.0004 9.00019C14.0004 7.67406 13.4736 6.40224 12.5359 5.46452C11.5981 4.5268 10.3263 4 9.00019 4C7.67406 4 6.40224 4.5268 5.46452 5.46452C4.5268 6.40224 4 7.67406 4 9.00019C4 10.3263 4.5268 11.5981 5.46452 12.5359C6.40224 13.4736 7.67406 14.0004 9.00019 14.0004C10.3263 14.0004 11.5981 13.4736 12.5359 12.5359V12.5359Z" stroke="#706F78" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
<g id="magnifying-glass">
<path id="Vector" d="M17.4997 17.5001L13.1688 13.1693M13.1688 13.1693C14.341 11.9972 14.9995 10.4074 14.9995 8.74972C14.9995 7.09205 14.341 5.50228 13.1688 4.33014C11.9967 3.15799 10.4069 2.49949 8.74926 2.49949C7.09159 2.49949 5.50182 3.15799 4.32967 4.33014C3.15753 5.50228 2.49902 7.09205 2.49902 8.74972C2.49902 10.4074 3.15753 11.9972 4.32967 13.1693C5.50182 14.3414 7.09159 15 8.74926 15C10.4069 15 11.9967 14.3414 13.1688 13.1693V13.1693Z" stroke="#9CA3AF" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 600 B

After

Width:  |  Height:  |  Size: 666 B