mirror of
https://github.com/explosion/spaCy.git
synced 2025-08-07 05:40:20 +03:00
Move template files to component folder
Since they are not soley used as layouts, and manually imported as well.
This commit is contained in:
parent
bcb55013ca
commit
1054a0852e
|
@ -16,7 +16,7 @@ const site = require('./meta/site.json')
|
|||
const { domain, nightly: isNightly, legacy: isLegacy } = site
|
||||
const { siteUrl } = require('./meta/dynamicMeta')
|
||||
|
||||
const DEFAULT_TEMPLATE = path.resolve('./src/templates/index.js')
|
||||
const DEFAULT_TEMPLATE = path.resolve('./src/components/layout/index.js')
|
||||
|
||||
const favicon = `src/images/icon${isNightly ? '_nightly' : isLegacy ? '_legacy' : ''}.png`
|
||||
const branch = isNightly ? 'develop' : 'master'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const path = require('path')
|
||||
const { createFilePath } = require('gatsby-source-filesystem')
|
||||
|
||||
const DEFAULT_TEMPLATE = path.resolve('./src/templates/index.js')
|
||||
const DEFAULT_TEMPLATE = path.resolve('./src/components/layout/index.js')
|
||||
const BASE_PATH = 'docs'
|
||||
const PAGE_EXTENSIONS = ['.md', '.mdx']
|
||||
const siteMetadata = require('./meta/site.json')
|
||||
|
|
|
@ -3,19 +3,19 @@ import PropTypes from 'prop-types'
|
|||
|
||||
import Models from './models'
|
||||
|
||||
import ReadNext from '../components/readnext'
|
||||
import Button from '../components/button'
|
||||
import Grid from '../components/grid'
|
||||
import Title from '../components/title'
|
||||
import Footer from '../components/footer'
|
||||
import Sidebar from '../components/sidebar'
|
||||
import Main from '../components/main'
|
||||
import { getCurrentSource, github } from '../components/util'
|
||||
import ReadNext from '../readnext'
|
||||
import Button from '../button'
|
||||
import Grid from '../grid'
|
||||
import Title from '../title'
|
||||
import Footer from '../footer'
|
||||
import Sidebar from '../sidebar'
|
||||
import Main from '../main'
|
||||
import { getCurrentSource, github } from '../util'
|
||||
|
||||
import siteMetadata from '../../meta/site.json'
|
||||
import sidebars from '../../meta/sidebars.json'
|
||||
import models from '../../meta/languages.json'
|
||||
import { nightly, legacy } from '../../meta/dynamicMeta'
|
||||
import siteMetadata from '../../../meta/site.json'
|
||||
import sidebars from '../../../meta/sidebars.json'
|
||||
import models from '../../../meta/languages.json'
|
||||
import { nightly, legacy } from '../../../meta/dynamicMeta'
|
||||
|
||||
const Docs = ({ pageContext, children }) => {
|
||||
const {
|
|
@ -1,41 +1,37 @@
|
|||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
import { MDXProvider } from '@mdx-js/tag'
|
||||
import { withMDXScope } from 'gatsby-mdx/context'
|
||||
import useOnlineStatus from '@rehooks/online-status'
|
||||
import classNames from 'classnames'
|
||||
|
||||
import MDXRenderer from './mdx-renderer'
|
||||
|
||||
// Templates
|
||||
import Docs from './docs'
|
||||
import Universe from './universe'
|
||||
|
||||
// Components
|
||||
import Navigation from '../components/navigation'
|
||||
import Progress from '../components/progress'
|
||||
import Footer from '../components/footer'
|
||||
import SEO from '../components/seo'
|
||||
import Link from '../components/link'
|
||||
import Section, { Hr } from '../components/section'
|
||||
import { Table, Tr, Th, Tx, Td } from '../components/table'
|
||||
import { Pre, Code, InlineCode, TypeAnnotation } from '../components/code'
|
||||
import { Ol, Ul, Li } from '../components/list'
|
||||
import { H2, H3, H4, H5, P, Abbr, Help } from '../components/typography'
|
||||
import Accordion from '../components/accordion'
|
||||
import Infobox from '../components/infobox'
|
||||
import Aside from '../components/aside'
|
||||
import Button from '../components/button'
|
||||
import Tag from '../components/tag'
|
||||
import Grid from '../components/grid'
|
||||
import { YouTube, SoundCloud, Iframe, Image, GoogleSheet } from '../components/embed'
|
||||
import Alert from '../components/alert'
|
||||
import Search from '../components/search'
|
||||
import Project from '../widgets/project'
|
||||
import { Integration, IntegrationLogo } from '../widgets/integration'
|
||||
import Navigation from '../navigation'
|
||||
import Progress from '../progress'
|
||||
import Footer from '../footer'
|
||||
import SEO from '../seo'
|
||||
import Link from '../link'
|
||||
import Section, { Hr } from '../section'
|
||||
import { Table, Tr, Th, Tx, Td } from '../table'
|
||||
import { Pre, Code, InlineCode, TypeAnnotation } from '../code'
|
||||
import { Ol, Ul, Li } from '../list'
|
||||
import { H2, H3, H4, H5, P, Abbr, Help } from '../typography'
|
||||
import Accordion from '../accordion'
|
||||
import Infobox from '../infobox'
|
||||
import Aside from '../aside'
|
||||
import Button from '../button'
|
||||
import Tag from '../tag'
|
||||
import Grid from '../grid'
|
||||
import { YouTube, SoundCloud, Iframe, Image, GoogleSheet } from '../embed'
|
||||
import Alert from '../alert'
|
||||
import Search from '../search'
|
||||
import Project from '../../widgets/project'
|
||||
import { Integration, IntegrationLogo } from '../../widgets/integration'
|
||||
|
||||
import siteMetadata from '../../meta/site.json'
|
||||
import { nightly, legacy } from '../../meta/dynamicMeta'
|
||||
import siteMetadata from '../../../meta/site.json'
|
||||
import { nightly, legacy } from '../../../meta/dynamicMeta'
|
||||
|
||||
const mdxComponents = {
|
||||
a: Link,
|
|
@ -1,20 +1,20 @@
|
|||
import React, { useEffect, useState, useMemo, Fragment } from 'react'
|
||||
import { window } from 'browser-monads'
|
||||
|
||||
import Title from '../components/title'
|
||||
import Section from '../components/section'
|
||||
import Button from '../components/button'
|
||||
import Aside from '../components/aside'
|
||||
import CodeBlock, { InlineCode } from '../components/code'
|
||||
import { Table, Tr, Td, Th } from '../components/table'
|
||||
import Tag from '../components/tag'
|
||||
import { H2, Label } from '../components/typography'
|
||||
import Icon from '../components/icon'
|
||||
import Link, { OptionalLink } from '../components/link'
|
||||
import Infobox from '../components/infobox'
|
||||
import Accordion from '../components/accordion'
|
||||
import { join, arrayToObj, abbrNum, markdownToReact } from '../components/util'
|
||||
import { isString, isEmptyObj } from '../components/util'
|
||||
import Title from '../title'
|
||||
import Section from '../section'
|
||||
import Button from '../button'
|
||||
import Aside from '../aside'
|
||||
import CodeBlock, { InlineCode } from '../code'
|
||||
import { Table, Tr, Td, Th } from '../table'
|
||||
import Tag from '../tag'
|
||||
import { H2, Label } from '../typography'
|
||||
import Icon from '../icon'
|
||||
import Link, { OptionalLink } from '../link'
|
||||
import Infobox from '../infobox'
|
||||
import Accordion from '../accordion'
|
||||
import { join, arrayToObj, abbrNum, markdownToReact } from '../util'
|
||||
import { isString, isEmptyObj } from '../util'
|
||||
|
||||
import siteMetadata from '../../../meta/site.json'
|
||||
import languages from '../../../meta/languages.json'
|
|
@ -1,25 +1,25 @@
|
|||
import React from 'react'
|
||||
import PropTypes from 'prop-types'
|
||||
|
||||
import Card from '../components/card'
|
||||
import Link from '../components/link'
|
||||
import Title from '../components/title'
|
||||
import Grid from '../components/grid'
|
||||
import Button from '../components/button'
|
||||
import Icon from '../components/icon'
|
||||
import Tag from '../components/tag'
|
||||
import CodeBlock, { InlineCode } from '../components/code'
|
||||
import Aside from '../components/aside'
|
||||
import Sidebar from '../components/sidebar'
|
||||
import Section, { Hr } from '../components/section'
|
||||
import Main from '../components/main'
|
||||
import Footer from '../components/footer'
|
||||
import { H3, H5, Label, InlineList } from '../components/typography'
|
||||
import { YouTube, SoundCloud, Iframe } from '../components/embed'
|
||||
import { github, markdownToReact } from '../components/util'
|
||||
import Card from '../card'
|
||||
import Link from '../link'
|
||||
import Title from '../title'
|
||||
import Grid from '../grid'
|
||||
import Button from '../button'
|
||||
import Icon from '../icon'
|
||||
import Tag from '../tag'
|
||||
import CodeBlock, { InlineCode } from '../code'
|
||||
import Aside from '../aside'
|
||||
import Sidebar from '../sidebar'
|
||||
import Section, { Hr } from '../section'
|
||||
import Main from '../main'
|
||||
import Footer from '../footer'
|
||||
import { H3, H5, Label, InlineList } from '../typography'
|
||||
import { YouTube, SoundCloud, Iframe } from '../embed'
|
||||
import { github, markdownToReact } from '../util'
|
||||
|
||||
import { nightly, legacy } from '../../meta/dynamicMeta'
|
||||
import universe from '../../meta/universe.json'
|
||||
import { nightly, legacy } from '../../../meta/dynamicMeta'
|
||||
import universe from '../../../meta/universe.json'
|
||||
|
||||
function getSlug(data) {
|
||||
if (data.isCategory) return `/universe/category/${data.id}`
|
|
@ -1,7 +1,7 @@
|
|||
import React from 'react'
|
||||
import { window } from 'browser-monads'
|
||||
|
||||
import Template from '../templates/index'
|
||||
import Layout from '../components/layout/index'
|
||||
import { LandingHeader, LandingTitle } from '../components/landing'
|
||||
import Button from '../components/button'
|
||||
import { nightly, legacy } from '../../meta/dynamicMeta'
|
||||
|
|
Loading…
Reference in New Issue
Block a user