mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
49cee4af92
* Integrate Python kernel via Binder * Add live model test for languages with examples * Update docs and code examples * Adjust margin (if not bootstrapped) * Add binder version to global config * Update terminal and executable code mixins * Pass attributes through infobox and section * Hide v-cloak * Fix example * Take out model comparison for now * Add meta text for compat * Remove chart.js dependency * Tidy up and simplify JS and port big components over to Vue * Remove chartjs example * Add Twitter icon * Add purple stylesheet option * Add utility for hand cursor (special cases only) * Add transition classes * Add small option for section * Add thumb object for small round thumbnail images * Allow unset code block language via "none" value (workaround to still allow unset language to default to DEFAULT_SYNTAX) * Pass through attributes * Add syntax highlighting definitions for Julia, R and Docker * Add website icon * Remove user survey from navigation * Don't hide GitHub icon on small screens * Make top navigation scrollable on small screens * Remove old resources page and references to it * Add Universe * Add helper functions for better page URL and title * Update site description * Increment versions * Update preview images * Update mentions of resources * Fix image * Fix social images * Fix problem with cover sizing and floats * Add divider and move badges into heading * Add docstrings * Reference converting section * Add section on converting word vectors * Move converting section to custom section and fix formatting * Remove old fastText example * Move extensions content to own section Keep weird ID to not break permalinks for now (we don't want to rewrite URLs if not absolutely necessary) * Use better component example and add factories section * Add note on larger model * Use better example for non-vector * Remove similarity in context section Only works via small models with tensors so has always been kind of confusing * Add note on init-model command * Fix lightning tour examples and make excutable if possible * Add spacy train CLI section to train * Fix formatting and add video * Fix formatting * Fix textcat example description (resolves #2246) * Add dummy file to try resolve conflict * Delete dummy file * Tidy up [ci skip] * Ensure sufficient height of loading container * Add loading animation to universe * Update Thebelab build and use better startup message * Fix asset versioning * Fix typo [ci skip] * Add note on project idea label
58 lines
1.8 KiB
Plaintext
58 lines
1.8 KiB
Plaintext
//- 💫 GLOBAL LAYOUT
|
|
|
|
include _includes/_mixins
|
|
|
|
- title = IS_MODELS ? LANGUAGES[current.source] || title : title
|
|
|
|
- PAGE_URL = getPageUrl()
|
|
- PAGE_TITLE = getPageTitle()
|
|
- PAGE_IMAGE = getPageImage()
|
|
|
|
doctype html
|
|
html(lang="en")
|
|
head
|
|
title=PAGE_TITLE
|
|
meta(charset="utf-8")
|
|
meta(name="viewport" content="width=device-width, initial-scale=1.0")
|
|
meta(name="referrer" content="always")
|
|
meta(name="description" content=description)
|
|
|
|
meta(property="og:type" content="website")
|
|
meta(property="og:site_name" content=sitename)
|
|
meta(property="og:url" content=PAGE_URL)
|
|
meta(property="og:title" content=PAGE_TITLE)
|
|
meta(property="og:description" content=description)
|
|
meta(property="og:image" content=PAGE_IMAGE)
|
|
|
|
meta(name="twitter:card" content="summary_large_image")
|
|
meta(name="twitter:site" content="@" + SOCIAL.twitter)
|
|
meta(name="twitter:title" content=PAGE_TITLE)
|
|
meta(name="twitter:description" content=description)
|
|
meta(name="twitter:image" content=PAGE_IMAGE)
|
|
|
|
link(rel="shortcut icon" href="/assets/img/favicon.ico")
|
|
link(rel="icon" type="image/x-icon" href="/assets/img/favicon.ico")
|
|
|
|
if SECTION == "api"
|
|
link(href="/assets/css/style_green.css?v#{V_CSS}" rel="stylesheet")
|
|
else if SECTION == "universe"
|
|
link(href="/assets/css/style_purple.css?v#{V_CSS}" rel="stylesheet")
|
|
else
|
|
link(href="/assets/css/style.css?v#{V_CSS}" rel="stylesheet")
|
|
|
|
body
|
|
include _includes/_svg
|
|
include _includes/_navigation
|
|
|
|
if !landing
|
|
include _includes/_page-docs
|
|
|
|
else if SECTION == "universe"
|
|
!=yield
|
|
|
|
else
|
|
main!=yield
|
|
include _includes/_footer
|
|
|
|
include _includes/_scripts
|