diff --git a/website/docs/index.mdx b/website/docs/index.mdx deleted file mode 100644 index 48e487d08..000000000 --- a/website/docs/index.mdx +++ /dev/null @@ -1,6 +0,0 @@ ---- ---- - -import Landing from 'widgets/landing.js' - - diff --git a/website/src/widgets/landing.js b/website/pages/index.tsx similarity index 93% rename from website/src/widgets/landing.js rename to website/pages/index.tsx index 4091faf30..ca579b75e 100644 --- a/website/src/widgets/landing.js +++ b/website/pages/index.tsx @@ -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'} diff --git a/website/src/remark.js b/website/src/remark.js index 7a9b0155a..775915c76 100644 --- a/website/src/remark.js +++ b/website/src/remark.js @@ -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,