mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
Update legacy docs
This commit is contained in:
parent
025c820976
commit
91594fe671
|
@ -25,10 +25,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
"robots.txt": {
|
|
||||||
"layout": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"404": {
|
"404": {
|
||||||
"title": "404 Error",
|
"title": "404 Error",
|
||||||
"landing": true
|
"landing": true
|
||||||
|
|
|
@ -12,10 +12,10 @@
|
||||||
"COMPANY_URL": "https://explosion.ai",
|
"COMPANY_URL": "https://explosion.ai",
|
||||||
"DEMOS_URL": "https://demos.explosion.ai",
|
"DEMOS_URL": "https://demos.explosion.ai",
|
||||||
|
|
||||||
"SPACY_VERSION": "1.9",
|
"SPACY_VERSION": "2.0",
|
||||||
"LATEST_NEWS": {
|
"LATEST_NEWS": {
|
||||||
"url": "/docs/usage/models",
|
"url": "https://alpha.spacy.io",
|
||||||
"title": "The first official Spanish model is here!"
|
"title": "Try spaCy v2.0!"
|
||||||
},
|
},
|
||||||
|
|
||||||
"SOCIAL": {
|
"SOCIAL": {
|
||||||
|
|
|
@ -19,5 +19,6 @@
|
||||||
//- Generate GitHub links
|
//- Generate GitHub links
|
||||||
|
|
||||||
- function gh(repo, filepath, branch) {
|
- function gh(repo, filepath, branch) {
|
||||||
|
- if (repo == "spacy") branch = 'v1.x';
|
||||||
- return 'https://github.com/' + SOCIAL.github + '/' + repo + (filepath ? '/blob/' + (branch || 'master') + '/' + filepath : '' );
|
- return 'https://github.com/' + SOCIAL.github + '/' + repo + (filepath ? '/blob/' + (branch || 'master') + '/' + filepath : '' );
|
||||||
- }
|
- }
|
||||||
|
|
|
@ -5,8 +5,7 @@ include _mixins
|
||||||
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
|
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
|
||||||
a(href='/') #[+logo]
|
a(href='/') #[+logo]
|
||||||
|
|
||||||
if SUBSECTION != "index"
|
.u-text-label.u-padding-small.u-hidden-xs Legacy
|
||||||
.u-text-label.u-padding-small.u-hidden-xs=SUBSECTION
|
|
||||||
|
|
||||||
ul.c-nav__menu
|
ul.c-nav__menu
|
||||||
each url, item in NAVIGATION
|
each url, item in NAVIGATION
|
||||||
|
|
|
@ -10,6 +10,16 @@ main.o-main.o-main--sidebar.o-main--aside
|
||||||
if tag
|
if tag
|
||||||
+tag=tag
|
+tag=tag
|
||||||
|
|
||||||
|
+infobox("⚠️ Important note")
|
||||||
|
| You are viewing the #[strong v1.x legacy documentation].
|
||||||
|
| #[+a("https://spacy.io", true) Go here] for the latest
|
||||||
|
| documentation of the new version. spaCy v2.0 comes with a lot
|
||||||
|
| of improvements around training, serialization and processing
|
||||||
|
| pipeline management, as well as new convolutional neural network
|
||||||
|
| models for several languages. See
|
||||||
|
| #[+a("https://spacy.io/usage/v2") this page] for more details and
|
||||||
|
| a migration guide.
|
||||||
|
|
||||||
!=yield
|
!=yield
|
||||||
|
|
||||||
+grid.o-content.u-text
|
+grid.o-content.u-text
|
||||||
|
@ -21,7 +31,7 @@ main.o-main.o-main--sidebar.o-main--aside
|
||||||
span #[strong.u-text-label Read next:] #[+a(next).u-link=data.title]
|
span #[strong.u-text-label Read next:] #[+a(next).u-link=data.title]
|
||||||
|
|
||||||
+grid-col("half").u-text-right
|
+grid-col("half").u-text-right
|
||||||
.o-inline-list
|
//-.o-inline-list
|
||||||
+button(gh("spacy", "website/" + current.path.join('/') + ".jade"), false, "secondary").u-text-tag Suggest edits #[+icon("code", 14)]
|
+button(gh("spacy", "website/" + current.path.join('/') + ".jade"), false, "secondary").u-text-tag Suggest edits #[+icon("code", 14)]
|
||||||
|
|
||||||
+gitter("spaCy chat")
|
+gitter("spaCy chat")
|
||||||
|
|
|
@ -11,8 +11,6 @@ include _includes/_mixins
|
||||||
h2.c-landing__title.o-block.u-heading-1
|
h2.c-landing__title.o-block.u-heading-1
|
||||||
| in Python
|
| in Python
|
||||||
|
|
||||||
+landing-badge(gh("spaCy") + "/releases/tag/v2.0.0-alpha", "v2alpha", "Try spaCy v2.0.0 alpha!")
|
|
||||||
|
|
||||||
+grid.o-content
|
+grid.o-content
|
||||||
+grid-col("third").o-card
|
+grid-col("third").o-card
|
||||||
+h(2) Fastest in the world
|
+h(2) Fastest in the world
|
||||||
|
|
2
website/robots.txt
Normal file
2
website/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
|
@ -1,5 +0,0 @@
|
||||||
//- 💫 ROBOTS.TXT
|
|
||||||
|
|
||||||
if environment != "deploy"
|
|
||||||
| User-agent: *
|
|
||||||
| Disallow: /
|
|
Loading…
Reference in New Issue
Block a user