Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Remove references to new_docs

Terry Sutton0d93c8b5e481
diff --git a/apps/docs/components/reference/RefSectionHandler.tsx b/apps/docs/components/reference/RefSectionHandler.tsx
index d54e5d616bb..8f981bcbb91 100644
--- a/apps/docs/components/reference/RefSectionHandler.tsx
+++ b/apps/docs/components/reference/RefSectionHandler.tsx
@@ -24,12 +24,10 @@ const RefSectionHandler = (props) => {
const slug = router.query.slug[0]
- const isNewDocs = process.env.NEXT_PUBLIC_NEW_DOCS === 'true'
-
// When user lands on a url like http://supabase.com/docs/reference/javascript/sign-up
// find the #sign-up element and scroll to that
useEffect(() => {
- if (isNewDocs && document && slug !== 'start') {
+ if (document && slug !== 'start') {
document.querySelector(`#${slug}`) && document.querySelector(`#${slug}`).scrollIntoView()
}
})
diff --git a/apps/docs/lib/mdx/handleRefStaticProps.tsx b/apps/docs/lib/mdx/handleRefStaticProps.tsx
index c9c47b4496d..c97245387f9 100644
--- a/apps/docs/lib/mdx/handleRefStaticProps.tsx
+++ b/apps/docs/lib/mdx/handleRefStaticProps.tsx
@@ -1,33 +1,12 @@
-import generateOldRefMarkdown from '~/lib/mdx/generateOldRefMarkdown'
import generateRefMarkdown from '~/lib/mdx/generateRefMarkdown'
-async function handleRefStaticProps(sections, params, librarypath, urlPath) {
+async function handleRefStaticProps(sections, librarypath) {
let markdownContent = await generateRefMarkdown(sections, librarypath)
- /*
- * old content generation
- * this is for grabbing to old markdown files
- */
-
- let slug
- if (params.slug.length > 1) {
- slug = `docs/reference${urlPath}/${params.slug.join('/')}`
- } else {
- slug = `docs/reference${urlPath}/${params.slug[0]}`
- }
-
- /*
- * handle old ref pages
- */
- if (process.env.NEXT_PUBLIC_NEW_DOCS === 'false') {
- const oldMarkdown = await generateOldRefMarkdown(slug)
- return oldMarkdown
- } else {
- return {
- props: {
- docs: markdownContent,
- },
- }
+ return {
+ props: {
+ docs: markdownContent,
+ },
}
}
diff --git a/apps/docs/pages/guides/auth/overview.mdx b/apps/docs/pages/guides/auth/overview.mdx
index 97044096e13..d46b0eb3e9d 100644
--- a/apps/docs/pages/guides/auth/overview.mdx
+++ b/apps/docs/pages/guides/auth/overview.mdx
@@ -1,5 +1,5 @@
import Layout from '~/layouts/DefaultGuideLayout'
-import NewContent from '~/pages/new/auth.mdx'
+
import { useRouter } from 'next/router'
export const meta = {
@@ -174,12 +174,6 @@ When users sign up, Supabase assigns them a unique ID. You can reference this ID
<source src="/docs/videos/auth-zoom2.mp4" type="video/mp4" muted playsInline />
</video>
-export const Page = ({ children }) => {
- const router = useRouter()
- if (process.env.NEXT_PUBLIC_NEW_DOCS === 'true' && !router.asPath.includes('overview')) {
- return NewContent()
- }
- return <Layout meta={meta} children={children} />
-}
+export const Page = ({ children }) => <Layout meta={meta} children={children} />
export default Page