Replace landing page MDX with page component

This commit is contained in:
Marcus Blättermann 2022-11-17 16:33:23 +01:00
parent aebe52efa7
commit 1bfff8390a
No known key found for this signature in database
GPG Key ID: A1E1F04008AC450D
3 changed files with 16 additions and 24 deletions

View File

@ -1,6 +0,0 @@
---
---
import Landing from 'widgets/landing.js'
<Landing />

View File

@ -11,24 +11,24 @@ import {
LandingDemo,
LandingBannerGrid,
LandingBanner,
} from '../components/landing'
import { H2 } from '../components/typography'
import { InlineCode } from '../components/code'
import { Ul, Li } from '../components/list'
import Button from '../components/button'
import Link from '../components/link'
} from '../src/components/landing'
import { H2 } from '../src/components/typography'
import { InlineCode } from '../src/components/code'
import { Ul, Li } from '../src/components/list'
import Button from '../src/components/button'
import Link from '../src/components/link'
import QuickstartTraining from '../widgets/quickstart-training'
import Project from '../widgets/project'
import Features from '../widgets/features'
import Layout from '../components/layout'
import courseImage from '../../public/images/course.jpg'
import prodigyImage from '../../public/images/prodigy_overview.jpg'
import projectsImage from '../../public/images/projects.png'
import tailoredPipelinesImage from '../../public/images/spacy-tailored-pipelines_wide.png'
import { nightly, legacy } from '../../meta/dynamicMeta'
import QuickstartTraining from '../src/widgets/quickstart-training'
import Project from '../src/widgets/project'
import Features from '../src/widgets/features'
import Layout from '../src/templates'
import courseImage from '../public/images/course.jpg'
import prodigyImage from '../public/images/prodigy_overview.jpg'
import projectsImage from '../public/images/projects.png'
import tailoredPipelinesImage from '../public/images/spacy-tailored-pipelines_wide.png'
import { nightly, legacy } from '../meta/dynamicMeta'
import Benchmarks from '../../docs/usage/_benchmarks-models.mdx'
import Benchmarks from '../docs/usage/_benchmarks-models.mdx'
function getCodeExample(nightly) {
return `# pip install -U ${nightly ? 'spacy-nightly --pre' : 'spacy'}

View File

@ -16,7 +16,6 @@ import { Integration, IntegrationLogo } from './widgets/integration.js'
import { Logos, Colors, Patterns } from './widgets/styleguide'
import Changelog from './widgets/changelog.js'
import Features from './widgets/features.js'
import Landing from './widgets/landing.js'
import Languages from './widgets/languages.js'
import QuickstartInstall from './widgets/quickstart-install.js'
import QuickstartTraining from './widgets/quickstart-training.js'
@ -85,7 +84,6 @@ export const remarkComponents = {
Changelog,
Features,
Landing,
Languages,
QuickstartInstall,
QuickstartTraining,