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": { "404": {
"title": "404 Error", "title": "404 Error",
"landing": true "landing": true

View File

@ -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": {

View File

@ -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 : '' );
- } - }

View File

@ -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

View File

@ -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")

View File

@ -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
View File

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

View File

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