Update legacy docs

This commit is contained in:
ines 2017-11-07 12:56:36 +01:00
parent 025c820976
commit 91594fe671
8 changed files with 18 additions and 17 deletions

View File

@ -25,10 +25,6 @@
]
},
"robots.txt": {
"layout": false
},
"404": {
"title": "404 Error",
"landing": true

View File

@ -12,10 +12,10 @@
"COMPANY_URL": "https://explosion.ai",
"DEMOS_URL": "https://demos.explosion.ai",
"SPACY_VERSION": "1.9",
"SPACY_VERSION": "2.0",
"LATEST_NEWS": {
"url": "/docs/usage/models",
"title": "The first official Spanish model is here!"
"url": "https://alpha.spacy.io",
"title": "Try spaCy v2.0!"
},
"SOCIAL": {

View File

@ -19,5 +19,6 @@
//- Generate GitHub links
- function gh(repo, filepath, branch) {
- if (repo == "spacy") branch = 'v1.x';
- return 'https://github.com/' + SOCIAL.github + '/' + repo + (filepath ? '/blob/' + (branch || 'master') + '/' + filepath : '' );
- }

View File

@ -5,8 +5,7 @@ include _mixins
nav.c-nav.u-text.js-nav(class=landing ? "c-nav--theme" : null)
a(href='/') #[+logo]
if SUBSECTION != "index"
.u-text-label.u-padding-small.u-hidden-xs=SUBSECTION
.u-text-label.u-padding-small.u-hidden-xs Legacy
ul.c-nav__menu
each url, item in NAVIGATION

View File

@ -10,6 +10,16 @@ main.o-main.o-main--sidebar.o-main--aside
if 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
+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]
+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)]
+gitter("spaCy chat")

View File

@ -11,8 +11,6 @@ include _includes/_mixins
h2.c-landing__title.o-block.u-heading-1
| in Python
+landing-badge(gh("spaCy") + "/releases/tag/v2.0.0-alpha", "v2alpha", "Try spaCy v2.0.0 alpha!")
+grid.o-content
+grid-col("third").o-card
+h(2) Fastest in the world

2
website/robots.txt Normal file
View File

@ -0,0 +1,2 @@
User-agent: *
Disallow: /

View File

@ -1,5 +0,0 @@
//- 💫 ROBOTS.TXT
if environment != "deploy"
| User-agent: *
| Disallow: /