mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
fix formatting on old docs
This commit is contained in:
1 parent
5c8f233ad2
commit
2ad16dcbc5
5 files changed
+245
-563
No files matched your search
@@ -3,10 +3,16 @@ import { useTheme } from 'common/Providers'
|
||||
import Image from 'next/image'
|
||||
import Link from 'next/link'
|
||||
import { useRouter } from 'next/router'
|
||||
import React from 'react'
|
||||
import { IconChevronLeft } from '~/../../packages/ui'
|
||||
import * as NavItems from './NavigationMenu.constants'
|
||||
|
||||
const NavigationMenuGuideList = ({ currentLevel, id, setLevel }) => {
|
||||
interface Props {
|
||||
currentLevel: string
|
||||
id: string
|
||||
setLevel?: any
|
||||
}
|
||||
const NavigationMenuGuideList: React.FC<Props> = ({ currentLevel, id, setLevel }) => {
|
||||
const router = useRouter()
|
||||
const { isDarkMode } = useTheme()
|
||||
|
||||
@@ -116,7 +122,7 @@ const NavigationMenuGuideList = ({ currentLevel, id, setLevel }) => {
|
||||
<button
|
||||
className={props.className}
|
||||
onClick={() => {
|
||||
if (props.parent) setLevel(props.parent)
|
||||
if (props.parent && setLevel) setLevel(props.parent)
|
||||
}}
|
||||
>
|
||||
{props.children}
|
||||
|
||||
@@ -155,7 +155,7 @@ const mergeUnion = (paramDefinition: TsDoc.TypeDefinition) => {
|
||||
}
|
||||
|
||||
const methodListGroup = (items) => `
|
||||
<ul className="method-list-group">
|
||||
<ul className="method-list-group not-prose">
|
||||
${items}
|
||||
</ul>
|
||||
`
|
||||
|
||||
@@ -35,7 +35,7 @@ toc_max_heading_level: 3
|
||||
<% if(operation.parameters && operation.parameters.filter((parameter) => parameter.in === 'path').length > 0){ %>
|
||||
#### Path Parameters
|
||||
|
||||
<ul className="method-list-group">
|
||||
<ul className="method-list-group not-prose">
|
||||
<% operation.parameters
|
||||
.filter((parameter) => parameter.in === 'path').forEach(function(parameter){ %>
|
||||
<li className="method-list-item">
|
||||
@@ -68,7 +68,7 @@ toc_max_heading_level: 3
|
||||
|
||||
<% if(operation.parameters && operation.parameters.filter((parameter) => parameter.in === 'header').length > 0){ %>
|
||||
#### Header Parameters
|
||||
<ul className="method-list-group">
|
||||
<ul className="method-list-group not-prose">
|
||||
<% operation.parameters
|
||||
.filter((parameter) => parameter.in === 'header').forEach(function(parameter){ %>
|
||||
<li className="method-list-item">
|
||||
|
||||
@@ -22,7 +22,7 @@ toc_max_heading_level: 3
|
||||
|
||||
<%- parameter.description %>
|
||||
|
||||
<ul class="method-list-group">
|
||||
<ul class="method-list-group not-prose">
|
||||
<li class="method-list-item-label flex items-center gap-4">Required: <code><%= parameter.required %></code></li>
|
||||
<li class="method-list-item-label flex items-center gap-4">Default: <code><%- parameter?.default ? parameter?.default : 'None' %></code></li><% if(parameter?.links?.length){ %>
|
||||
<li>
|
||||
|
||||
+233
-557
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user