mirror of https://github.com/explosion/spaCy.git
Fix components in meta.json and website [ci skip]
This commit is contained in:
parent
c28f73ddfd
commit
f9550b4493
|
@ -211,6 +211,7 @@ class Language:
|
||||||
# TODO: Adding this back to prevent breaking people's code etc., but
|
# TODO: Adding this back to prevent breaking people's code etc., but
|
||||||
# we should consider removing it
|
# we should consider removing it
|
||||||
self._meta["pipeline"] = list(self.pipe_names)
|
self._meta["pipeline"] = list(self.pipe_names)
|
||||||
|
self._meta["components"] = list(self.component_names)
|
||||||
self._meta["disabled"] = list(self.disabled)
|
self._meta["disabled"] = list(self.disabled)
|
||||||
return self._meta
|
return self._meta
|
||||||
|
|
||||||
|
|
|
@ -167,6 +167,8 @@ const Model = ({ name, langId, langName, baseUrl, repo, compatibility, hasExampl
|
||||||
const releaseUrl = `https://github.com/${repo}/releases/${releaseTag}`
|
const releaseUrl = `https://github.com/${repo}/releases/${releaseTag}`
|
||||||
const pipeline =
|
const pipeline =
|
||||||
meta.pipeline && join(meta.pipeline.map(p => <InlineCode key={p}>{p}</InlineCode>))
|
meta.pipeline && join(meta.pipeline.map(p => <InlineCode key={p}>{p}</InlineCode>))
|
||||||
|
const components =
|
||||||
|
meta.components && join(meta.components.map(p => <InlineCode key={p}>{p}</InlineCode>))
|
||||||
const sources = formatSources(meta.sources)
|
const sources = formatSources(meta.sources)
|
||||||
const author = !meta.url ? meta.author : <Link to={meta.url}>{meta.author}</Link>
|
const author = !meta.url ? meta.author : <Link to={meta.url}>{meta.author}</Link>
|
||||||
const licenseUrl = licenses[meta.license] ? licenses[meta.license].url : null
|
const licenseUrl = licenses[meta.license] ? licenses[meta.license].url : null
|
||||||
|
|
Loading…
Reference in New Issue