luclima commited on
Commit
d2a4bca
·
verified ·
1 Parent(s): c3fc41e

Upload folder using huggingface_hub (part 46)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +9 -0
  2. western_ai/usa/spacy/website/UNIVERSE.md +104 -0
  3. western_ai/usa/spacy/website/src/images/pattern_landing_legacy.png +0 -0
  4. western_ai/usa/spacy/website/src/images/pattern_landing_nightly.png +0 -0
  5. western_ai/usa/spacy/website/src/images/pattern_legacy.png +0 -0
  6. western_ai/usa/spacy/website/src/images/pattern_nightly.png +0 -0
  7. western_ai/usa/spacy/website/src/images/pattern_purple.png +0 -0
  8. western_ai/usa/spacy/website/src/images/social_api.jpg +3 -0
  9. western_ai/usa/spacy/website/src/images/social_default.jpg +3 -0
  10. western_ai/usa/spacy/website/src/images/social_legacy.jpg +3 -0
  11. western_ai/usa/spacy/website/src/images/social_nightly.jpg +3 -0
  12. western_ai/usa/spacy/website/src/images/social_universe.jpg +3 -0
  13. western_ai/usa/spacy/website/src/images/spacy-irl.jpg +0 -0
  14. western_ai/usa/spacy/website/src/remark.js +118 -0
  15. western_ai/usa/spacy/website/src/styles/accordion.module.sass +55 -0
  16. western_ai/usa/spacy/website/src/styles/alert.module.sass +24 -0
  17. western_ai/usa/spacy/website/src/styles/aside.module.sass +97 -0
  18. western_ai/usa/spacy/website/src/styles/base.sass +57 -0
  19. western_ai/usa/spacy/website/src/styles/button.module.sass +42 -0
  20. western_ai/usa/spacy/website/src/styles/card.module.sass +23 -0
  21. western_ai/usa/spacy/website/src/styles/code.module.sass +195 -0
  22. western_ai/usa/spacy/website/src/styles/copy.module.sass +25 -0
  23. western_ai/usa/spacy/website/src/styles/dropdown.module.sass +16 -0
  24. western_ai/usa/spacy/website/src/styles/embed.module.sass +55 -0
  25. western_ai/usa/spacy/website/src/styles/footer.module.sass +45 -0
  26. western_ai/usa/spacy/website/src/styles/grid.module.sass +42 -0
  27. western_ai/usa/spacy/website/src/styles/icon.module.sass +20 -0
  28. western_ai/usa/spacy/website/src/styles/infobox.module.sass +64 -0
  29. western_ai/usa/spacy/website/src/styles/landing.module.sass +154 -0
  30. western_ai/usa/spacy/website/src/styles/layout.sass +545 -0
  31. western_ai/usa/spacy/website/src/styles/link.module.sass +30 -0
  32. western_ai/usa/spacy/website/src/styles/list.module.sass +61 -0
  33. western_ai/usa/spacy/website/src/styles/main.module.sass +41 -0
  34. western_ai/usa/spacy/website/src/styles/navigation.module.sass +127 -0
  35. western_ai/usa/spacy/website/src/styles/newsletter.module.sass +22 -0
  36. western_ai/usa/spacy/website/src/styles/progress.module.sass +22 -0
  37. western_ai/usa/spacy/website/src/styles/quickstart.module.sass +215 -0
  38. western_ai/usa/spacy/website/src/styles/readnext.module.sass +21 -0
  39. western_ai/usa/spacy/website/src/styles/search.sass +27 -0
  40. western_ai/usa/spacy/website/src/styles/section.module.sass +9 -0
  41. western_ai/usa/spacy/website/src/styles/sidebar.module.sass +125 -0
  42. western_ai/usa/spacy/website/src/styles/table.module.sass +143 -0
  43. western_ai/usa/spacy/website/src/styles/tag.module.sass +16 -0
  44. western_ai/usa/spacy/website/src/styles/title.module.sass +49 -0
  45. western_ai/usa/spacy/website/src/styles/typography.module.sass +92 -0
  46. western_ai/usa/spacy/website/src/templates/docs.js +123 -0
  47. western_ai/usa/spacy/website/src/templates/index.js +138 -0
  48. western_ai/usa/spacy/website/src/templates/models.js +440 -0
  49. western_ai/usa/spacy/website/src/templates/universe.js +369 -0
  50. western_ai/usa/spacy/website/src/widgets/changelog.js +119 -0
.gitattributes CHANGED
@@ -1235,3 +1235,12 @@ western_ai/usa/spacy/website/public/images/spacy-streamlit.png filter=lfs diff=l
1235
  western_ai/usa/spacy/website/public/images/thinc_mypy.jpg filter=lfs diff=lfs merge=lfs -text
1236
  western_ai/usa/spacy/website/public/images/wandb1.jpg filter=lfs diff=lfs merge=lfs -text
1237
  western_ai/usa/spacy/website/public/images/wandb2.jpg filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
1235
  western_ai/usa/spacy/website/public/images/thinc_mypy.jpg filter=lfs diff=lfs merge=lfs -text
1236
  western_ai/usa/spacy/website/public/images/wandb1.jpg filter=lfs diff=lfs merge=lfs -text
1237
  western_ai/usa/spacy/website/public/images/wandb2.jpg filter=lfs diff=lfs merge=lfs -text
1238
+ western_ai/usa/spacy/website/src/images/social_api.jpg filter=lfs diff=lfs merge=lfs -text
1239
+ western_ai/usa/spacy/website/src/images/social_default.jpg filter=lfs diff=lfs merge=lfs -text
1240
+ western_ai/usa/spacy/website/src/images/social_legacy.jpg filter=lfs diff=lfs merge=lfs -text
1241
+ western_ai/usa/spacy/website/src/images/social_nightly.jpg filter=lfs diff=lfs merge=lfs -text
1242
+ western_ai/usa/spacy/website/src/images/social_universe.jpg filter=lfs diff=lfs merge=lfs -text
1243
+ western_ai/usa/stable-diffusion-webui/modules/Roboto-Regular.ttf filter=lfs diff=lfs merge=lfs -text
1244
+ western_ai/usa/stable-diffusion-webui/modules/textual_inversion/test_embedding.png filter=lfs diff=lfs merge=lfs -text
1245
+ western_ai/usa/stable-diffusion-webui/screenshot.png filter=lfs diff=lfs merge=lfs -text
1246
+ western_ai/usa/tensorflow/tensorflow/c/testdata/tf_record filter=lfs diff=lfs merge=lfs -text
western_ai/usa/spacy/website/UNIVERSE.md ADDED
@@ -0,0 +1,104 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a>
2
+
3
+ # spaCy Universe
4
+
5
+ The [spaCy Universe](https://spacy.io/universe) collects the many great
6
+ resources developed with or for spaCy. It includes standalone packages, plugins,
7
+ extensions, educational materials, operational utilities and bindings for other
8
+ languages.
9
+
10
+ If you have a project that you want the spaCy community to make use of, you can
11
+ suggest it by submitting a pull request to this repository. The Universe
12
+ database is open-source and collected in a simple JSON file.
13
+
14
+ Looking for inspiration for your own spaCy plugin or extension? Check out the
15
+ [`project ideas`](https://github.com/explosion/spaCy/discussions?discussions_q=category%3A%22New+Features+%26+Project+Ideas%22)
16
+ discussion forum.
17
+
18
+ ## Checklist
19
+
20
+ ### Projects
21
+
22
+ ✅ Libraries and packages should be **open-source** (with a user-friendly
23
+ license) and at least somewhat **documented** (e.g. a simple `README` with usage
24
+ instructions).
25
+
26
+ ✅ We're happy to include work in progress and prereleases, but we'd like to
27
+ keep the emphasis on projects that should be useful to the community **right
28
+ away**.
29
+
30
+ ✅ Demos and visualizers should be available via a **public URL**.
31
+
32
+ ### Educational Materials
33
+
34
+ ✅ Books should be **available for purchase or download** (not just pre-order).
35
+ Ebooks and self-published books are fine, too, if they include enough
36
+ substantial content.
37
+
38
+ ✅ The `"url"` of book entries should either point to the publisher's website or
39
+ a reseller of your choice (ideally one that ships worldwide or as close as
40
+ possible).
41
+
42
+ ✅ If an online course is only available behind a paywall, it should at least
43
+ have a **free excerpt** or chapter available, so users know what to expect.
44
+
45
+ ## JSON format
46
+
47
+ To add a project, fork this repository, edit the
48
+ [`universe.json`](meta/universe.json) and add an object of the following format
49
+ to the list of `"resources"`. Before you submit your pull request, make sure to
50
+ use a linter to verify that your markup is correct.
51
+
52
+ ```json
53
+ {
54
+ "id": "unique-project-id",
55
+ "title": "Project title",
56
+ "slogan": "A short summary",
57
+ "description": "A longer description – *Markdown allowed!*",
58
+ "github": "user/repo",
59
+ "pip": "package-name",
60
+ "code_example": [
61
+ "import spacy",
62
+ "import package_name",
63
+ "",
64
+ "nlp = spacy.load('en')",
65
+ "nlp.add_pipe(package_name)"
66
+ ],
67
+ "code_language": "python",
68
+ "url": "https://example.com",
69
+ "thumb": "https://example.com/thumb.jpg",
70
+ "image": "https://example.com/image.jpg",
71
+ "author": "Your Name",
72
+ "author_links": {
73
+ "twitter": "username",
74
+ "github": "username",
75
+ "website": "https://example.com"
76
+ },
77
+ "category": ["pipeline", "standalone"],
78
+ "tags": ["some-tag", "etc"]
79
+ }
80
+ ```
81
+
82
+ | Field | Type | Description |
83
+ | --------------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------- |
84
+ | `id` | string | Unique ID of the project. |
85
+ | `title` | string | Project title. If not set, the `id` will be used as the display title. |
86
+ | `slogan` | string | A short description of the project. Displayed in the overview and under the title. |
87
+ | `description` | string | A longer description of the project. Markdown is allowed, but should be limited to basic formatting like bold, italics, code or links. |
88
+ | `github` | string | Associated GitHub repo in the format `user/repo`. Will be displayed as a link and used for release, license and star badges. |
89
+ | `pip` | string | Package name on pip. If available, the installation command will be displayed. |
90
+ | `cran` | string | For R packages: package name on CRAN. If available, the installation command will be displayed. |
91
+ | `code_example` | array | Short example that shows how to use the project. Formatted as an array with one string per line. |
92
+ | `code_language` | string | Defaults to `'python'`. Optional code language used for syntax highlighting with [Prism](http://prismjs.com/). |
93
+ | `url` | string | Optional project link to display as button. |
94
+ | `thumb` | string | Optional URL to project thumbnail to display in overview and project header. Recommended size is 100x100px. |
95
+ | `image` | string | Optional URL to project image to display with description. |
96
+ | `author` | string | Name(s) of project author(s). |
97
+ | `author_links` | object | Usernames and links to display as icons to author info. Currently supports `twitter` and `github` usernames, as well as `website` link. |
98
+ | `category` | list | One or more categories to assign to project. Must be one of the available options. |
99
+ | `tags` | list | Still experimental and not used for filtering: one or more tags to assign to project. |
100
+
101
+ To separate them from the projects, educational materials also specify
102
+ `"type": "education`. Books can also set a `"cover"` field containing a URL to a
103
+ cover image. If available, it's used in the overview and displayed on the
104
+ individual book page.
western_ai/usa/spacy/website/src/images/pattern_landing_legacy.png ADDED
western_ai/usa/spacy/website/src/images/pattern_landing_nightly.png ADDED
western_ai/usa/spacy/website/src/images/pattern_legacy.png ADDED
western_ai/usa/spacy/website/src/images/pattern_nightly.png ADDED
western_ai/usa/spacy/website/src/images/pattern_purple.png ADDED
western_ai/usa/spacy/website/src/images/social_api.jpg ADDED

Git LFS Details

  • SHA256: de182e818994240bc8cc1afc9cc117f816b375141a686e3608d6a381be44bc8e
  • Pointer size: 131 Bytes
  • Size of remote file: 147 kB
western_ai/usa/spacy/website/src/images/social_default.jpg ADDED

Git LFS Details

  • SHA256: 0fd1f3097fbb26014d3b5c83be8fbe9ffa7f90151344fcf68684c553761425f3
  • Pointer size: 131 Bytes
  • Size of remote file: 372 kB
western_ai/usa/spacy/website/src/images/social_legacy.jpg ADDED

Git LFS Details

  • SHA256: 537c720bc041de99e41defb8131985ac083c8f283a5cec90449f8d91262512d5
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
western_ai/usa/spacy/website/src/images/social_nightly.jpg ADDED

Git LFS Details

  • SHA256: 50c317141dc9709a3fbd0cbdb4f93df8b1eb6ffcd02711ad8eebdd562079e7ce
  • Pointer size: 131 Bytes
  • Size of remote file: 362 kB
western_ai/usa/spacy/website/src/images/social_universe.jpg ADDED

Git LFS Details

  • SHA256: 5e6919c0b2a877965e29a784ad6cc10fe3e1429a1bc6aa89bcb13c03595190a1
  • Pointer size: 131 Bytes
  • Size of remote file: 121 kB
western_ai/usa/spacy/website/src/images/spacy-irl.jpg ADDED
western_ai/usa/spacy/website/src/remark.js ADDED
@@ -0,0 +1,118 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import Link from './components/link'
2
+ import Section, { Hr } from './components/section'
3
+ import { Table, Tr, Th, Tx, Td } from './components/table'
4
+ import Code from './components/codeDynamic'
5
+ import { TypeAnnotation } from './components/typeAnnotation'
6
+ import { InlineCode } from './components/inlineCode'
7
+ import CodeBlock, { Pre } from './components/codeBlock'
8
+ import { Ol, Ul, Li } from './components/list'
9
+ import { H2, H3, H4, H5, P, Abbr, Help, Label } from './components/typography'
10
+ import Accordion from './components/accordion'
11
+ import Infobox from './components/infobox'
12
+ import Aside from './components/aside'
13
+ import Button from './components/button'
14
+ import Tag from './components/tag'
15
+ import Grid from './components/grid'
16
+ import { YouTube, SoundCloud, Iframe, Image, ImageScrollable, GoogleSheet, Standalone } from './components/embed'
17
+ import Project from './widgets/project'
18
+ import { Integration, IntegrationLogo } from './widgets/integration.js'
19
+ import { Logos, Colors, Patterns } from './widgets/styleguide'
20
+ import Changelog from './widgets/changelog.js'
21
+ import Features from './widgets/features.js'
22
+ import Languages from './widgets/languages.js'
23
+ import QuickstartInstall from './widgets/quickstart-install.js'
24
+ import QuickstartTraining from './widgets/quickstart-training.js'
25
+ import QuickstartModels from './widgets/quickstart-models.js'
26
+
27
+ import Benchmarks from '../docs/usage/_benchmarks-models.mdx'
28
+ import Architecture101 from '../docs/usage/101/_architecture.mdx'
29
+ import LanguageData101 from '../docs/usage/101/_language-data.mdx'
30
+ import NER101 from '../docs/usage/101/_named-entities.mdx'
31
+ import Pipelines101 from '../docs/usage/101/_pipelines.mdx'
32
+ import PosDeps101 from '../docs/usage/101/_pos-deps.mdx'
33
+ import Serialization101 from '../docs/usage/101/_serialization.mdx'
34
+ import Tokenization101 from '../docs/usage/101/_tokenization.mdx'
35
+ import Training101 from '../docs/usage/101/_training.mdx'
36
+ import Vectors101 from '../docs/usage/101/_vectors-similarity.mdx'
37
+
38
+ export const remarkComponents = {
39
+ a: Link,
40
+ p: P,
41
+ pre: Pre,
42
+ code: Code,
43
+ del: TypeAnnotation,
44
+ table: Table,
45
+ img: Image,
46
+ tr: Tr,
47
+ th: Th,
48
+ td: Td,
49
+ ol: Ol,
50
+ ul: Ul,
51
+ li: Li,
52
+ h2: H2,
53
+ h3: H3,
54
+ h4: H4,
55
+ h5: H5,
56
+ blockquote: Aside,
57
+ section: Section,
58
+ wrapper: ({ children }) => children,
59
+ hr: Hr,
60
+
61
+ H2,
62
+ H3,
63
+ H4,
64
+ H5,
65
+
66
+ Infobox,
67
+ Table,
68
+ Tr,
69
+ Tx,
70
+ Th,
71
+ Td,
72
+ Help,
73
+ Button,
74
+ YouTube,
75
+ SoundCloud,
76
+ Iframe,
77
+ GoogleSheet,
78
+ Abbr,
79
+ Tag,
80
+ Accordion,
81
+ Grid,
82
+ CodeBlock,
83
+ InlineCode,
84
+ Project,
85
+ Integration,
86
+ IntegrationLogo,
87
+
88
+ /**
89
+ * This is readded as `Image` it can be explicitly used in MDX files.
90
+ * For regular img elements it is not possible to pass properties
91
+ */
92
+ Image,
93
+ ImageScrollable,
94
+ Standalone,
95
+
96
+ Label,
97
+ Logos,
98
+ Colors,
99
+ Patterns,
100
+
101
+ Changelog,
102
+ Features,
103
+ Languages,
104
+ QuickstartInstall,
105
+ QuickstartTraining,
106
+ QuickstartModels,
107
+
108
+ Benchmarks,
109
+ Architecture101,
110
+ LanguageData101,
111
+ NER101,
112
+ Pipelines101,
113
+ PosDeps101,
114
+ Serialization101,
115
+ Tokenization101,
116
+ Training101,
117
+ Vectors101,
118
+ }
western_ai/usa/spacy/website/src/styles/accordion.module.sass ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ --color-inline-code-bg: var(--color-theme-opaque)
3
+ background: var(--color-theme-light)
4
+ margin-bottom: var(--spacing-xs)
5
+ border-radius: var(--border-radius)
6
+
7
+ .spaced
8
+ margin-bottom: var(--spacing-md)
9
+
10
+ .button
11
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-primary)
12
+ color: var(--color-theme-dark)
13
+ display: flex
14
+ align-items: center
15
+ justify-content: space-between
16
+ width: 100%
17
+ padding: 1rem 1.5rem
18
+ border-radius: var(--border-radius)
19
+ text-align: left
20
+
21
+ &:focus
22
+ background: var(--color-theme-opaque)
23
+
24
+ &[aria-expanded="true"]:focus
25
+ border-bottom-left-radius: 0
26
+ border-bottom-right-radius: 0
27
+
28
+ .icon
29
+ $width: 2rem
30
+
31
+ width: $width
32
+ height: $width
33
+ flex: 0 0 $width
34
+ background: var(--color-theme-dark)
35
+ color: var(--color-back)
36
+ border-radius: 50%
37
+ padding: 0.35rem
38
+ pointer-events: none
39
+
40
+ .content
41
+ padding: 2rem 1.5rem 3rem
42
+
43
+ & > *:last-child
44
+ margin-bottom: 0
45
+
46
+ p
47
+ margin-bottom: var(--spacing-sm)
48
+
49
+ .hidden
50
+ display: none
51
+
52
+ .anchor
53
+ color: var(--color-subtle-dark)
54
+ padding-left: 0.5em
55
+ opacity: 0.75
western_ai/usa/spacy/website/src/styles/alert.module.sass ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ position: fixed
3
+ bottom: 0
4
+ left: 0
5
+ width: 100%
6
+ background: var(--color-back)
7
+ z-index: 100
8
+ font: var(--font-size-sm)/var(--line-height-md) var(--font-primary)
9
+ text-align: center
10
+ padding: 1rem
11
+ box-shadow: var(--box-shadow)
12
+ border-top: 2px solid
13
+ color: var(--color-theme-dark)
14
+
15
+ .warning
16
+ --alert-bg: var(--color-yellow-light)
17
+ --color-theme: var(--color-yellow-dark)
18
+ --color-theme-dark: var(--color-yellow-dark)
19
+ --color-inline-code-bg: var(--color-yellow-opaque)
20
+ background: var(--color-yellow-light)
21
+ color: var(--color-yellow-dark)
22
+
23
+ .clickable
24
+ cursor: pointer
western_ai/usa/spacy/website/src/styles/aside.module.sass ADDED
@@ -0,0 +1,97 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @use 'sass:math'
2
+ @import base
3
+
4
+ $triangle-size: 2rem
5
+ $border-radius: 6px
6
+
7
+ .root
8
+ position: relative
9
+
10
+ .content
11
+ --font-size-sm: 1.2rem
12
+ --color-inline-code-text: var(--color-back)
13
+ --color-inline-code-bg: var(--color-dark-secondary)
14
+
15
+ background: var(--color-front)
16
+ border-top-left-radius: $border-radius
17
+ border-bottom-left-radius: $border-radius
18
+ font-size: var(--font-size-sm)
19
+ z-index: 10
20
+
21
+ pre
22
+ padding: 0
23
+ margin: 0 0 var(--spacing-sm) 0
24
+
25
+ &:last-child
26
+ margin: 0
27
+
28
+ &:first-child h4
29
+ margin-top: 0 !important
30
+
31
+ code
32
+ padding: 0 !important
33
+ margin: 0
34
+
35
+ h4
36
+ margin-left: 0
37
+
38
+ p, ul, ol
39
+ font: inherit
40
+ margin-bottom: var(--spacing-sm)
41
+
42
+ ul li
43
+ padding: 0
44
+ margin: 0
45
+
46
+ &:before
47
+ content: initial
48
+
49
+ @include breakpoint(min, md)
50
+ .content
51
+ position: absolute
52
+ top: -3rem
53
+ left: calc(100% + 5.5rem)
54
+ width: calc(var(--width-aside) + 2rem)
55
+
56
+ // Banner effect
57
+ &:after
58
+ position: absolute
59
+ bottom: math.div(-$triangle-size, 2)
60
+ left: math.div($border-radius, 2)
61
+ width: 0
62
+ height: 0
63
+ border-color: transparent
64
+ border-style: solid
65
+ border-top-color: var(--color-dark)
66
+ border-width: math.div($triangle-size, 2) 0 0 calc(#{$triangle-size} - #{math.div($border-radius, 2)})
67
+ content: ""
68
+
69
+ @include breakpoint(max, sm)
70
+ .content
71
+ display: block
72
+ margin: 2rem 0
73
+
74
+ .text
75
+ font: var(--font-size-sm)/var(--line-height-sm) var(--font-primary)
76
+ color: var(--color-back)
77
+ padding: 1.5rem 2.5rem 2.5rem 2rem
78
+
79
+ a, a:hover
80
+ color: var(--color-subtle-on-dark)
81
+
82
+ & > *:last-child
83
+ margin-bottom: 0
84
+
85
+ .title,
86
+ .text h4
87
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
88
+ text-transform: uppercase
89
+ display: inline-block
90
+ border-radius: 1em
91
+ padding: 0 1rem 0.15rem !important
92
+ background: var(--color-dark)
93
+ box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25)
94
+ color: var(--color-back)
95
+ margin-bottom: 1.25rem
96
+ margin-left: -0.5rem
97
+ pointer-events: none
western_ai/usa/spacy/website/src/styles/base.sass ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Mixins */
2
+
3
+ //- Responsive Breakpoint utility
4
+
5
+ $breakpoints: ( sm: 768px, md: 992px, lg: 1200px )
6
+
7
+ @mixin breakpoint($limit, $size)
8
+ $breakpoints-max: ( xs: map-get($breakpoints, sm) - 1, sm: map-get($breakpoints, md) - 1, md: map-get($breakpoints, lg) - 1 )
9
+
10
+ @if $limit == "min"
11
+ @media(min-width: #{map-get($breakpoints, $size)})
12
+ @content
13
+
14
+ @else if $limit == "max"
15
+ @media(max-width: #{map-get($breakpoints-max, $size)})
16
+ @content
17
+
18
+ // Scroll shadows for reponsive tables
19
+ // adapted from David Bushell, http://codepen.io/dbushell/pen/wGaamR
20
+ // $scroll-shadow-color - color of shadow
21
+ // $scroll-shadow-side - side to cover shadow (left or right)
22
+ // $scroll-shadow-background - original background color to match
23
+
24
+ @function scroll-shadow-gradient($scroll-gradient-direction, $scroll-shadow-background)
25
+ @return linear-gradient(to #{$scroll-gradient-direction}, $scroll-shadow-background 50%, rgba(255, 255, 255, 0) 100%)
26
+
27
+ @mixin scroll-shadow-base($scroll-shadow-color)
28
+ background: radial-gradient(ellipse at 0 50%, $scroll-shadow-color 0%, rgba(0,0,0,0) 75%) 0 center, radial-gradient(ellipse at 100% 50%, $scroll-shadow-color 0%, transparent 75%) 100% center
29
+ background-attachment: scroll, scroll
30
+ background-repeat: no-repeat
31
+ background-size: 10px 100%, 10px 100%
32
+
33
+ @mixin scroll-shadow-cover($scroll-shadow-side, $scroll-shadow-background)
34
+ $scroll-gradient-direction: right !default
35
+ background-repeat: no-repeat
36
+
37
+ @if $scroll-shadow-side == right
38
+ $scroll-gradient-direction: left
39
+ background-position: 100% 0
40
+
41
+ @if $scroll-shadow-side == both
42
+ background-image: scroll-shadow-gradient(left, $scroll-shadow-background), scroll-shadow-gradient(right, $scroll-shadow-background)
43
+ background-position: 100% 0, 0 0
44
+ background-size: 20px 100%, 20px 100%
45
+ @else
46
+ background-image: scroll-shadow-gradient($scroll-gradient-direction, $scroll-shadow-background)
47
+ background-size: 20px 100%
48
+
49
+ // Full vertical scroll shadows
50
+ // adapted from: https://codepen.io/laustdeleuran/pen/DBaAu
51
+
52
+ @mixin scroll-shadow($background-color, $shadow-color, $shadow-offset: 0, $cover-size: 40px, $shadow-size: 15px)
53
+ background: linear-gradient($background-color 30%, rgba(255, 255, 255,0)) 0 $shadow-offset, linear-gradient(rgba(255,255,255,0), $background-color 70%) 0 100%, radial-gradient(farthest-side at 50% 0, $shadow-color, rgba(255,255,255,0)) -20px $shadow-offset, radial-gradient(farthest-side at 50% 100%, $shadow-color, rgba(255,255,255,0)) 0 100%
54
+ background-repeat: no-repeat
55
+ background-color: $background-color
56
+ background-size: 100% $cover-size, 100% $cover-size, 100% $shadow-size, 100% $shadow-size
57
+ background-attachment: local, local, scroll, scroll
western_ai/usa/spacy/website/src/styles/button.module.sass ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ display: inline-block
3
+ padding: 0.65rem 1.1rem 0.825rem
4
+ margin-bottom: 1px
5
+ border: 2px solid var(--color-theme-dark)
6
+ border-radius: 2em
7
+ text-align: center
8
+ transition: background-color, color 0.25s ease
9
+ font: bold var(--font-size-xs)/var(--line-height-md) var(--font-secondary)
10
+ text-transform: uppercase
11
+ white-space: nowrap
12
+
13
+ &:hover
14
+ border-color: var(--color-theme-dark)
15
+
16
+ .large
17
+ font-size: var(--font-size-lg)
18
+ padding: 0.8em 1.1em 1em
19
+
20
+ .primary
21
+ background: var(--color-theme-dark)
22
+ color: var(--color-back)
23
+
24
+ &:hover
25
+ background: var(--color-theme-dark)
26
+ color: var(--color-back)
27
+
28
+ .secondary
29
+ background: var(--color-back)
30
+ color: var(--color-theme-dark)
31
+
32
+ &:hover
33
+ color: var(--color-theme-dark)
34
+
35
+ .tertiary
36
+ background: transparent
37
+ color: var(--color-back)
38
+ border-color: currentColor
39
+
40
+ &:hover
41
+ color: var(--color-back)
42
+ border-color: currentColor
western_ai/usa/spacy/website/src/styles/card.module.sass ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ background: var(--color-subtle-light)
3
+ border-radius: var(--border-radius)
4
+ padding: 2rem
5
+ font: var(--font-size-md)/var(--line-height-md) var(--font-primary)
6
+ margin-bottom: var(--spacing-sm)
7
+
8
+ .small
9
+ padding: 1.5rem
10
+ font-size: var(--font-size-sm)
11
+ line-height: var(--line-height-sm)
12
+ color: var(--color-dark)
13
+
14
+ .title
15
+ margin-bottom: var(--spacing-xs)
16
+
17
+ .image
18
+ $image-size: 35px
19
+ width: $image-size
20
+ height: $image-size
21
+ overflow: hidden
22
+ float: right
23
+ border-radius: 50%
western_ai/usa/spacy/website/src/styles/code.module.sass ADDED
@@ -0,0 +1,195 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .pre
2
+ position: relative
3
+ background: var(--color-front)
4
+ color: var(--color-subtle-on-dark)
5
+ border-radius: var(--border-radius)
6
+ overflow: auto
7
+ width: 100%
8
+ max-width: 100%
9
+ white-space: pre
10
+ direction: ltr
11
+ margin-bottom: var(--spacing-md)
12
+
13
+ .max-height
14
+ height: 450px
15
+
16
+ .code,
17
+ .juniper-input pre,
18
+ .juniper-output
19
+ font: var(--font-size-code)/var(--line-height-code) var(--font-code) !important
20
+ font-variant-ligatures: none !important
21
+ -webkit-font-smoothing: subpixel-antialiased
22
+ -moz-osx-font-smoothing: auto
23
+
24
+ .code,
25
+ .juniper-input pre
26
+ display: block
27
+ padding: 1.75em 1.5em
28
+
29
+ .code
30
+ &[data-prompt]:before, span[data-prompt]:before
31
+ content: attr(data-prompt)
32
+ margin-right: 0.65em
33
+ display: inline-block
34
+ vertical-align: middle
35
+ opacity: 0.5
36
+
37
+ .inline-code
38
+ color: var(--color-inline-code-text)
39
+ font-size: 90%
40
+ background-color: var(--color-inline-code-bg)
41
+ padding: 0.2rem 0.4rem
42
+ border-radius: 0.25rem
43
+ font-family: var(--font-code)
44
+ margin: 0
45
+ box-decoration-break: clone
46
+ white-space: nowrap
47
+ text-shadow: none
48
+ font-variant-ligatures: none
49
+ -webkit-font-smoothing: subpixel-antialiased
50
+ -moz-osx-font-smoothing: auto
51
+
52
+ a &
53
+ color: inherit
54
+
55
+ .inline-code-dark
56
+ --color-inline-code-text: var(--color-back)
57
+ --color-inline-code-bg: var(--color-dark-secondary)
58
+
59
+ .type-annotation
60
+ white-space: pre-wrap
61
+ font-family: var(--font-code)
62
+
63
+ &.wrap
64
+ word-wrap: break-word
65
+
66
+ a
67
+ border: 0
68
+
69
+ // Special style for types in API tables
70
+ td:not(:first-child) > &:last-child
71
+ display: block
72
+ border-top: 1px dotted var(--color-subtle)
73
+ border-radius: 0
74
+ background: none
75
+ width: calc(100% + 2rem)
76
+ margin-left: -1rem
77
+ padding-left: 1rem
78
+ padding-top: 5px
79
+ margin-top: 5px
80
+ margin-bottom: -5px
81
+
82
+ &:before
83
+ content: "Type: "
84
+ opacity: 0.75
85
+ font-family: var(--font-primary)
86
+ color: var(--color-dark-secondary)
87
+ font-weight: bold
88
+ text-transform: uppercase
89
+ margin-right: 5px
90
+
91
+ .type-annotation-meta
92
+ font-size: 90%
93
+ color: var(--color-subtle-dark)
94
+
95
+ .wrap
96
+ white-space: pre-wrap
97
+ word-wrap: anywhere
98
+
99
+ .title,
100
+ .juniper-button
101
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
102
+ text-transform: uppercase
103
+ display: inline-block
104
+ border-radius: 1em
105
+ padding: 0 1rem 0.15rem
106
+ color: var(--color-back)
107
+
108
+ .title
109
+ box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.25)
110
+ background: var(--color-dark)
111
+ margin: 1.5rem 0 0 2rem
112
+ position: sticky
113
+ left: 2rem
114
+
115
+ .header
116
+ width: 100%
117
+ background: var(--color-front)
118
+ position: sticky
119
+ top: -0.75rem
120
+ margin-top: -0.75rem
121
+ border-top-left-radius: var(--border-radius)
122
+ border-top-right-radius: var(--border-radius)
123
+ padding: 1.25rem 1rem 1rem
124
+ font-size: var(--font-size-sm)
125
+
126
+ .juniper-wrapper
127
+ background: var(--color-dark-secondary)
128
+ padding: 5px
129
+
130
+ .juniper-title
131
+ font: bold var(--font-size-sm)/var(--line-height-sm) var(--font-primary)
132
+ text-align: center
133
+ padding: 0.25rem 1rem 0.5rem
134
+ display: flex
135
+ justify-content: space-between
136
+
137
+ .juniper-cell
138
+ border: 0
139
+ background: var(--color-front)
140
+ padding: 1rem 0
141
+
142
+ .juniper-input
143
+ padding-top: 1rem
144
+ padding-bottom: 2rem
145
+ padding-left: 2rem
146
+ background: var(--color-front)
147
+
148
+ & > div
149
+ padding: 0
150
+ height: auto
151
+
152
+ .juniper-output
153
+ font: var(--font-size-xs) var(--font-code)
154
+
155
+ .juniper-button
156
+ transition: background-color 0.15s ease
157
+ background: var(--color-theme-dark)
158
+ margin: 0.5rem 0 1rem 2rem
159
+
160
+ &:hover
161
+ background: var(--color-theme-dark)
162
+
163
+ .juniper-meta
164
+ font-size: var(--font-size-xs)
165
+ font-weight: normal
166
+ padding-top: 0.1rem
167
+ color: var(--color-subtle-dark)
168
+
169
+ .cli
170
+ padding-top: calc(var(--spacing-sm) - 6px)
171
+ padding-bottom: calc(var(--spacing-sm) - 12px)
172
+
173
+ [data-prompt]:before
174
+ color: var(--color-subtle)
175
+
176
+ .cli-arg
177
+ border: 1px solid var(--color-dark)
178
+ padding: 1px 6px
179
+ margin-bottom: 5px
180
+ border-radius: 0.5em
181
+ display: inline-block
182
+
183
+ a
184
+ color: inherit !important
185
+
186
+ .cli-arg-highlight
187
+ background: var(--color-theme-dark)
188
+ border-color: var(--color-theme-dark)
189
+ color: var(--color-back) !important
190
+
191
+ .cli-arg-subtle
192
+ color: var(--syntax-comment)
193
+
194
+ .cli-arg-emphasis
195
+ font-style: italic
western_ai/usa/spacy/website/src/styles/copy.module.sass ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ background: var(--color-back)
3
+ border-radius: 2em
4
+ border: 1px solid var(--color-subtle)
5
+ width: 100%
6
+ padding: 0.25em 1em
7
+ display: inline-flex
8
+ margin: var(--spacing-xs) 0
9
+ font: var(--font-size-code)/var(--line-height-code) var(--font-code)
10
+ -webkit-font-smoothing: subpixel-antialiased
11
+ -moz-osx-font-smoothing: auto
12
+
13
+ .textarea
14
+ flex: 100%
15
+ background: transparent
16
+ resize: none
17
+ font: inherit
18
+ overflow: hidden
19
+ white-space: nowrap
20
+ text-overflow: ellipsis
21
+ margin-right: 1rem
22
+
23
+ .prefix
24
+ margin-right: 0.75em
25
+ color: var(--color-subtle-dark)
western_ai/usa/spacy/website/src/styles/dropdown.module.sass ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ --dropdown-text-color: var(--color-front)
3
+ font: inherit
4
+ background: transparent
5
+ border: none
6
+ appearance: none
7
+ background-color: var(--color-back)
8
+ background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23929e9b%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E')
9
+ background-repeat: no-repeat
10
+ background-position: right 0.7em top 50%
11
+ background-size: 0.5em auto
12
+ padding: 0 1.4em 0 0.5em
13
+
14
+ &:-moz-focusring
15
+ text-shadow: 0 0 0 var(--dropdown-text-color)
16
+ color: transparent
western_ai/usa/spacy/website/src/styles/embed.module.sass ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @use 'sass:math'
2
+
3
+ .root
4
+ margin-bottom: var(--spacing-md)
5
+
6
+ .responsive
7
+ position: relative
8
+ height: 0
9
+
10
+ @each $ratio1, $ratio2 in (16, 9), (4, 3)
11
+ .ratio#{$ratio1}x#{$ratio2}
12
+ padding-bottom: (100% * math.div($ratio2, $ratio1))
13
+
14
+ .iframe
15
+ position: absolute
16
+ top: 0
17
+ left: 0
18
+ width: 100%
19
+ height: 100%
20
+ border-radius: var(--border-radius)
21
+
22
+ .standalone
23
+ max-width: 100%
24
+ border: 1px solid var(--color-subtle)
25
+ border-radius: var(--border-radius)
26
+ padding: var(--spacing-xs)
27
+ margin-bottom: var(--spacing-md)
28
+
29
+ .scrollable
30
+ max-width: 100%
31
+ overflow: auto
32
+
33
+ .image
34
+ position: relative
35
+ display: block
36
+ max-width: 100%
37
+ margin: 0 auto
38
+
39
+ .image-scrollable
40
+ display: block
41
+ max-width: fit-content
42
+
43
+ .figure-fill
44
+ display: block
45
+ position: relative
46
+ width: 100%
47
+ img
48
+ object-fit: contain
49
+
50
+ .image-link
51
+ display: block
52
+
53
+ .google-sheet
54
+ width: 100%
55
+ margin-bottom: 1rem
western_ai/usa/spacy/website/src/styles/footer.module.sass ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .root
4
+ position: relative
5
+ padding: 2.5rem 0
6
+ overflow: auto
7
+ background: var(--color-subtle-light)
8
+ font: var(--font-size-md)/var(--line-height-md) var(--font-primary)
9
+
10
+ .content
11
+ padding: 2rem 7.5rem 3rem
12
+ margin: 0 auto
13
+ width: var(--width-content)
14
+ max-width: 100%
15
+
16
+ @include breakpoint(max, sm)
17
+ .content
18
+ padding: 3rem
19
+
20
+ .label
21
+ color: var(--color-subtle-dark)
22
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
23
+ text-transform: uppercase
24
+
25
+ .full
26
+ flex: 100%
27
+ grid-column: 1 / span 3
28
+
29
+ .column
30
+ margin-bottom: var(--spacing-md)
31
+
32
+ .copy
33
+ border-top: 1px dotted var(--color-subtle)
34
+ font-size: var(--font-size-xs)
35
+ color: var(--color-front-dark)
36
+ text-align: center
37
+ width: 100%
38
+
39
+ .logo
40
+ margin: 0 3rem
41
+ display: inline-block
42
+ vertical-align: middle
43
+
44
+ &:hover
45
+ color: var(--color-theme-dark)
western_ai/usa/spacy/website/src/styles/grid.module.sass ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @use 'sass:math'
2
+ @import base
3
+
4
+ $grid-gap-wide: 5rem
5
+ $grid-gap-narrow: 2rem
6
+ $flex-gap: 2rem
7
+
8
+ @mixin flex-fallback($cols, $gap: 0)
9
+ & > *
10
+ @if $gap == 0
11
+ flex: 0 0 100% / $cols
12
+ @else
13
+ flex: 0 0 calc(#{math.div(100%, $cols)} - #{$gap * ($cols - 1)})
14
+
15
+ .root
16
+ display: flex
17
+ flex-direction: row
18
+ flex-wrap: wrap
19
+ justify-content: space-between
20
+ grid-column-gap: $grid-gap-wide
21
+
22
+ & > *
23
+ min-width: 0
24
+
25
+ @supports(display: grid)
26
+ .root
27
+ display: grid
28
+
29
+ @include breakpoint(min, lg)
30
+ .root
31
+ grid-template-columns: 1fr
32
+
33
+ @each $name, $cols in (half: 2, third: 3, quarter: 4)
34
+ .#{$name}
35
+ @include flex-fallback($cols, $flex-gap)
36
+ grid-template-columns: repeat($cols, 1fr)
37
+
38
+ .narrow
39
+ grid-column-gap: $grid-gap-narrow
40
+
41
+ .spacing:not(:empty)
42
+ margin-bottom: var(--spacing-md)
western_ai/usa/spacy/website/src/styles/icon.module.sass ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ vertical-align: middle
3
+
4
+ .inline
5
+ margin: 0 0.55em 0 0.1em
6
+
7
+ .tag
8
+ vertical-align: bottom
9
+ height: 100%
10
+ position: relative
11
+ top: 1px
12
+
13
+ .success
14
+ color: var(--color-green-medium)
15
+
16
+ .error
17
+ color: var(--color-red-medium)
18
+
19
+ .subtle
20
+ color: var(--color-subtle-dark)
western_ai/usa/spacy/website/src/styles/infobox.module.sass ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ margin-bottom: var(--spacing-md)
3
+ font: var(--font-size-sm)/var(--line-height-md) var(--font-primary)
4
+ background: var(--color-subtle-light)
5
+ padding: 1.5rem 2rem 0.75rem 1.5rem
6
+ border-radius: var(--border-radius)
7
+ color: var(--color-dark)
8
+ border-left: 0.75rem solid var(--color-subtle-light)
9
+
10
+ p, pre, ul, ol
11
+ margin-bottom: var(--spacing-xs)
12
+
13
+ p, li
14
+ font-size: inherit
15
+ line-height: inherit
16
+
17
+ ul li
18
+ padding-left: 0.75em
19
+
20
+ .list ul li
21
+ font-size: var(--font-size-sm)
22
+ list-style: none
23
+ padding: 0
24
+ margin: 0 0 0.35rem 0
25
+
26
+ &:before
27
+ all: initial
28
+
29
+ a, a span
30
+ border-bottom: 0 !important
31
+
32
+ .title
33
+ font-weight: bold
34
+ color: var(--color-theme-dark)
35
+ display: block
36
+ margin-bottom: var(--spacing-xs)
37
+ font-size: var(--font-size-md)
38
+
39
+ code
40
+ font-weight: normal
41
+ color: inherit
42
+
43
+ .icon
44
+ color: var(--color-theme-dark)
45
+ vertical-align: baseline
46
+ position: relative
47
+ bottom: -2px
48
+
49
+ .emoji
50
+ margin-right: 0.65em
51
+
52
+ .warning
53
+ --color-theme: var(--color-yellow-dark)
54
+ --color-theme-dark: var(--color-yellow-dark)
55
+ --color-inline-code-bg: var(--color-yellow-opaque)
56
+ border-color: var(--color-yellow-medium)
57
+ background: var(--color-yellow-light)
58
+
59
+ .danger
60
+ --color-theme: var(--color-red-dark)
61
+ --color-theme-dark: var(--color-red-dark)
62
+ --color-inline-code-bg: var(--color-red-opaque)
63
+ border-color: var(--color-red-medium)
64
+ background: var(--color-red-light)
western_ai/usa/spacy/website/src/styles/landing.module.sass ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .header
4
+ background: var(--color-theme)
5
+ padding-top: var(--height-nav)
6
+ width: 100%
7
+ text-align: center
8
+ --header-top-margin: 27px
9
+
10
+ .header-wrapper
11
+ background: var(--color-theme)
12
+ background-position: center var(--header-top-margin)
13
+ background-repeat: repeat
14
+ width: 100%
15
+ background-size: 799px 643px
16
+
17
+ .header-content
18
+ background-position: center calc(-138px + var(--header-top-margin))
19
+ background-repeat: no-repeat
20
+ width: 100%
21
+ min-height: calc(573px + var(--header-top-margin))
22
+ background-size: 1444px 573px
23
+ padding-top: var(--header-top-margin)
24
+
25
+ .title
26
+ font: normal 600 7rem/#{1} var(--font-secondary)
27
+ color: var(--color-back)
28
+ text-align: center
29
+ margin-bottom: 0.75rem
30
+ padding: 0 1rem
31
+
32
+ @include breakpoint(max, sm)
33
+ .title
34
+ font-size: 4rem
35
+ padding-top: 1.5rem
36
+
37
+ .label
38
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
39
+ text-transform: uppercase
40
+ display: inline-block
41
+ border-radius: 1em
42
+ padding: 0 1rem 0.15rem
43
+ background: var(--color-back)
44
+ color: var(--color-theme)
45
+
46
+ .subtitle
47
+ margin-top: 1rem
48
+
49
+ .blocks
50
+ position: relative
51
+ top: -25rem
52
+ margin-bottom: -25rem
53
+
54
+ .card
55
+ display: flex
56
+ flex-direction: column
57
+ padding: 3rem 2.5rem
58
+ background: var(--color-back)
59
+ border-radius: var(--border-radius)
60
+ box-shadow: var(--box-shadow)
61
+ margin-bottom: 3rem
62
+
63
+ .card-text
64
+ flex: 100%
65
+
66
+ .button
67
+ width: 100%
68
+
69
+ .demo
70
+ flex: 0 0 66%
71
+ grid-column: 1 / span 2
72
+
73
+ .banner-grid
74
+ grid-gap: 0
75
+
76
+ & > *
77
+ flex-basis: 50%
78
+
79
+ .banner
80
+ background: var(--color-theme)
81
+ color: var(--color-back)
82
+ padding: 1rem 5rem
83
+ margin-bottom: var(--spacing-md)
84
+ background-size: cover
85
+
86
+ .banner-content
87
+ margin-bottom: 0
88
+ height: 100%
89
+
90
+ a, a:hover
91
+ color: inherit
92
+
93
+ .banner-content-small
94
+ display: block
95
+ margin-bottom: 0 !important
96
+
97
+ .banner-title
98
+ display: block
99
+ margin-top: 1.5rem
100
+ margin-bottom: 0.5em
101
+
102
+ .banner-label
103
+ margin-bottom: 1rem
104
+
105
+ .banner-text
106
+ font-weight: 500
107
+
108
+ strong
109
+ font-weight: 800
110
+
111
+ p
112
+ font-size: 1.5rem
113
+
114
+ .banner-text-small p
115
+ font-size: 1.35rem
116
+ margin-bottom: 1.5rem
117
+
118
+ @include breakpoint(min, md)
119
+ .banner-content
120
+ padding: 0 6.5rem 0 4rem
121
+
122
+ .banner-content-small
123
+ padding: 0 2.25rem 1rem
124
+
125
+ .banner-text
126
+ padding-top: 7rem
127
+ grid-column: 2 / span 2
128
+ flex: 0 0 66%
129
+
130
+ .banner-text-small
131
+ padding-top: 1rem
132
+ grid-column: unset
133
+ flex: 0 0 100%
134
+ padding-right: 2rem
135
+
136
+ @include breakpoint(max, md)
137
+ .banner
138
+ padding: 1rem 3rem
139
+
140
+ .banner-content
141
+ display: block
142
+
143
+ .banner-text
144
+ padding-top: 0
145
+
146
+ .grid
147
+ grid-template-columns: 1fr !important
148
+
149
+ .banner-button
150
+ margin-bottom: var(--spacing-sm)
151
+ text-align: right
152
+
153
+ .banner-button-element
154
+ background: var(--color-theme)
western_ai/usa/spacy/website/src/styles/layout.sass ADDED
@@ -0,0 +1,545 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ /* Theme */
4
+
5
+ \:root
6
+ // Sizes
7
+ --height-nav: 55px
8
+ --width-content: 1250px
9
+ --width-sidebar: 235px
10
+ --width-aside: 27.5vw
11
+
12
+ // Fonts
13
+ --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'
14
+ --font-secondary: 'HK Grotesk', Roboto, Helvetica, Arial, sans-serif
15
+ --font-code: "Jetbrains Mono", Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace
16
+
17
+ // Font Sizes
18
+ --font-size-xs: 1.1rem
19
+ --font-size-sm: 1.3rem
20
+ --font-size-md: 1.35rem
21
+ --font-size-lg: 1.4rem
22
+ --font-size-code: 1.2rem
23
+
24
+ --line-height-xs: 1.25
25
+ --line-height-sm: 1.375
26
+ --line-height-md: 1.5
27
+ --line-height-lg: 1.9
28
+ --line-height-code: 1.7
29
+
30
+ // Spacing
31
+ --spacing-xs: 1rem
32
+ --spacing-sm: 2rem
33
+ --spacing-md: 4rem
34
+ --spacing-lg: 6rem
35
+
36
+ // Theme Colors
37
+ --color-theme-blue: hsl(195, 92%, 44%)
38
+ --color-theme-blue-dark: hsl(195, 92%, 34%)
39
+ --color-theme-blue-light: hsla(195, 92%, 44%, 0.06)
40
+ --color-theme-blue-opaque: hsla(195, 92%, 44%, 0.11)
41
+
42
+ --color-theme-green: hsl(164, 94%, 35%)
43
+ --color-theme-green-dark: hsl(164, 94%, 25%)
44
+ --color-theme-green-light: hsla(164, 94%, 35%, 0.06)
45
+ --color-theme-green-opaque: hsla(164, 94%, 35%, 0.11)
46
+
47
+ --color-theme-purple: hsl(255, 61%, 54%)
48
+ --color-theme-purple-dark: hsl(255, 61%, 44%)
49
+ --color-theme-purple-light: hsla(255, 61%, 54%, 0.06)
50
+ --color-theme-purple-opaque: hsla(255, 61%, 54%, 0.11)
51
+
52
+ --color-theme-nightly: hsl(257, 99%, 67%)
53
+ --color-theme-nightly-dark: hsl(257, 99%, 57%)
54
+ --color-theme-nightly-light: hsla(257, 99%, 67%, 0.06)
55
+ --color-theme-nightly-opaque: hsla(257, 99%, 67%, 0.11)
56
+
57
+ --color-theme-legacy: #6f6f6f
58
+ --color-theme-legacy-dark: hsl(257, 0%, 35%)
59
+ --color-theme-legacy-light: hsla(257, 0%, 67%, 0.06)
60
+ --color-theme-legacy-opaque: hsla(257, 0%, 67%, 0.11)
61
+
62
+ // Regular colors
63
+ --color-back: hsl(0, 0%, 100%)
64
+ --color-front: hsl(213, 15%, 12%)
65
+ --color-dark: hsl(214, 15%, 32%)
66
+ --color-dark-secondary: hsl(214, 14%, 22%)
67
+ --color-subtle-opaque: hsla(0, 0%, 96%, 0.56)
68
+ --color-subtle: hsla(0, 0%, 0%, 0.13)
69
+ --color-subtle-light: hsla(0, 0%, 0%, 0.04)
70
+ --color-subtle-dark: hsla(162, 5%, 0%, 0.55)
71
+ --color-subtle-on-dark: hsla(0, 0%, 100%, 0.87)
72
+
73
+ --color-green-medium: hsl(108, 66%, 63%)
74
+ --color-green-transparent: hsla(108, 66%, 63%, 0.12)
75
+ --color-red-light: hsl(355, 100%, 96%)
76
+ --color-red-medium: hsl(346, 84%, 61%)
77
+ --color-red-dark: hsl(332, 64%, 34%)
78
+ --color-red-opaque: hsl(346, 96%, 89%)
79
+ --color-red-transparent: hsla(346, 84%, 61%, 0.12)
80
+ --color-yellow-light: hsl(46, 100%, 95%)
81
+ --color-yellow-medium: hsl(45, 90%, 55%)
82
+ --color-yellow-dark: hsl(44, 94%, 27%)
83
+ --color-yellow-opaque: hsl(45, 90%, 87%)
84
+
85
+ // Syntax Highlighting
86
+ --syntax-comment: hsl(162, 5%, 60%)
87
+ --syntax-tag: hsl(266, 72%, 72%)
88
+ --syntax-number: var(--syntax-tag)
89
+ --syntax-selector: hsl(31, 100%, 71%)
90
+ --syntax-function: hsl(195, 70%, 54%)
91
+ --syntax-keyword: hsl(343, 100%, 68%)
92
+ --syntax-operator: var(--syntax-keyword)
93
+
94
+ // Other
95
+ --color-inline-code-text: var(--color-dark)
96
+ --color-inline-code-bg: var(--color-subtle-light)
97
+
98
+ --color-shadow: hsla(0, 0%, 0%, 0.2)
99
+ --box-shadow: 0 1px 5px var(--color-shadow)
100
+ --border-radius: 6px
101
+
102
+ /* Theming */
103
+ .theme-blue
104
+ --color-theme: var(--color-theme-blue)
105
+ --color-theme-dark: var(--color-theme-blue-dark)
106
+ --color-theme-light: var(--color-theme-blue-light)
107
+ --color-theme-opaque: var(--color-theme-blue-opaque)
108
+
109
+ .theme-green
110
+ --color-theme: var(--color-theme-green)
111
+ --color-theme-dark: var(--color-theme-green-dark)
112
+ --color-theme-light: var(--color-theme-green-light)
113
+ --color-theme-opaque: var(--color-theme-green-opaque)
114
+
115
+ .theme-purple
116
+ --color-theme: var(--color-theme-purple)
117
+ --color-theme-dark: var(--color-theme-purple-dark)
118
+ --color-theme-light: var(--color-theme-purple-light)
119
+ --color-theme-opaque: var(--color-theme-purple-opaque)
120
+
121
+ .theme-nightly
122
+ --color-theme: var(--color-theme-nightly)
123
+ --color-theme-dark: var(--color-theme-nightly-dark)
124
+ --color-theme-light: var(--color-theme-nightly-light)
125
+ --color-theme-opaque: var(--color-theme-nightly-opaque)
126
+
127
+ .theme-legacy
128
+ --color-theme: var(--color-theme-legacy)
129
+ --color-theme-dark: var(--color-theme-legacy-dark)
130
+ --color-theme-light: var(--color-theme-legacy-light)
131
+ --color-theme-opaque: var(--color-theme-legacy-opaque)
132
+
133
+
134
+ /* Fonts */
135
+
136
+ @font-face
137
+ font-family: "HK Grotesk"
138
+ font-style: normal
139
+ font-weight: 500
140
+ src: url("../fonts/hkgrotesk-semibold.woff2") format("woff2"), url("../fonts/hkgrotesk-semibold.woff") format("woff")
141
+ font-display: swap
142
+
143
+ @font-face
144
+ font-family: "HK Grotesk"
145
+ font-style: italic
146
+ font-weight: 500
147
+ src: url("../fonts/hkgrotesk-semibolditalic.woff2") format("woff2"), url("../fonts/hkgrotesk-semibolditalic.woff") format("woff")
148
+ font-display: swap
149
+
150
+ @font-face
151
+ font-family: "HK Grotesk"
152
+ font-style: normal
153
+ font-weight: 600
154
+ src: url("../fonts/hkgrotesk-bold.woff2") format("woff2"), url("../fonts/hkgrotesk-bold.woff") format("woff")
155
+ font-display: swap
156
+
157
+ @font-face
158
+ font-family: "HK Grotesk"
159
+ font-style: italic
160
+ font-weight: 600
161
+ src: url("../fonts/hkgrotesk-bolditalic.woff2") format("woff2"), url("../fonts/hkgrotesk-bolditalic.woff") format("woff")
162
+ font-display: swap
163
+
164
+ @font-face
165
+ font-family: "JetBrains Mono"
166
+ font-style: normal
167
+ font-weight: 500
168
+ font-display: fallback
169
+ src: url("../fonts/jetbrainsmono-regular.woff") format("woff"), url("../fonts/jetbrainsmono-regular.woff2") format("woff2")
170
+
171
+ @font-face
172
+ font-family: "JetBrains Mono"
173
+ font-style: italic
174
+ font-weight: 500
175
+ font-display: fallback
176
+ src: url("../fonts/jetbrainsmono-italic.woff") format("woff"), url("../fonts/jetbrainsmono-italic.woff2") format("woff2")
177
+
178
+
179
+ /* Reset */
180
+
181
+ *, *:before, *:after
182
+ box-sizing: border-box
183
+ padding: 0
184
+ margin: 0
185
+ border: 0
186
+ outline: 0
187
+
188
+ html
189
+ font-family: sans-serif
190
+ text-rendering: optimizeSpeed
191
+ -ms-text-size-adjust: 100%
192
+ -webkit-text-size-adjust: 100%
193
+ -webkit-font-smoothing: antialiased
194
+ -moz-osx-font-smoothing: grayscale
195
+
196
+ body
197
+ margin: 0
198
+
199
+ article, aside, details, figcaption, figure, footer, header, main, menu, nav,
200
+ section, summary, progress
201
+ display: block
202
+
203
+ a
204
+ background-color: transparent
205
+ color: inherit
206
+ text-decoration: none
207
+
208
+ &:active,
209
+ &:hover
210
+ outline: 0
211
+
212
+ abbr[title]
213
+ border-bottom: none
214
+ text-decoration: underline
215
+ text-decoration: underline dotted
216
+
217
+ b, strong
218
+ font-weight: inherit
219
+ font-weight: bolder
220
+
221
+ small
222
+ font-size: 80%
223
+
224
+ sub, sup
225
+ position: relative
226
+ font-size: 65%
227
+ line-height: 0
228
+ vertical-align: baseline
229
+
230
+ sup
231
+ top: -0.5em
232
+
233
+ sub
234
+ bottom: -0.15em
235
+
236
+ img
237
+ border: 0
238
+ height: auto
239
+ max-width: 100%
240
+
241
+ svg
242
+ max-width: 100%
243
+ color-interpolation-filters: sRGB
244
+ fill: currentColor
245
+
246
+ &:not(:root)
247
+ overflow: hidden
248
+
249
+ hr
250
+ box-sizing: content-box
251
+ overflow: visible
252
+ height: 0
253
+
254
+ pre
255
+ overflow: auto
256
+
257
+ code, pre
258
+ font-family: var(--font-code)
259
+ font-size: var(--font-size-code)
260
+ font-variant-ligatures: none
261
+ -webkit-font-smoothing: subpixel-antialiased
262
+ -moz-osx-font-smoothing: auto
263
+
264
+ table
265
+ text-align: left
266
+ width: 100%
267
+ max-width: 100%
268
+ border-collapse: collapse
269
+
270
+ td, th
271
+ vertical-align: top
272
+
273
+ ul, ol
274
+ list-style: none
275
+
276
+ input, button
277
+ appearance: none
278
+ background: transparent
279
+
280
+ button
281
+ cursor: pointer
282
+
283
+ progress
284
+ appearance: none
285
+
286
+ /* Layout */
287
+
288
+ html
289
+ font-size: 11px
290
+
291
+ body
292
+ background: var(--color-back)
293
+ color: var(--color-front)
294
+
295
+ p
296
+ margin-bottom: var(--spacing-sm)
297
+ font-family: var(--font-primary)
298
+ font-size: var(--font-size-md)
299
+ line-height: var(--line-height-md)
300
+
301
+ &:empty
302
+ margin-bottom: 0
303
+
304
+ a:focus
305
+ outline: 1px dotted var(--color-theme-dark)
306
+
307
+ body [id]:target
308
+ padding-top: calc(var(--height-nav) * 1.25) !important
309
+
310
+ ::selection
311
+ background: var(--color-theme-dark)
312
+ color: var(--color-back)
313
+ text-shadow: none
314
+
315
+ // Footnotes
316
+
317
+ .footnotes
318
+ border-top: 1px dotted var(--color-subtle)
319
+ color: var(--color-dark)
320
+
321
+ li
322
+ font-size: var(--font-size-xs)
323
+
324
+ .footnote-backref
325
+ border: none
326
+ margin-left: 1rem
327
+ display: inline-block
328
+ width: 1em
329
+ line-height: 1
330
+ overflow: hidden
331
+
332
+ &:before
333
+ content: "\21A9\FE0E"
334
+ width: 1em
335
+
336
+ hr
337
+ display: none
338
+
339
+
340
+ // Prism
341
+
342
+ [class*="language-"] .token
343
+ &.comment, &.prolog, &.doctype, &.cdata, &.punctuation
344
+ color: var(--syntax-comment)
345
+
346
+ &.property, &.tag, &.symbol
347
+ color: var(--syntax-tag)
348
+
349
+ &.boolean, &.number
350
+ color: var(--syntax-number)
351
+
352
+ &.attr-name, &.string, &.char, &.builtin, &.attr-value
353
+ color: var(--syntax-selector)
354
+
355
+ @at-root .language-css .token.string,
356
+ &.operator, &.entity, &.url, &.variable
357
+ color: var(--syntax-operator)
358
+
359
+ &.atrule, &.function, &.selector
360
+ color: var(--syntax-function)
361
+
362
+ &.keyword
363
+ color: var(--syntax-keyword)
364
+
365
+ &.inserted, &.deleted
366
+ padding: 2px 0
367
+ border-radius: 2px
368
+ opacity: 0.9
369
+
370
+ &.inserted
371
+ color: var(--color-green-medium)
372
+ background: var(--color-green-transparent)
373
+
374
+ &.deleted
375
+ color: var(--color-red-medium)
376
+ background: var(--color-red-transparent)
377
+
378
+ &.italic
379
+ font-style: italic
380
+
381
+
382
+ [class*="language-"].type-annotation .token
383
+ &.builtin, &.boolean, &.number
384
+ color: var(--color-inline-code-text)
385
+
386
+ &.operator
387
+ color: var(--syntax-comment)
388
+
389
+ [class*="language-bash"] .token
390
+ &.function
391
+ color: var(--color-subtle-on-dark)
392
+
393
+ &.operator, &.variable
394
+ color: var(--syntax-comment)
395
+
396
+ // Settings for ini syntax (config files)
397
+ [class*="language-ini"]
398
+ color: var(--syntax-comment)
399
+
400
+ .token
401
+ color: var(--color-subtle-on-dark)
402
+
403
+ .gatsby-highlight-code-line
404
+ background-color: var(--color-dark-secondary)
405
+ border-left: 0.35em solid var(--color-theme)
406
+ display: block
407
+ margin-right: -1.5em
408
+ margin-left: -1.5em
409
+ padding-right: 1.5em
410
+ padding-left: 1.2em
411
+
412
+ &:empty:before
413
+ // Fix issue where empty lines would disappear
414
+ content: " "
415
+
416
+ // Jupyter
417
+
418
+ .jp-RenderedText pre
419
+ .ansi-cyan-fg.ansi-cyan-fg
420
+ color: var(--syntax-function)
421
+
422
+ .ansi-green-fg.ansi-green-fg
423
+ color: var(--color-green-medium)
424
+
425
+ .ansi-red-fg.ansi-red-fg
426
+ color: var(--syntax-operator)
427
+
428
+ .jp-OutputArea
429
+ &:not(:empty)
430
+ padding: 2rem 2rem 1rem
431
+ border-top: 1px solid var(--color-dark)
432
+ margin-top: 2rem
433
+
434
+ .entities, svg
435
+ white-space: initial
436
+ font-family: inherit
437
+
438
+ .entities
439
+ font-size: 1.35rem
440
+
441
+ .displacy
442
+ margin-top: 1rem
443
+ font-family: var(--font-primary) !important
444
+ color: var(--color-subtle) !important
445
+ background: var(--color-front) !important
446
+
447
+ .jp-OutputArea pre
448
+ font: inherit
449
+
450
+ .jp-OutputPrompt.jp-OutputArea-prompt
451
+ padding-top: 0.5em
452
+ margin-right: 1rem
453
+ font-family: inherit
454
+ font-weight: bold
455
+
456
+ /* Tooltips */
457
+
458
+ [data-tooltip]
459
+ position: relative
460
+
461
+ @include breakpoint(min, sm)
462
+ [data-tooltip][data-tooltip-style="code"]:before
463
+ -webkit-font-smoothing: subpixel-antialiased
464
+ -moz-osx-font-smoothing: auto
465
+ padding: 0.35em 0.85em 0.45em
466
+ font-family: var(--font-code)
467
+ white-space: nowrap
468
+ min-width: auto
469
+
470
+ [data-tooltip]:before
471
+ font: normal var(--font-size-xs)/var(--line-height-xs) var(--font-primary)
472
+ position: absolute
473
+ top: 125%
474
+ left: 50%
475
+ display: inline-block
476
+ content: attr(data-tooltip)
477
+ background: var(--color-front)
478
+ border-radius: var(--border-radius)
479
+ box-shadow: var(--box-shadow)
480
+ border: 1px solid var(--color-dark)
481
+ color: var(--color-back)
482
+ text-transform: none
483
+ text-align: left
484
+ opacity: 0
485
+ transform: translateX(-50%) translateY(-2px)
486
+ transition: opacity 0.1s ease-out, transform 0.1s ease-out
487
+ visibility: hidden
488
+ max-width: 300px
489
+ min-width: 200px
490
+ padding: 0.75em 1em 1em
491
+ z-index: 200
492
+ white-space: pre-wrap
493
+
494
+ [data-tooltip]:hover:before
495
+ opacity: 1
496
+ transform: translateX(-50%) translateY(0)
497
+ visibility: visible
498
+
499
+ /* Gatsby Images */
500
+
501
+ .gatsby-resp-image-figure
502
+ margin-bottom: var(--spacing-md)
503
+
504
+ .gatsby-resp-image-figcaption, .caption
505
+ font: var(--font-size-xs)/var(--line-height-md) var(--font-primary)
506
+ color: var(--color-subtle-dark)
507
+ padding-top: 0.75rem
508
+ padding-left: 3rem
509
+
510
+ p
511
+ font: inherit
512
+
513
+ code, a
514
+ color: inherit
515
+
516
+
517
+ /* Algolia DocSearch */
518
+
519
+ @include breakpoint(max, xs)
520
+ .algolia-autocomplete .ds-dropdown-menu
521
+ max-width: 90vw !important
522
+ min-width: 90vw !important
523
+
524
+ .algolia-autocomplete .algolia-docsearch-suggestion--category-header
525
+ display: block
526
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
527
+ text-transform: uppercase
528
+ color: var(--color-theme-dark)
529
+
530
+ .algolia-autocomplete .algolia-docsearch-suggestion--subcategory-column
531
+ color: var(--color-dark)
532
+
533
+ .algolia-autocomplete .algolia-docsearch-suggestion--title
534
+ font-size: var(--font-size-sm)
535
+
536
+ .algolia-autocomplete .ds-dropdown-menu .ds-suggestion.ds-cursor .algolia-docsearch-suggestion--content
537
+ background: var(--color-subtle-opaque) !important
538
+
539
+ .algolia-autocomplete .algolia-docsearch-suggestion--text
540
+ font-size: var(--font-size-sm)
541
+
542
+ .algolia-autocomplete .algolia-docsearch-suggestion--highlight
543
+ box-shadow: none !important
544
+ background: var(--color-theme-opaque) !important
545
+ color: var(--color-theme-dark) !important
western_ai/usa/spacy/website/src/styles/link.module.sass ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ color: var(--color-theme-dark)
3
+ border-bottom: 1px solid
4
+ transition: color 0.2s ease
5
+ cursor: pointer
6
+
7
+ &:hover
8
+ color: var(--color-front)
9
+
10
+ .no-link-layout
11
+ border: none
12
+ color: inherit
13
+
14
+ &:hover
15
+ color: inherit
16
+
17
+ .icon
18
+ margin-left: 0.5em
19
+ width: 1.1em
20
+ height: 1.1em
21
+
22
+ .nowrap
23
+ white-space: nowrap
24
+ display: inline-block
25
+
26
+ .with-icon
27
+ border: none
28
+
29
+ .source-text
30
+ border-bottom: 1px solid
western_ai/usa/spacy/website/src/styles/list.module.sass ADDED
@@ -0,0 +1,61 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .ol, .ul
2
+ margin-bottom: var(--spacing-md)
3
+ font: var(--font-size-md)/var(--line-height-md) var(--font-primary)
4
+
5
+ .ol
6
+ counter-reset: li
7
+
8
+ li:before
9
+ content: counter(li, decimal) '.'
10
+ font-size: 1em
11
+ padding-right: 1rem
12
+ padding-top: 0
13
+
14
+ .li
15
+ padding-left: 2rem
16
+ margin-bottom: 0.5em
17
+ margin-left: 1.25rem
18
+
19
+ p
20
+ display: inline-block
21
+ margin-bottom: var(--spacing-sm)
22
+
23
+ .ol, .ul
24
+ margin-top: var(--spacing-xs)
25
+ margin-bottom: var(--spacing-xs)
26
+
27
+ &:before
28
+ content: '\25CF'
29
+ position: relative
30
+ bottom: 1px
31
+ display: inline-block
32
+ font-size: 0.6em
33
+ font-weight: bold
34
+ padding-right: 1.5em
35
+ padding-top: 0.5em
36
+ margin-left: -3.75rem
37
+ text-align: right
38
+ width: 2.5rem
39
+ counter-increment: li
40
+ box-sizing: content-box
41
+ vertical-align: top
42
+
43
+ .emoji:before
44
+ content: attr(data-emoji)
45
+ padding-right: 0.75em
46
+ padding-top: 0
47
+ margin-left: -2.5em
48
+ width: 1.75em
49
+ text-align: right
50
+ font-size: 1em
51
+ position: static
52
+
53
+ .li-icon
54
+ text-indent: calc(-20px - 0.55em)
55
+
56
+ &:before
57
+ content: ""
58
+
59
+ .ul .ul &
60
+ text-indent: initial
61
+ margin-left: -20px
western_ai/usa/spacy/website/src/styles/main.module.sass ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .root
4
+ max-width: 100%
5
+ min-height: 100vh
6
+
7
+ @include breakpoint(min, md)
8
+ .root
9
+ padding: var(--height-nav) 0 0 0
10
+
11
+ .with-sidebar
12
+ margin-left: var(--width-sidebar)
13
+
14
+ .with-asides
15
+ margin-right: var(--width-aside)
16
+ position: relative
17
+
18
+ .asides
19
+ position: absolute
20
+ top: 0
21
+ left: 100%
22
+ width: var(--width-aside)
23
+ height: 100%
24
+ content: ""
25
+ display: block
26
+ background-color: var(--color-theme)
27
+ background-repeat: repeat
28
+ background-position: center top
29
+ background-size: 799px 643px
30
+ z-index: -1
31
+ min-height: 100vh
32
+
33
+ .content
34
+ padding: 3rem 7.5rem
35
+ margin: 0 auto
36
+ width: var(--width-content)
37
+ max-width: 100%
38
+
39
+ @include breakpoint(max, sm)
40
+ .content
41
+ padding: 3rem
western_ai/usa/spacy/website/src/styles/navigation.module.sass ADDED
@@ -0,0 +1,127 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .root
4
+ position: fixed
5
+ top: 0
6
+ left: 0
7
+ width: 100%
8
+ height: var(--height-nav)
9
+ background: var(--color-back)
10
+ color: var(--color-front)
11
+ align-items: center
12
+ display: flex
13
+ justify-content: space-between
14
+ flex-flow: row nowrap
15
+ padding: 0 0 0 1rem
16
+ z-index: 30
17
+ width: 100%
18
+ box-shadow: var(--box-shadow)
19
+ --docsearch-muted-color: var(--color-subtle-dark)
20
+ --docsearch-text-color: var(--docsearch-muted-color)
21
+ --docsearch-searchbox-background: var(--color-subtle-light)
22
+
23
+ .logo
24
+ min-width: 95px
25
+ width: 95px
26
+ height: 30px
27
+ color: var(--color-theme-dark) !important
28
+ vertical-align: middle
29
+
30
+ .title
31
+ display: none
32
+
33
+ .list
34
+ display: flex
35
+ flex-flow: row nowrap
36
+ border-color: inherit
37
+ justify-content: flex-end
38
+ margin-bottom: 0.25rem
39
+
40
+ .item
41
+ display: inline-flex
42
+ align-items: center
43
+ height: 100%
44
+ text-transform: uppercase
45
+ font-family: var(--font-secondary)
46
+ font-size: 1.6rem
47
+ font-weight: bold
48
+ color: var(--color-theme-dark)
49
+
50
+ &:not(:first-child)
51
+ margin-left: 2em
52
+
53
+ &:last-child
54
+ padding-right: 2rem
55
+
56
+ &:first-child
57
+ padding-left: 2rem
58
+
59
+ .menu
60
+ display: flex
61
+ flex-flow: row nowrap
62
+ margin-left: 0.5rem
63
+
64
+ .is-active
65
+ color: var(--color-dark)
66
+ pointer-events: none
67
+
68
+ .search
69
+ display: inline-flex
70
+ align-items: center
71
+ height: 100%
72
+ padding-right: 2rem
73
+
74
+ .github
75
+ text-transform: initial
76
+ margin-top: 0.25rem
77
+ margin-left: 1.5em !important
78
+
79
+ & > span
80
+ min-width: 100px
81
+
82
+ .dropdown
83
+ --dropdown-text-color: var(--color-theme-dark)
84
+ font-family: var(--font-secondary)
85
+ font-size: 1.6rem
86
+ font-weight: bold
87
+ color: var(--color-theme-dark)
88
+ text-transform: uppercase
89
+ margin-right: 0.5rem
90
+ border: 2px solid var(--color-back)
91
+ border-radius: 2em
92
+
93
+ &:focus
94
+ border: 2px dotted var(--color-theme)
95
+ outline: none
96
+
97
+ .has-alert
98
+ display: inline-flex
99
+ flex-flow: row nowrap
100
+ align-items: center
101
+
102
+ .alert
103
+ font-size: 1.2rem
104
+ font-family: var(--font-primary)
105
+ display: inline-block
106
+ background: var(--color-yellow-opaque)
107
+ color: var(--color-dark)
108
+ border-radius: var(--border-radius)
109
+ margin-left: var(--spacing-xs)
110
+ padding: 0.5rem
111
+ line-height: var(--line-height-xs)
112
+ text-align: center
113
+
114
+ @include breakpoint(max, md)
115
+ .alert
116
+ display: none
117
+
118
+ @include breakpoint(max, xs)
119
+ .list
120
+ display: none
121
+
122
+ .has-alert
123
+ display: inline
124
+
125
+ @include breakpoint(min, sm)
126
+ .dropdown
127
+ display: none
western_ai/usa/spacy/website/src/styles/newsletter.module.sass ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ font: var(--font-size-sm)/var(--line-height-sm) var(--font-primary)
3
+ margin: var(--spacing-xs) 0
4
+ background: var(--color-back)
5
+ border-radius: 2em
6
+ border: 1px solid var(--color-subtle)
7
+ padding-right: 1em
8
+ display: inline-flex
9
+ max-width: 300px
10
+
11
+ .input
12
+ font: inherit
13
+ background: transparent
14
+ padding: 0.5em 1em
15
+ margin: 0 0 0.25rem 0.25rem
16
+ flex: 100%
17
+
18
+ .button
19
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
20
+ text-transform: uppercase
21
+ color: var(--color-theme-dark)
22
+ white-space: nowrap
western_ai/usa/spacy/website/src/styles/progress.module.sass ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ display: block
3
+ flex: 105%
4
+ width: 105%
5
+ height: 3px
6
+ color: var(--color-theme)
7
+ background: transparent
8
+ border: none
9
+ position: absolute
10
+ bottom: 0
11
+ left: -2.5%
12
+
13
+ &::-webkit-progress-bar
14
+ background: var(--color-back)
15
+ border-radius: none
16
+
17
+ &::-webkit-progress-value
18
+ background: var(--color-theme)
19
+ border-radius: none
20
+
21
+ &::-moz-progress-bar
22
+ background: var(--color-theme)
western_ai/usa/spacy/website/src/styles/quickstart.module.sass ADDED
@@ -0,0 +1,215 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @use 'sass:math'
2
+ @import base
3
+
4
+ .root
5
+ font: var(--font-size-sm)/var(--line-height-sm) var(--font-primary)
6
+ margin-bottom: var(--spacing-md)
7
+ border-radius: var(--border-radius)
8
+ background: var(--color-subtle-light)
9
+ padding-top: 1rem
10
+
11
+ .title
12
+ padding: 0 2rem
13
+ margin-bottom: 2rem
14
+
15
+ a:before
16
+ content: ""
17
+
18
+ .description
19
+ padding: 0 2rem
20
+
21
+ .group
22
+ padding: 0.75rem 2rem 0
23
+ border: none
24
+
25
+ @include breakpoint(min, md)
26
+ .group
27
+ display: flex
28
+ flex-flow: row nowrap
29
+
30
+ .input
31
+ // Hide inputs while keeping them focussable
32
+ opacity: 0
33
+ width: 0
34
+ height: 0
35
+ position: absolute
36
+ left: -9999px
37
+
38
+ .label
39
+ cursor: pointer
40
+ display: inline-block
41
+ padding: 0.35rem 0.5rem 0.25rem 0
42
+ margin: 0 1rem 0.5rem 0
43
+ font-size: var(--font-size-xs)
44
+ font-weight: bold
45
+
46
+ &:hover
47
+ background: var(--color-subtle-light)
48
+
49
+ .input:focus
50
+ border: 1px solid var(--color-theme-dark)
51
+ outline: none
52
+
53
+ .radio + &
54
+ margin: 0 0 0.75rem 0
55
+ border-radius: 0
56
+ border-width: 1px 0 1px 1px
57
+ border-style: solid
58
+ border-color: var(--color-subtle)
59
+ background: var(--color-back)
60
+ padding: 0.65rem 1.25rem
61
+
62
+ &:nth-child(2) // first child is checkbox
63
+ border-top-left-radius: var(--border-radius)
64
+ border-bottom-left-radius: var(--border-radius)
65
+
66
+ &:nth-last-child(2) // last child is additional container
67
+ border-top-right-radius: var(--border-radius)
68
+ border-bottom-right-radius: var(--border-radius)
69
+ border-right-width: 1px
70
+
71
+ .radio:checked + &
72
+ color: var(--color-back)
73
+ border-color: var(--color-theme-dark)
74
+ background: var(--color-theme-dark)
75
+
76
+ .checkbox + &:before
77
+ $size: 18px
78
+ content: ""
79
+ display: inline-block
80
+ width: $size
81
+ height: $size
82
+ border: 1px solid var(--color-subtle)
83
+ vertical-align: middle
84
+ margin-right: 0.5rem
85
+ cursor: pointer
86
+ border-radius: math.div($size, 4)
87
+ background: var(--color-back)
88
+ position: relative
89
+ top: -1px
90
+
91
+ .checkbox:checked + &:before
92
+ // Embed "check" icon here for simplicity
93
+ background: var(--color-theme-dark) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0Ij4gICAgPHBhdGggZmlsbD0iI2ZmZiIgZD0iTTkgMTYuMTcybDEwLjU5NC0xMC41OTQgMS40MDYgMS40MDYtMTIgMTItNS41NzgtNS41NzggMS40MDYtMS40MDZ6Ii8+PC9zdmc+)
94
+ background-size: contain
95
+ border-color: var(--color-theme-dark)
96
+
97
+ .field-extra:not(:empty):not(:first-child)
98
+ margin-left: 1rem
99
+
100
+ .legend
101
+ color: var(--color-dark)
102
+ padding: 0.75rem 0
103
+ flex: 1 1 35%
104
+ font-weight: bold
105
+
106
+ .fields
107
+ flex: 100%
108
+
109
+ .select
110
+ cursor: pointer
111
+ border: 1px solid var(--color-subtle)
112
+ border-radius: var(--border-radius)
113
+ display: inline-block
114
+ padding: 0.35rem 1.25rem
115
+ margin: 0 1rem 0.75rem 0
116
+ font-size: var(--font-size-sm)
117
+ background: var(--color-back)
118
+
119
+ .select-hidden
120
+ display: none
121
+
122
+ .text-input
123
+ border: 1px solid var(--color-subtle)
124
+ border-radius: var(--border-radius)
125
+ display: inline-block
126
+ padding: 0.35rem 0.75rem
127
+ font-size: var(--font-size-sm)
128
+ background: var(--color-back)
129
+
130
+ .code
131
+ background: var(--color-front)
132
+ color: var(--color-back)
133
+ padding: 0.75em 0
134
+ overflow: auto
135
+ width: 100%
136
+ max-width: 100%
137
+ margin: 1rem 0 0
138
+ border-bottom-left-radius: var(--border-radius)
139
+ border-bottom-right-radius: var(--border-radius)
140
+ -webkit-font-smoothing: subpixel-antialiased
141
+ -moz-osx-font-smoothing: auto
142
+ position: relative
143
+
144
+ .results
145
+ display: block
146
+ font: normal normal var(--font-size-lg)/var(--line-height-lg) var(--font-code)
147
+ line-height: 2
148
+ padding: 1em 2em
149
+
150
+ & > span
151
+ display: block
152
+
153
+ a
154
+ text-decoration: underline
155
+
156
+ .small
157
+ font-size: var(--font-size-code)
158
+ line-height: 1.65
159
+ white-space: pre-wrap
160
+ max-height: 400px
161
+ overflow-y: auto
162
+
163
+ & > span
164
+ display: inline
165
+
166
+ .hide-prompts .prompt:before
167
+ content: initial !important
168
+
169
+ .prompt:before
170
+ color: var(--color-theme-dark)
171
+ margin-right: 1em
172
+
173
+ .bash:before
174
+ content: "$"
175
+
176
+ .python:before
177
+ content: ">>>"
178
+
179
+ .comment
180
+ color: var(--syntax-comment)
181
+
182
+ .divider
183
+ padding: 1.5rem 0
184
+
185
+ .help
186
+ color: var(--color-subtle-dark)
187
+
188
+ .input:checked + .label &
189
+ color: inherit
190
+
191
+ .copy-area
192
+ width: 1px
193
+ height: 1px
194
+ opacity: 0
195
+ position: absolute
196
+
197
+ .menu
198
+ color: var(--color-subtle-on-dark)
199
+ padding-right: 1.5rem
200
+ display: inline-block
201
+ position: absolute
202
+ bottom: var(--spacing-xs)
203
+ right: 0
204
+
205
+ .icon-button
206
+ display: inline-block
207
+ color: inherit
208
+ cursor: pointer
209
+ transition: transform 0.05s ease
210
+
211
+ &:not(:last-child)
212
+ margin-right: 1.5rem
213
+
214
+ &:hover
215
+ transform: scale(1.1)
western_ai/usa/spacy/website/src/styles/readnext.module.sass ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ display: flex
3
+ justify-content: flex-end
4
+ align-items: center
5
+ text-align: right
6
+ font: var(--font-size-sm)/var(--line-height-md) var(--font-primary)
7
+
8
+ .icon
9
+ $icon-size: 35px
10
+ width: $icon-size
11
+ height: $icon-size
12
+ background: var(--color-subtle-light)
13
+ color: var(--color-subtle-dark)
14
+ border-radius: 50%
15
+ padding: 0.5rem 0.65rem 0.5rem 0
16
+ transition: color 0.2s ease
17
+ float: right
18
+ margin-left: 3rem
19
+
20
+ &:hover
21
+ color: var(--color-theme-dark)
western_ai/usa/spacy/website/src/styles/search.sass ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .DocSearch-Modal
4
+ --docsearch-primary-color: var(--color-theme-dark)
5
+ --docsearch-searchbox-background: var(--color-back)
6
+ --docsearch-searchbox-shadow: inset 0 0 0 2px var(--docsearch-primary-color)
7
+ --docsearch-highlight-color: var(--docsearch-primary-color)
8
+ --docsearch-logo-color: var(--docsearch-primary-color)
9
+
10
+ box-shadow: inset 0 0 0 1px var(--color-subtle)
11
+
12
+ .DocSearch, .DocSearch-Modal, .DocSearch-Help, .DocSearch-Input, .DocSearch-Hit-title, .DocSearch-Hit-path
13
+ font-family: var(--font-primary)
14
+ font-size: var(--font-size-md) !important
15
+ font-weight: 400
16
+
17
+ .DocSearch-Hits mark
18
+ background: var(--docsearch-highlight-color) !important
19
+ color: var(--color-back) !important
20
+
21
+ .DocSearch-Hit-source
22
+ font-size: var(--font-size-lg) !important
23
+ font-family: var(--font-secondary)
24
+ text-transform: uppercase
25
+
26
+ .cls-1, .cls-2
27
+ fill: var(--docsearch-primary-color) !important
western_ai/usa/spacy/website/src/styles/section.module.sass ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ &:not(:last-child):not(:last-of-type)
3
+ margin-bottom: var(--spacing-md)
4
+ padding-bottom: var(--spacing-md)
5
+ border-bottom: 1px dotted var(--color-subtle)
6
+
7
+ .hr
8
+ border: 0
9
+ padding: var(--spacing-sm) 0
western_ai/usa/spacy/website/src/styles/sidebar.module.sass ADDED
@@ -0,0 +1,125 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @use 'sass:math'
2
+ @import base
3
+
4
+ $crumb-bullet: 14px
5
+ $crumb-bar: 2px
6
+
7
+ .root
8
+ overflow-y: auto
9
+ font: var(--font-size-md)/var(--line-height-md) var(--font-primary)
10
+
11
+ .dropdown
12
+ padding: 1rem 0
13
+ border-bottom: 1px solid var(--color-subtle)
14
+ width: 100%
15
+
16
+ .dropdown-select
17
+ width: 100%
18
+ padding-left: 1rem
19
+
20
+ .section
21
+ margin-bottom: var(--spacing-sm)
22
+
23
+ & > *
24
+ padding: 0 2rem 0.35rem
25
+
26
+ &:last-child
27
+ margin-bottom: 5rem
28
+
29
+ .label
30
+ color: var(--color-dark)
31
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
32
+ text-transform: uppercase
33
+
34
+ .item
35
+ color: var(--color-theme-dark)
36
+
37
+ &:hover
38
+ color: var(--color-front)
39
+
40
+ .link
41
+ border: none
42
+
43
+ .is-active
44
+ font-weight: bold
45
+ color: var(--color-dark)
46
+ margin-top: 1rem
47
+ pointer-events: none
48
+
49
+ &:hover
50
+ color: var(--color-dark)
51
+
52
+ .active-heading
53
+ display: none
54
+
55
+ .crumbs
56
+ display: block
57
+ padding-top: 1rem
58
+ padding-left: 1rem
59
+ position: relative
60
+
61
+ .crumb
62
+ margin-bottom: math.div($crumb-bullet, 2)
63
+ position: relative
64
+ padding-left: 2rem
65
+ color: var(--color-theme-dark)
66
+ font-size: 1.2rem
67
+
68
+ &:hover
69
+ color: var(--color-front)
70
+
71
+ &:after
72
+ width: $crumb-bullet
73
+ height: $crumb-bullet
74
+ position: absolute
75
+ top: math.div($crumb-bullet, 4)
76
+ left: 0
77
+ content: ""
78
+ border-radius: 50%
79
+ background: var(--color-theme)
80
+ z-index: 10
81
+
82
+ &:not(:last-child):before
83
+ width: $crumb-bar
84
+ height: 100%
85
+ position: absolute
86
+ top: $crumb-bullet
87
+ left: math.div(($crumb-bullet - $crumb-bar), 2)
88
+ content: ""
89
+ background: var(--color-subtle)
90
+
91
+ &:first-child:before
92
+ height: calc(100% + #{$crumb-bullet * 2})
93
+ top: math.div(-$crumb-bullet, 2)
94
+
95
+ .crumb-active
96
+ color: var(--color-dark)
97
+
98
+ &:after
99
+ background: var(--color-dark)
100
+
101
+ @include breakpoint(min, md)
102
+ .root
103
+ @include scroll-shadow(var(--color-back), var(--color-shadow), var(--height-nav))
104
+ position: fixed
105
+ top: 0
106
+ left: 0
107
+ width: var(--width-sidebar)
108
+ height: calc(100vh - 3px)
109
+ flex: 0 0 var(--width-sidebar)
110
+ padding-top: calc(var(--height-nav) + 1.5rem)
111
+ z-index: 10
112
+ padding-bottom: 5rem
113
+
114
+ .dropdown
115
+ display: none
116
+
117
+ @include breakpoint(max, sm)
118
+ .root
119
+ flex: 100%
120
+ width: 100%
121
+ margin-top: var(--height-nav)
122
+ display: block
123
+
124
+ .section
125
+ display: none
western_ai/usa/spacy/website/src/styles/table.module.sass ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .root
4
+ vertical-align: top
5
+ font: var(--font-size-md)/var(--line-height-md) var(--font-primary)
6
+ margin-bottom: var(--spacing-md)
7
+ max-width: 100%
8
+
9
+ figure > .root
10
+ margin-bottom: var(--spacing-sm)
11
+
12
+ .fixed
13
+ table-layout: fixed
14
+
15
+ .tr
16
+ thead &:nth-child(odd)
17
+ background: transparent
18
+
19
+ &:nth-child(odd)
20
+ background: var(--color-subtle-opaque)
21
+
22
+ .footer
23
+ --color-inline-code-bg: var(--color-theme-opaque)
24
+ background: var(--color-theme-light) !important
25
+ border-top: 2px solid var(--color-theme-dark)
26
+
27
+ & > td:first-child
28
+ font-family: var(--font-secondary)
29
+ color: var(--color-theme-dark)
30
+
31
+ & > td:nth-child(2) a
32
+ border: 0
33
+
34
+ .td
35
+ padding: 0.9rem 1rem
36
+ font-size: 95%
37
+
38
+ &:not(:last-child)
39
+ border-right: 1px solid var(--color-subtle)
40
+
41
+ .num
42
+ font-feature-settings: "tnum"
43
+ font-variant-numeric: tabular-nums
44
+
45
+ & > strong
46
+ font-feature-settings: initial
47
+ font-variant-numeric: initial
48
+
49
+ .nowrap
50
+ white-space: nowrap
51
+
52
+ .th
53
+ font: bold var(--font-size-md)/var(--line-height-md) var(--font-secondary)
54
+ text-transform: uppercase
55
+ color: var(--color-theme-dark)
56
+ padding: 1rem 0.5rem
57
+ border-bottom: 2px solid var(--color-theme-dark)
58
+ vertical-align: bottom
59
+
60
+ .th-rotated
61
+ height: 100px
62
+
63
+ .tx
64
+ transform: translate(15px, 0) rotate(315deg) // 45 = 360 - 45
65
+ width: 30px
66
+ white-space: nowrap
67
+
68
+ & > span
69
+ padding-left: 0.5rem
70
+
71
+ [data-tooltip]
72
+ display: inline-block
73
+ transform: rotate(-316deg)
74
+
75
+ .divider
76
+ height: 0
77
+ border-bottom: 1px solid var(--color-subtle)
78
+
79
+ td
80
+ top: -1px
81
+ height: 0
82
+ position: relative
83
+ padding: 0 !important
84
+
85
+ & + tr td
86
+ padding-top: 12px
87
+
88
+ td em
89
+ position: absolute
90
+ top: -5px
91
+ left: 10px
92
+ display: inline-block
93
+ background: var(--color-theme-dark)
94
+ color: var(--color-back)
95
+ padding: 0 5px 1px
96
+ font-size: 0.85rem
97
+ text-transform: uppercase
98
+ font-weight: bold
99
+ border: 0
100
+ border-radius: 1em
101
+ font-style: normal
102
+ white-space: nowrap
103
+ z-index: 5
104
+
105
+ &:first-child // directly after thead/tr
106
+ border-bottom: 0
107
+
108
+ td em
109
+ top: -7px
110
+
111
+
112
+ // Responsive table
113
+ // Shadows adapted from "CSS only Responsive Tables" by David Bushell
114
+ // http://codepen.io/dbushell/pen/wGaamR
115
+
116
+ @include breakpoint(max, md)
117
+ .root
118
+ @include scroll-shadow-base(var(--color-shadow))
119
+ display: inline-block
120
+ overflow-x: auto
121
+ overflow-y: hidden
122
+ width: auto
123
+ -webkit-overflow-scrolling: touch
124
+
125
+ .th, .td
126
+ &:first-child
127
+ @include scroll-shadow-cover(left, var(--color-back))
128
+
129
+ &:last-child
130
+ @include scroll-shadow-cover(right, var(--color-back))
131
+
132
+ &:first-child:last-child
133
+ @include scroll-shadow-cover(both, var(--color-back))
134
+
135
+ .footer .td
136
+ &:first-child
137
+ @include scroll-shadow-cover(left, var(--color-subtle-light))
138
+
139
+ &:last-child
140
+ @include scroll-shadow-cover(right, var(--color-subtle-light))
141
+
142
+ &:first-child:last-child
143
+ @include scroll-shadow-cover(both, var(--color-subtle-light))
western_ai/usa/spacy/website/src/styles/tag.module.sass ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ display: inline-block
3
+ font: bold var(--font-size-xs)/#{1} var(--font-secondary)
4
+ background: var(--color-theme-dark)
5
+ color: var(--color-back)
6
+ padding: 2px 6px 4px
7
+ border-radius: 1em
8
+ text-transform: uppercase
9
+ vertical-align: middle
10
+
11
+ .spaced
12
+ margin-left: 0.75em
13
+ margin-right: 0.5em
14
+
15
+ .icon
16
+ margin-left: 0.5em
western_ai/usa/spacy/website/src/styles/title.module.sass ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .root
2
+ margin-bottom: var(--spacing-md)
3
+
4
+ &:after
5
+ content: ""
6
+ display: block
7
+ width: 10%
8
+ min-width: 6rem
9
+ height: 6px
10
+ background: var(--color-theme)
11
+ margin-top: 3rem
12
+
13
+ .h1
14
+ padding-top: 0 !important
15
+ display: inline
16
+ margin-bottom: 0.5em
17
+ vertical-align: middle
18
+
19
+ &[id]:target
20
+ padding-top: 0 !important
21
+
22
+ .teaser
23
+ font: normal var(--font-size-sm)/var(--line-height-md) var(--font-primary)
24
+ color: var(--color-dark)
25
+ margin-bottom: var(--spacing-sm)
26
+ margin-top: var(--spacing-sm)
27
+
28
+ .image
29
+ $image-size: 100px
30
+ width: $image-size
31
+ height: $image-size
32
+ overflow: hidden
33
+ border-radius: 50%
34
+
35
+ .corner
36
+ float: right
37
+
38
+ .label
39
+ display: inline
40
+ margin-right: var(--spacing-xs)
41
+
42
+ .meta-icon
43
+ position: relative
44
+ top: -2px
45
+
46
+ .tags
47
+ display: inline-block
48
+ position: relative
49
+ top: 0.5rem
western_ai/usa/spacy/website/src/styles/typography.module.sass ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @import base
2
+
3
+ .heading
4
+ margin-bottom: 1em
5
+
6
+ &:not(:first-child)
7
+ padding-top: 0.5em
8
+
9
+ @include breakpoint(max, md)
10
+ .heading
11
+ word-wrap: break-word
12
+
13
+ @each $level, $size in (1: 4.4, 2: 3.4, 3: 2.6, 4: 2.2, 5: 1.8)
14
+ .h#{$level}
15
+ font: normal 500 #{$size}rem/#{1.1} var(--font-secondary)
16
+
17
+ .permalink
18
+ position: relative
19
+
20
+ &:before
21
+ content: "\00b6"
22
+ font-size: 0.9em
23
+ font-weight: normal
24
+ color: var(--color-subtle-dark)
25
+ position: absolute
26
+ top: 0.15em
27
+ left: -2.85rem
28
+ opacity: 0
29
+ transition: opacity 0.2s ease
30
+
31
+ &:hover:before
32
+ opacity: 1
33
+
34
+ &:active:before
35
+ color: var(--color-theme-dark)
36
+
37
+ &:target
38
+ display: inline-block
39
+
40
+ &:before
41
+ bottom: 0.15em
42
+ top: initial
43
+
44
+ @include breakpoint(min, md)
45
+ .abbr
46
+ cursor: help
47
+ border-bottom: 1px dotted var(--color-subtle-dark)
48
+
49
+ @supports(text-decoration: underline dotted)
50
+ .abbr
51
+ text-decoration: underline dotted var(--color-subtle-dark)
52
+ border-bottom: none
53
+
54
+ @include breakpoint(max, sm)
55
+ .abbr:after
56
+ content: " (" attr(aria-label) ")"
57
+ color: var(--color-subtle-dark)
58
+ text-decoration: none
59
+
60
+ .label
61
+ display: block
62
+ font: bold var(--font-size-lg)/var(--line-height-md) var(--font-secondary)
63
+ text-transform: uppercase
64
+ color: var(--color-dark)
65
+
66
+ .inline-list
67
+ & > *
68
+ display: inline
69
+
70
+ &:not(:last-child)
71
+ margin-right: 2rem
72
+
73
+ .no-gutter
74
+ margin-bottom: 0 !important
75
+
76
+ .clear:after
77
+ content: ""
78
+ clear: both
79
+ display: table
80
+
81
+ .action
82
+ font: var(--font-size-xs)/var(--line-height-sm) var(--font-primary)
83
+ color: var(--color-subtle-dark)
84
+ float: right
85
+ max-width: 33%
86
+ text-align: right
87
+ position: relative
88
+ top: 0.4rem
89
+ margin-right: 1rem
90
+
91
+ .help
92
+ color: var(--color-dark)
western_ai/usa/spacy/website/src/templates/docs.js ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import Models from './models'
5
+
6
+ import ReadNext from '../components/readnext'
7
+ import Button from '../components/button'
8
+ import Grid from '../components/grid'
9
+ import Title from '../components/title'
10
+ import Footer from '../components/footer'
11
+ import Sidebar from '../components/sidebar'
12
+ import Main from '../components/main'
13
+ import { getCurrentSource, github } from '../components/util'
14
+
15
+ import siteMetadata from '../../meta/site.json'
16
+ import sidebars from '../../meta/sidebars.json'
17
+ import { nightly, legacy } from '../../meta/dynamicMeta.mjs'
18
+ import { languagesSorted } from '../../meta/languageSorted'
19
+
20
+ const Docs = ({ pageContext, children }) => {
21
+ const {
22
+ id,
23
+ slug,
24
+ title,
25
+ section,
26
+ teaser,
27
+ source,
28
+ tag,
29
+ isIndex,
30
+ next,
31
+ menu,
32
+ theme,
33
+ version,
34
+ apiDetails,
35
+ } = pageContext
36
+ const { modelsRepo } = siteMetadata
37
+ const isModels = section === 'models'
38
+ const sidebar = pageContext.sidebar
39
+ ? { items: pageContext.sidebar }
40
+ : sidebars.find((bar) => bar.section === section)
41
+ let pageMenu = menu ? menu.map(([text, id]) => ({ text, id })) : []
42
+
43
+ if (isModels) {
44
+ sidebar.items[1].items = languagesSorted.map((lang) => ({
45
+ text: lang.name,
46
+ url: `/models/${lang.code}`,
47
+ isActive: id === lang.code,
48
+ menu: lang.models.map((model) => ({
49
+ text: model,
50
+ id: model,
51
+ })),
52
+ }))
53
+ }
54
+ const sourcePath = source ? github(source) : null
55
+ const currentSource = getCurrentSource(slug, isIndex)
56
+
57
+ const subFooter = (
58
+ <Grid cols={2}>
59
+ <div style={{ marginTop: 'var(--spacing-lg)' }}>
60
+ {(!isModels || (isModels && isIndex)) && (
61
+ <Button to={currentSource} icon="code">
62
+ Suggest edits
63
+ </Button>
64
+ )}
65
+ </div>
66
+ {next && <ReadNext title={next.title} to={next.slug} />}
67
+ </Grid>
68
+ )
69
+
70
+ return (
71
+ <>
72
+ {sidebar && <Sidebar items={sidebar.items} pageMenu={pageMenu} slug={slug} />}
73
+ <Main
74
+ section={section}
75
+ theme={nightly ? 'nightly' : legacy ? 'legacy' : theme ?? 'blue'}
76
+ sidebar
77
+ asides
78
+ wrapContent
79
+ footer={<Footer />}
80
+ >
81
+ {isModels && !isIndex ? (
82
+ <Models pageContext={pageContext} repo={modelsRepo}>
83
+ {subFooter}
84
+ </Models>
85
+ ) : (
86
+ <>
87
+ <Title
88
+ title={title}
89
+ teaser={teaser}
90
+ source={sourcePath}
91
+ tag={tag}
92
+ version={version}
93
+ id="_title"
94
+ apiDetails={apiDetails}
95
+ />
96
+ {children}
97
+ {subFooter}
98
+ </>
99
+ )}
100
+ </Main>
101
+ </>
102
+ )
103
+ }
104
+
105
+ Docs.propTypes = {
106
+ pageContext: PropTypes.shape({
107
+ slug: PropTypes.string.isRequired,
108
+ title: PropTypes.string.isRequired,
109
+ section: PropTypes.string,
110
+ teaser: PropTypes.string,
111
+ source: PropTypes.string,
112
+ tag: PropTypes.string,
113
+ isIndex: PropTypes.bool,
114
+ next: PropTypes.shape({
115
+ title: PropTypes.string.isRequired,
116
+ slug: PropTypes.string.isRequired,
117
+ }),
118
+ menu: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),
119
+ theme: PropTypes.string,
120
+ }),
121
+ }
122
+
123
+ export default Docs
western_ai/usa/spacy/website/src/templates/index.js ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import useOnlineStatus from '@rehooks/online-status'
4
+ import classNames from 'classnames'
5
+
6
+ // Templates
7
+ import Docs from './docs'
8
+ import Universe from './universe'
9
+
10
+ // Components
11
+ import Navigation from '../components/navigation'
12
+ import Progress from '../components/progress'
13
+ import Footer from '../components/footer'
14
+ import SEO from '../components/seo'
15
+ import Link from '../components/link'
16
+ import { InlineCode } from '../components/inlineCode'
17
+ import Alert from '../components/alert'
18
+ import Search from '../components/search'
19
+
20
+ import siteMetadata from '../../meta/site.json'
21
+ import { nightly, legacy } from '../../meta/dynamicMeta.mjs'
22
+ import { remarkComponents } from '../remark'
23
+
24
+ const AlertSpace = ({ nightly, legacy }) => {
25
+ const isOnline = useOnlineStatus()
26
+ return (
27
+ <>
28
+ {nightly && (
29
+ <Alert
30
+ title="You're viewing the pre-release docs."
31
+ icon="moon"
32
+ closeOnClick={false}
33
+ >
34
+ The page reflects{' '}
35
+ <Link to="https://pypi.org/project/spacy-nightly/">
36
+ <InlineCode>spacy-nightly</InlineCode>
37
+ </Link>
38
+ , not the latest <Link to="https://spacy.io">stable version</Link>.
39
+ </Alert>
40
+ )}
41
+ {legacy && (
42
+ <Alert
43
+ title="You're viewing the old documentation"
44
+ icon="warning"
45
+ closeOnClick={false}
46
+ >
47
+ The page reflects an older version of spaCy, not the latest{' '}
48
+ <Link to="https://spacy.io">stable release</Link>.
49
+ </Alert>
50
+ )}
51
+ {!isOnline && (
52
+ <Alert title="Looks like you're offline." icon="offline" variant="warning">
53
+ But don&apos;t worry, your visited pages should be saved for you.
54
+ </Alert>
55
+ )}
56
+ </>
57
+ )
58
+ }
59
+
60
+ const navAlert = (
61
+ <Link to="https://beta.ellf.ai" noLinkLayout>
62
+ 💥 Beta test our new tool for <strong>agentic NLP development</strong>!
63
+ </Link>
64
+ )
65
+
66
+ class Layout extends React.Component {
67
+ static defaultProps = {
68
+ scope: {},
69
+ }
70
+
71
+ static propTypes = {
72
+ scope: PropTypes.object.isRequired,
73
+ pageContext: PropTypes.shape({
74
+ title: PropTypes.string,
75
+ section: PropTypes.string,
76
+ teaser: PropTypes.string,
77
+ source: PropTypes.string,
78
+ isIndex: PropTypes.bool.isRequired,
79
+ theme: PropTypes.string,
80
+ searchExclude: PropTypes.bool,
81
+ next: PropTypes.shape({
82
+ title: PropTypes.string.isRequired,
83
+ slug: PropTypes.string.isRequired,
84
+ }),
85
+ }),
86
+ children: PropTypes.node,
87
+ }
88
+
89
+ constructor(props) {
90
+ super(props)
91
+ // NB: Compiling the scope here instead of in render() is super
92
+ // important! Otherwise, it triggers unnecessary rerenders of ALL
93
+ // consumers (e.g. mdx elements), even on anchor navigation!
94
+ this.state = { scope: { ...remarkComponents, ...props.scope } }
95
+ }
96
+
97
+ render() {
98
+ const { location, children } = this.props
99
+ const { title, section, sectionTitle, teaser, theme, searchExclude } = this.props
100
+ const uiTheme = nightly ? 'nightly' : legacy ? 'legacy' : theme ?? 'blue'
101
+ const bodyClass = classNames(`theme-${uiTheme}`, { 'search-exclude': !!searchExclude })
102
+ const isDocs = ['usage', 'models', 'api', 'styleguide'].includes(section)
103
+
104
+ return (
105
+ <div className={bodyClass}>
106
+ <SEO
107
+ title={title}
108
+ description={teaser || siteMetadata.description}
109
+ section={section}
110
+ sectionTitle={sectionTitle}
111
+ nightly={nightly}
112
+ />
113
+ <AlertSpace nightly={nightly} legacy={legacy} />
114
+ <Navigation
115
+ title={siteMetadata.title}
116
+ items={siteMetadata.navigation}
117
+ section={section}
118
+ search={<Search />}
119
+ alert={nightly ? null : navAlert}
120
+ >
121
+ <Progress />
122
+ </Navigation>
123
+ {isDocs ? (
124
+ <Docs pageContext={this.props}>{children}</Docs>
125
+ ) : section === 'universe' ? (
126
+ <Universe pageContext={this.props} location={location} />
127
+ ) : (
128
+ <div>
129
+ {children}
130
+ <Footer wide />
131
+ </div>
132
+ )}
133
+ </div>
134
+ )
135
+ }
136
+ }
137
+
138
+ export default Layout
western_ai/usa/spacy/website/src/templates/models.js ADDED
@@ -0,0 +1,440 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { useEffect, useState, useMemo, Fragment } from 'react'
2
+ import { window } from 'browser-monads'
3
+
4
+ import Title from '../components/title'
5
+ import Section from '../components/section'
6
+ import Button from '../components/button'
7
+ import Aside from '../components/aside'
8
+ import { InlineCode } from '../components/inlineCode'
9
+ import CodeBlock from '../components/codeBlock'
10
+ import { Table, Tr, Td, Th } from '../components/table'
11
+ import Tag from '../components/tag'
12
+ import { H2, Label } from '../components/typography'
13
+ import Icon from '../components/icon'
14
+ import Link, { OptionalLink } from '../components/link'
15
+ import Infobox from '../components/infobox'
16
+ import Accordion from '../components/accordion'
17
+ import { isString, isEmptyObj, join, arrayToObj, abbrNum } from '../components/util'
18
+ import MarkdownToReact from '../components/markdownToReactDynamic'
19
+
20
+ import siteMetadata from '../../meta/site.json'
21
+ import languages from '../../meta/languages.json'
22
+
23
+ const COMPONENT_LINKS = {
24
+ tok2vec: '/api/tok2vec',
25
+ transformer: '/api/transformer',
26
+ tagger: '/api/tagger',
27
+ parser: '/api/dependencyparser',
28
+ ner: '/api/entityrecognizer',
29
+ lemmatizer: '/api/lemmatizer',
30
+ attribute_ruler: '/api/attributeruler',
31
+ senter: '/api/sentencerecognizer',
32
+ morphologizer: '/api/morphologizer',
33
+ }
34
+
35
+ const MODEL_META = {
36
+ core: 'Vocabulary, syntax, entities, vectors',
37
+ core_no_vectors: 'Vocabulary, syntax, entities',
38
+ dep: 'Vocabulary, syntax',
39
+ ent: 'Named entities',
40
+ sent: 'Sentence boundaries',
41
+ pytt: 'PyTorch Transformers',
42
+ trf: 'Transformers',
43
+ vectors: 'Word vectors',
44
+ web: 'written text (blogs, news, comments)',
45
+ news: 'written text (news, media)',
46
+ wiki: 'Wikipedia',
47
+ uas: 'Unlabeled dependencies',
48
+ las: 'Labeled dependencies',
49
+ dep_uas: 'Unlabeled dependencies',
50
+ dep_las: 'Labeled dependencies',
51
+ token_acc: 'Tokenization',
52
+ tok: 'Tokenization',
53
+ lemma: 'Lemmatization',
54
+ morph: 'Morphological analysis',
55
+ lemma_acc: 'Lemmatization',
56
+ morph_acc: 'Morphological analysis',
57
+ tags_acc: 'Part-of-speech tags (fine grained tags, Token.tag)',
58
+ tag_acc: 'Part-of-speech tags (fine grained tags, Token.tag)',
59
+ tag: 'Part-of-speech tags (fine grained tags, Token.tag)',
60
+ pos: 'Part-of-speech tags (coarse grained tags, Token.pos)',
61
+ pos_acc: 'Part-of-speech tags (coarse grained tags, Token.pos)',
62
+ ents_f: 'Named entities (F-score)',
63
+ ents_p: 'Named entities (precision)',
64
+ ents_r: 'Named entities (recall)',
65
+ ner_f: 'Named entities (F-score)',
66
+ ner_p: 'Named entities (precision)',
67
+ ner_r: 'Named entities (recall)',
68
+ sents_f: 'Sentence segmentation (F-score)',
69
+ sents_p: 'Sentence segmentation (precision)',
70
+ sents_r: 'Sentence segmentation (recall)',
71
+ cpu: 'words per second on CPU',
72
+ gpu: 'words per second on GPU',
73
+ pipeline: 'Active processing pipeline components in order',
74
+ components: 'All processing pipeline components (including disabled components)',
75
+ sources: 'Sources of training data',
76
+ vecs: 'Word vectors included in the package. Packages that only support context vectors compute similarity via the tensors shared with the pipeline.',
77
+ benchmark_parser: 'Syntax accuracy',
78
+ benchmark_ner: 'NER accuracy',
79
+ benchmark_speed: 'Speed',
80
+ compat: 'Latest compatible package version for your spaCy installation',
81
+ download_link: 'Download link for the pipeline',
82
+ }
83
+
84
+ const LABEL_SCHEME_META = {
85
+ tagger: 'Part-of-speech tags via Token.tag_',
86
+ parser: 'Dependency labels via Token.dep_',
87
+ ner: 'Named entity labels',
88
+ }
89
+
90
+ const MARKDOWN_COMPONENTS = {
91
+ code: InlineCode,
92
+ }
93
+
94
+ function getModelComponents(name) {
95
+ const [lang, type, genre, size] = name.split('_')
96
+ return { lang, type, genre, size }
97
+ }
98
+
99
+ function isStableVersion(v) {
100
+ return !v.includes('a') && !v.includes('b') && !v.includes('dev') && !v.includes('rc')
101
+ }
102
+
103
+ function getLatestVersion(modelId, compatibility, prereleases) {
104
+ for (let [version, models] of Object.entries(compatibility)) {
105
+ if (isStableVersion(version) && models[modelId]) {
106
+ const modelVersions = models[modelId]
107
+ for (let modelVersion of modelVersions) {
108
+ if (isStableVersion(modelVersion) || prereleases) {
109
+ return modelVersion
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ function formatVectors(data) {
117
+ if (!data) return 'n/a'
118
+ if (Object.values(data).every((n) => n === 0)) return 'context vectors only'
119
+ const { keys, vectors, width } = data
120
+ if (keys >= 0) {
121
+ return `${abbrNum(keys)} keys, ${abbrNum(vectors)} unique vectors (${width} dimensions)`
122
+ } else {
123
+ return `${abbrNum(vectors)} floret vectors (${width} dimensions)`
124
+ }
125
+ }
126
+
127
+ function formatAccuracy(data, lang) {
128
+ const exclude = lang !== 'ja' ? ['speed'] : ['speed', 'morph_acc']
129
+ if (!data) return []
130
+ return Object.keys(data)
131
+ .map((label) => {
132
+ const value = data[label]
133
+ return isNaN(value) || exclude.includes(label)
134
+ ? null
135
+ : {
136
+ label,
137
+ value: value.toFixed(2),
138
+ help: MODEL_META[label],
139
+ }
140
+ })
141
+ .filter((item) => item)
142
+ }
143
+
144
+ function formatDownloadLink(lang, name, version) {
145
+ const fullName = `${lang}_${name}-${version}`
146
+ const filename = `${fullName}-py3-none-any.whl`
147
+ const url = `https://github.com/explosion/spacy-models/releases/download/${fullName}/${filename}`
148
+ return (
149
+ <Link to={url} hideIcon>
150
+ {filename}
151
+ </Link>
152
+ )
153
+ }
154
+
155
+ function formatModelMeta(data) {
156
+ return {
157
+ fullName: `${data.lang}_${data.name}-${data.version}`,
158
+ version: data.version,
159
+ sizeFull: data.size,
160
+ pipeline: data.pipeline,
161
+ components: data.components,
162
+ notes: data.notes,
163
+ description: data.description,
164
+ sources: data.sources,
165
+ author: data.author,
166
+ url: data.url,
167
+ license: data.license,
168
+ labels: isEmptyObj(data.labels) ? null : data.labels,
169
+ vectors: formatVectors(data.vectors),
170
+ accuracy: formatAccuracy(data.performance, data.lang),
171
+ download_link: formatDownloadLink(data.lang, data.name, data.version),
172
+ }
173
+ }
174
+
175
+ function formatSources(data = []) {
176
+ const sources = data.map((s) => (isString(s) ? { name: s } : s))
177
+ return sources.map(({ name, url, author }, i) => (
178
+ <Fragment key={i}>
179
+ {i > 0 && <br />}
180
+ {name && url ? <Link to={url}>{name}</Link> : name}
181
+ {author && ` (${author})`}
182
+ </Fragment>
183
+ ))
184
+ }
185
+
186
+ function linkComponents(components = []) {
187
+ return join(
188
+ components.map((c) => (
189
+ <Fragment key={c}>
190
+ <OptionalLink to={COMPONENT_LINKS[c]} hideIcon>
191
+ <InlineCode>{c}</InlineCode>
192
+ </OptionalLink>
193
+ </Fragment>
194
+ ))
195
+ )
196
+ }
197
+
198
+ const Help = ({ children }) => (
199
+ <span data-tooltip={children}>
200
+ <Icon name="help2" width={16} variant="subtle" inline />
201
+ </span>
202
+ )
203
+
204
+ const Model = ({
205
+ name,
206
+ langId,
207
+ langName,
208
+ baseUrl,
209
+ repo,
210
+ compatibility,
211
+ hasExamples,
212
+ licenses,
213
+ prereleases,
214
+ }) => {
215
+ const [initialized, setInitialized] = useState(false)
216
+ const [isError, setIsError] = useState(true)
217
+ const [meta, setMeta] = useState({})
218
+ const { type, genre, size } = getModelComponents(name)
219
+ const display_type =
220
+ type === 'core' && (size === 'sm' || size === 'trf') ? 'core_no_vectors' : type
221
+ const version = useMemo(
222
+ () => getLatestVersion(name, compatibility, prereleases),
223
+ [name, compatibility, prereleases]
224
+ )
225
+
226
+ useEffect(() => {
227
+ window.dispatchEvent(new Event('resize')) // scroll position for progress
228
+ if (!initialized && version) {
229
+ setIsError(false)
230
+ fetch(`${baseUrl}/meta/${name}-${version}.json`)
231
+ .then((res) => res.json())
232
+ .then((json) => {
233
+ setMeta(formatModelMeta(json))
234
+ })
235
+ .catch((err) => {
236
+ setIsError(true)
237
+ console.error(err)
238
+ })
239
+ setInitialized(true)
240
+ }
241
+ }, [initialized, version, baseUrl, name])
242
+
243
+ const releaseTag = meta.fullName ? `tag/${meta.fullName}` : ''
244
+ const releaseUrl = `https://github.com/${repo}/releases/${releaseTag}`
245
+ const pipeline = linkComponents(meta.pipeline)
246
+ const components = linkComponents(meta.components)
247
+ const sources = formatSources(meta.sources)
248
+ const author = !meta.url ? meta.author : <Link to={meta.url}>{meta.author}</Link>
249
+ const licenseUrl = licenses[meta.license] ? licenses[meta.license].url : null
250
+ const license = licenseUrl ? <Link to={licenseUrl}>{meta.license}</Link> : meta.license
251
+ const hasInteractiveCode = size === 'sm' && hasExamples && !isError
252
+ const labels = meta.labels
253
+
254
+ const rows = [
255
+ { label: 'Language', tag: langId, content: langName },
256
+ { label: 'Type', tag: type, content: MODEL_META[display_type] },
257
+ { label: 'Genre', tag: genre, content: MODEL_META[genre] },
258
+ { label: 'Size', tag: size, content: meta.sizeFull },
259
+ { label: 'Components', content: components, help: MODEL_META.components },
260
+ { label: 'Pipeline', content: pipeline, help: MODEL_META.pipeline },
261
+ { label: 'Vectors', content: meta.vectors, help: MODEL_META.vecs },
262
+ { label: 'Download Link', content: meta.download_link, help: MODEL_META.download_link },
263
+ { label: 'Sources', content: sources, help: MODEL_META.sources },
264
+ { label: 'Author', content: author },
265
+ { label: 'License', content: license },
266
+ ]
267
+
268
+ const error = (
269
+ <Infobox title="Unable to load model details from GitHub" variant="danger">
270
+ <p>
271
+ To find out more about this model, see the overview of the{' '}
272
+ <Link to={`https://github.com/${repo}/releases`} ws hideIcon>
273
+ latest model releases.
274
+ </Link>
275
+ </p>
276
+ </Infobox>
277
+ )
278
+ return (
279
+ <Section id={name}>
280
+ <H2
281
+ id={name}
282
+ action={
283
+ <>
284
+ <Button to={releaseUrl}>Release Details</Button>
285
+ {version && (
286
+ <div>
287
+ Latest: <InlineCode>{version}</InlineCode>
288
+ </div>
289
+ )}
290
+ </>
291
+ }
292
+ >
293
+ {name}
294
+ </H2>
295
+ <Aside title="Installation">
296
+ <CodeBlock lang="bash" prompt="$">
297
+ $ python -m spacy download {name}
298
+ </CodeBlock>
299
+ </Aside>
300
+ {meta.description && <MarkdownToReact markdown={meta.description} />}
301
+ {isError && error}
302
+ <Table>
303
+ <tbody>
304
+ {rows.map(({ label, tag, help, content }, i) =>
305
+ !tag && !content ? null : (
306
+ <Tr key={i}>
307
+ <Td nowrap>
308
+ <Label>
309
+ {`${label} `}
310
+ {help && <Help>{help}</Help>}
311
+ </Label>
312
+ </Td>
313
+ <Td>
314
+ {tag && <Tag spaced>{tag}</Tag>}
315
+ {content}
316
+ </Td>
317
+ </Tr>
318
+ )
319
+ )}
320
+ </tbody>
321
+ </Table>
322
+ {meta.notes && <MarkdownToReact markdown={meta.notes} />}
323
+ {hasInteractiveCode && (
324
+ <CodeBlock title="Try out the model" lang="python" executable={true}>
325
+ {[
326
+ `import spacy`,
327
+ `from spacy.lang.${langId}.examples import sentences `,
328
+ ``,
329
+ `nlp = spacy.load("${name}")`,
330
+ `doc = nlp(sentences[0])`,
331
+ `print(doc.text)`,
332
+ `for token in doc:`,
333
+ ` print(token.text, token.pos_, token.dep_)`,
334
+ ].join('\n')}
335
+ </CodeBlock>
336
+ )}
337
+ {meta.accuracy && (
338
+ <Accordion id={`${name}-accuracy`} title="Accuracy Evaluation">
339
+ <Table>
340
+ <tbody>
341
+ {meta.accuracy.map(({ label, value, help }) => (
342
+ <Tr key={`${name}-${label}`}>
343
+ <Td nowrap>
344
+ <InlineCode>{label.toUpperCase()}</InlineCode>
345
+ </Td>
346
+ <Td>{help}</Td>
347
+ <Td num style={{ textAlign: 'right' }}>
348
+ {value}
349
+ </Td>
350
+ </Tr>
351
+ ))}
352
+ </tbody>
353
+ </Table>
354
+ </Accordion>
355
+ )}
356
+ {labels && (
357
+ <Accordion id={`${name}-labels`} title="Label Scheme">
358
+ <p>
359
+ The statistical components included in this model package assign the
360
+ following labels. The labels are specific to the corpus that the model was
361
+ trained on. To see the description of a label, you can use{' '}
362
+ <Link to="/api/top-level#spacy.explain">
363
+ <InlineCode>spacy.explain</InlineCode>
364
+ </Link>
365
+ .
366
+ </p>
367
+ <Table fixed>
368
+ <tbody>
369
+ {Object.keys(labels).map((pipe) => {
370
+ const labelNames = labels[pipe] || []
371
+ const help = LABEL_SCHEME_META[pipe]
372
+ return (
373
+ <Tr evenodd={false} key={pipe}>
374
+ <Td style={{ width: '20%' }}>
375
+ <Label>
376
+ {pipe} {help && <Help>{help}</Help>}
377
+ </Label>
378
+ </Td>
379
+ <Td>
380
+ {labelNames.map((label, i) => (
381
+ <Fragment key={i}>
382
+ {i > 0 && ', '}
383
+ <InlineCode wrap key={label}>
384
+ {label}
385
+ </InlineCode>
386
+ </Fragment>
387
+ ))}
388
+ </Td>
389
+ </Tr>
390
+ )
391
+ })}
392
+ </tbody>
393
+ </Table>
394
+ </Accordion>
395
+ )}
396
+ </Section>
397
+ )
398
+ }
399
+
400
+ const Models = ({ pageContext, repo, children }) => {
401
+ const [initialized, setInitialized] = useState(false)
402
+ const [compatibility, setCompatibility] = useState({})
403
+ const { id, title, meta } = pageContext
404
+ const { models } = meta
405
+ const baseUrl = `https://raw.githubusercontent.com/${repo}/master`
406
+
407
+ useEffect(() => {
408
+ window.dispatchEvent(new Event('resize')) // scroll position for progress
409
+ if (!initialized) {
410
+ fetch(`${baseUrl}/compatibility.json`)
411
+ .then((res) => res.json())
412
+ .then(({ spacy }) => setCompatibility(spacy))
413
+ .catch((err) => console.error(err))
414
+ setInitialized(true)
415
+ }
416
+ }, [initialized, baseUrl])
417
+
418
+ return (
419
+ <>
420
+ <Title title={title} teaser={`Available trained pipelines for ${title}`} />
421
+ {models.map((modelName) => (
422
+ <Model
423
+ key={modelName}
424
+ name={modelName}
425
+ langId={id}
426
+ langName={title}
427
+ compatibility={compatibility}
428
+ baseUrl={baseUrl}
429
+ repo={repo}
430
+ licenses={arrayToObj(languages.licenses, 'id')}
431
+ hasExamples={meta.hasExamples}
432
+ prereleases={siteMetadata.nightly}
433
+ />
434
+ ))}
435
+ {children}
436
+ </>
437
+ )
438
+ }
439
+
440
+ export default Models
western_ai/usa/spacy/website/src/templates/universe.js ADDED
@@ -0,0 +1,369 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+
4
+ import Card from '../components/card'
5
+ import Link from '../components/link'
6
+ import Title from '../components/title'
7
+ import Grid from '../components/grid'
8
+ import Button from '../components/button'
9
+ import Icon from '../components/icon'
10
+ import Tag from '../components/tag'
11
+ import { InlineCode } from '../components/inlineCode'
12
+ import CodeBlock from '../components/codeBlock'
13
+ import Aside from '../components/aside'
14
+ import Sidebar from '../components/sidebar'
15
+ import Section, { Hr } from '../components/section'
16
+ import Main from '../components/main'
17
+ import Footer from '../components/footer'
18
+ import { H3, H5, Label, InlineList } from '../components/typography'
19
+ import { YouTube, SoundCloud, Iframe } from '../components/embed'
20
+ import { github } from '../components/util'
21
+ import MarkdownToReact from '../components/markdownToReactDynamic'
22
+
23
+ import { nightly, legacy } from '../../meta/dynamicMeta.mjs'
24
+ import universe from '../../meta/universe.json'
25
+ import Image from 'next/image'
26
+
27
+ function filterResources(resources, data) {
28
+ const sorted = resources.sort((a, b) => a.id.localeCompare(b.id))
29
+ if (!data || !data.isCategory) return sorted
30
+ return sorted.filter((res) => (res.category || []).includes(data.id))
31
+ }
32
+
33
+ const UniverseContent = ({ content = [], categories, theme, pageContext, mdxComponents }) => {
34
+ const { data = {} } = pageContext
35
+ const filteredResources = filterResources(content, data)
36
+ const activeData = data ? content.find(({ id }) => id === data.id) : null
37
+ const markdownComponents = { ...mdxComponents, code: InlineCode }
38
+ const slug = pageContext.slug
39
+ const isHome = !data.isCategory && !data.isProject
40
+
41
+ const sidebar = [
42
+ {
43
+ label: 'Overview',
44
+ items: [{ text: 'All Projects', url: '/universe' }],
45
+ },
46
+ ...categories.map(({ label, items }) => ({
47
+ label,
48
+ items: items.map(({ id, title }) => ({
49
+ text: title,
50
+ url: `/universe/category/${id}`,
51
+ })),
52
+ })),
53
+ ]
54
+
55
+ return (
56
+ <>
57
+ <Sidebar items={sidebar} slug={slug} />
58
+ <Main section="universe" theme={theme} sidebar asides wrapContent footer={<Footer />}>
59
+ {activeData ? (
60
+ <Project data={activeData} components={markdownComponents} />
61
+ ) : (
62
+ <Section>
63
+ {isHome ? (
64
+ <Title
65
+ title="Universe"
66
+ teaser="This section collects the many great resources developed with or for spaCy. It includes standalone packages, plugins, extensions, educational materials, operational utilities and bindings for other languages."
67
+ />
68
+ ) : (
69
+ <Title
70
+ title={data.title}
71
+ teaser={data.description}
72
+ tag={String(filteredResources.length)}
73
+ />
74
+ )}
75
+ <Grid
76
+ cols={data && data.isCategory && data.id === 'books' ? 3 : 2}
77
+ className="search-exclude"
78
+ >
79
+ {filteredResources.map(
80
+ ({ id, type, title, slogan, thumb, cover, youtube }) => {
81
+ if (isHome && type === 'education') {
82
+ return null
83
+ }
84
+ const url = `/universe/project/${id}`
85
+ const header = youtube && (
86
+ <Image
87
+ src={`https://img.youtube.com/vi/${youtube}/0.jpg`}
88
+ alt={title}
89
+ width="480"
90
+ height="360"
91
+ style={{
92
+ clipPath: 'inset(12.9% 0)',
93
+ marginBottom: 'calc(-12.9% + 1rem)',
94
+ }}
95
+ />
96
+ )
97
+ return cover ? (
98
+ <p key={id}>
99
+ <Link key={id} to={url} noLinkLayout>
100
+ {/* eslint-disable-next-line @next/next/no-img-element */}
101
+ <img src={cover} alt={title || id} />
102
+ </Link>
103
+ </p>
104
+ ) : data.id === 'videos' ? (
105
+ <div>
106
+ <Link key={id} to={url} noLinkLayout>
107
+ {header}
108
+ <H5>{title}</H5>
109
+ </Link>
110
+ </div>
111
+ ) : (
112
+ <Card
113
+ key={id}
114
+ title={title || id}
115
+ image={thumb}
116
+ to={url}
117
+ header={header}
118
+ >
119
+ {slogan}
120
+ </Card>
121
+ )
122
+ }
123
+ )}
124
+ </Grid>
125
+ </Section>
126
+ )}
127
+ <section className="search-exclude">
128
+ <H3>Found a mistake or something isn&apos;t working?</H3>
129
+ <p>
130
+ If you&apos;ve come across a universe project that isn&apos;t working or is
131
+ incompatible with the reported spaCy version, let us know by{' '}
132
+ <Link to="https://github.com/explosion/spaCy/discussions/new">
133
+ opening a discussion thread
134
+ </Link>
135
+ .
136
+ </p>
137
+ </section>
138
+ <Hr />
139
+ <section className="search-exclude">
140
+ <H3>Submit your project</H3>
141
+ <p>
142
+ If you have a project that you want the spaCy community to make use of, you
143
+ can suggest it by submitting a pull request to the spaCy website repository.
144
+ The Universe database is open-source and collected in a simple JSON file.
145
+ For more details on the formats and available fields, see the documentation.
146
+ Looking for inspiration your own spaCy plugin or extension? Check out the
147
+ <Link
148
+ to={
149
+ 'https://github.com/explosion/spaCy/discussions/categories/new-features-project-ideas/'
150
+ }
151
+ hideIcon
152
+ ws
153
+ >
154
+ project idea
155
+ </Link>
156
+ section in Discussions.
157
+ </p>
158
+
159
+ <InlineList>
160
+ <Button variant="primary" to={github('website/UNIVERSE.md')}>
161
+ Read the docs
162
+ </Button>
163
+ <Button icon="code" to={github('website/meta/universe.json')}>
164
+ JSON source
165
+ </Button>
166
+ </InlineList>
167
+ </section>
168
+ </Main>
169
+ </>
170
+ )
171
+ }
172
+
173
+ UniverseContent.propTypes = {
174
+ content: PropTypes.arrayOf(PropTypes.object),
175
+ categories: PropTypes.arrayOf(
176
+ PropTypes.shape({
177
+ label: PropTypes.string.isRequired,
178
+ items: PropTypes.arrayOf(
179
+ PropTypes.shape({
180
+ id: PropTypes.string.isRequired,
181
+ title: PropTypes.string.isRequired,
182
+ description: PropTypes.string.isRequired,
183
+ })
184
+ ).isRequired,
185
+ })
186
+ ).isRequired,
187
+ theme: PropTypes.string,
188
+ location: PropTypes.object.isRequired,
189
+ mdxComponents: PropTypes.object,
190
+ }
191
+
192
+ const SpaCyVersion = ({ version }) => {
193
+ const versions = !Array.isArray(version) ? [version] : version
194
+ return versions.map((v, i) => (
195
+ <>
196
+ <Tag tooltip={`This project is compatible with spaCy v${v}`}>spaCy v{v}</Tag>{' '}
197
+ </>
198
+ ))
199
+ }
200
+
201
+ const ImageGitHub = ({ url, isRounded, title }) => (
202
+ // eslint-disable-next-line @next/next/no-img-element
203
+ <img
204
+ style={{
205
+ borderRadius: isRounded ? '1em' : 0,
206
+ marginRight: '0.5rem',
207
+ verticalAlign: 'middle',
208
+ }}
209
+ src={`https://img.shields.io/github/${url}`}
210
+ alt={`${title} on GitHub`}
211
+ />
212
+ )
213
+
214
+ const Project = ({ data, components }) => (
215
+ <>
216
+ <Title title={data.title || data.id} teaser={data.slogan} image={data.thumb}>
217
+ {(data.github || data.spacy_version) && (
218
+ <p>
219
+ {data.spacy_version && <SpaCyVersion version={data.spacy_version} />}
220
+ {data.github && (
221
+ <Link to={`https://github.com/${data.github}`} noLinkLayout>
222
+ <ImageGitHub
223
+ title={data.title || data.id}
224
+ url={`release/${data.github}/all.svg?style=flat-square`}
225
+ isRounded
226
+ />
227
+ <ImageGitHub
228
+ title={data.title || data.id}
229
+ url={`license/${data.github}.svg?style=flat-square`}
230
+ isRounded
231
+ />
232
+ <ImageGitHub
233
+ title={data.title || data.id}
234
+ url={`stars/${data.github}.svg?style=social&label=Stars`}
235
+ />
236
+ </Link>
237
+ )}
238
+ </p>
239
+ )}
240
+ </Title>
241
+ {data.pip && (
242
+ <Aside title="Installation">
243
+ <CodeBlock lang="bash" prompt="$">
244
+ pip install {data.pip}
245
+ </CodeBlock>
246
+ </Aside>
247
+ )}
248
+ {data.cran && (
249
+ <Aside title="Installation">
250
+ <CodeBlock lang="r">install.packages(&quot;{data.cran}&quot;)</CodeBlock>
251
+ </Aside>
252
+ )}
253
+
254
+ {data.cover && (
255
+ <p>
256
+ {/* eslint-disable-next-line @next/next/no-img-element */}
257
+ <img src={data.cover} alt={data.title} width={250} style={{ maxWidth: '50%' }} />
258
+ </p>
259
+ )}
260
+
261
+ <Section>
262
+ {data.youtube && <YouTube id={data.youtube} />}
263
+ {data.soundcloud && <SoundCloud id={data.soundcloud} title={data.title} />}
264
+ {data.iframe && (
265
+ <Iframe
266
+ src={data.iframe}
267
+ title={data.title}
268
+ width="100%"
269
+ height={data.iframe_height}
270
+ />
271
+ )}
272
+
273
+ {data.description && (
274
+ <section>
275
+ <MarkdownToReact markdown={data.description} />
276
+ </section>
277
+ )}
278
+
279
+ {data.code_example && (
280
+ <CodeBlock title="Example" lang={data.code_language || 'python'}>
281
+ {data.code_example.join('\n')}
282
+ </CodeBlock>
283
+ )}
284
+
285
+ {data.image && (
286
+ <p>
287
+ {/* eslint-disable-next-line @next/next/no-img-element */}
288
+ <img src={data.image} style={{ maxWidth: '100%' }} alt="" />
289
+ </p>
290
+ )}
291
+
292
+ {data.url && (
293
+ <Button variant="primary" to={data.url}>
294
+ View more
295
+ </Button>
296
+ )}
297
+ </Section>
298
+
299
+ <Section>
300
+ <Grid cols={2}>
301
+ <div>
302
+ <Label>Author info</Label>
303
+ <InlineList gutterBottom={false}>
304
+ <span>{data.author}</span>
305
+ <span>
306
+ {data.author_links && data.author_links.twitter && (
307
+ <Link
308
+ to={`https://twitter.com/${data.author_links.twitter}`}
309
+ noLinkLayout
310
+ ws
311
+ >
312
+ <Icon width={18} name="twitter" inline />
313
+ </Link>
314
+ )}
315
+ {data.author_links && data.author_links.github && (
316
+ <Link
317
+ to={`https://github.com/${data.author_links.github}`}
318
+ noLinkLayout
319
+ ws
320
+ >
321
+ <Icon width={18} name="github" inline />
322
+ </Link>
323
+ )}
324
+ {data.author_links && data.author_links.website && (
325
+ <Link to={data.author_links.website} noLinkLayout ws>
326
+ <Icon width={18} name="website" inline />
327
+ </Link>
328
+ )}
329
+ </span>
330
+ </InlineList>
331
+ </div>
332
+ {data.github && (
333
+ <p style={{ marginBottom: 0 }}>
334
+ <Label>GitHub</Label>
335
+ <Link to={`https://github.com/${data.github}`}>
336
+ <InlineCode wrap>{data.github}</InlineCode>
337
+ </Link>
338
+ </p>
339
+ )}
340
+ </Grid>
341
+ {data.category && (
342
+ <p style={{ marginBottom: 0 }}>
343
+ <Label>Categories</Label>
344
+ {data.category.map((cat) => (
345
+ <Link to={`/universe/category/${cat}`} key={cat} ws>
346
+ <InlineCode>{cat}</InlineCode>
347
+ </Link>
348
+ ))}
349
+ </p>
350
+ )}
351
+ </Section>
352
+ </>
353
+ )
354
+
355
+ const Universe = ({ pageContext, location, mdxComponents }) => {
356
+ const theme = nightly ? 'nightly' : legacy ? 'legacy' : pageContext.theme
357
+ return (
358
+ <UniverseContent
359
+ content={universe.resources}
360
+ categories={universe.categories}
361
+ pageContext={pageContext}
362
+ location={location}
363
+ mdxComponents={mdxComponents}
364
+ theme={theme}
365
+ />
366
+ )
367
+ }
368
+
369
+ export default Universe
western_ai/usa/spacy/website/src/widgets/changelog.js ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import React, { useState, useEffect, Fragment } from 'react'
2
+ import { window } from 'browser-monads'
3
+
4
+ import Link from '../components/link'
5
+ import { InlineCode } from '../components/inlineCode'
6
+ import { Label, H3 } from '../components/typography'
7
+ import { Table, Tr, Th, Td } from '../components/table'
8
+ import Infobox from '../components/infobox'
9
+ import { repo } from '../components/util'
10
+
11
+ function formatReleases(json) {
12
+ return Object.values(json)
13
+ .filter((release) => release.name)
14
+ .map((release) => ({
15
+ title:
16
+ release.name.split(': ').length === 2 ? release.name.split(': ')[1] : release.name,
17
+ url: release.html_url,
18
+ date: release.published_at.split('T')[0],
19
+ tag: release.tag_name,
20
+ pre: release.prerelease,
21
+ }))
22
+ }
23
+
24
+ const Changelog = () => {
25
+ const [initialized, setInitialized] = useState(false)
26
+ const [isLoading, setIsLoading] = useState(false)
27
+ const [isError, setIsError] = useState(true)
28
+ const [releases, setReleases] = useState([])
29
+ const [prereleases, setPrereleases] = useState([])
30
+
31
+ useEffect(() => {
32
+ window.dispatchEvent(new Event('resize')) // scroll position for progress
33
+ if (!initialized && repo) {
34
+ setIsError(false)
35
+ setIsLoading(true)
36
+ fetch(`https://api.github.com/repos/${repo}/releases`)
37
+ .then((res) => res.json())
38
+ .then((json) => {
39
+ const releases = formatReleases(json)
40
+ setReleases(releases.filter((release) => !release.pre))
41
+ setPrereleases(releases.filter((release) => release.pre))
42
+ setIsLoading(false)
43
+ })
44
+ .catch((err) => {
45
+ setIsLoading(false)
46
+ setIsError(true)
47
+ console.error(err)
48
+ })
49
+ setInitialized(true)
50
+ }
51
+ }, [initialized])
52
+
53
+ const error = (
54
+ <Infobox title="Unable to load changelog from GitHub" variant="danger">
55
+ <p>
56
+ Please see the
57
+ <Link to={`https://github.com/${repo}/releases`} ws hideIcon>
58
+ releases page
59
+ </Link>
60
+ instead.
61
+ </p>
62
+ </Infobox>
63
+ )
64
+
65
+ return isError ? (
66
+ error
67
+ ) : isLoading ? null : (
68
+ <>
69
+ <H3 id="changelog-stable">Stable Releases</H3>
70
+ <Table>
71
+ <thead>
72
+ <Tr>
73
+ <Th>Date</Th>
74
+ <Th>Version</Th>
75
+ <Th>Title</Th>
76
+ </Tr>
77
+ </thead>
78
+ <tbody>
79
+ {releases.map(({ title, url, date, tag }) => (
80
+ <Tr key={tag}>
81
+ <Td nowrap>
82
+ <Label>{date}</Label>
83
+ </Td>
84
+ <Td>
85
+ <Link to={url} hideIcon>
86
+ <InlineCode>{tag}</InlineCode>
87
+ </Link>
88
+ </Td>
89
+ <Td>{title}</Td>
90
+ </Tr>
91
+ ))}
92
+ </tbody>
93
+ </Table>
94
+
95
+ <H3 id="changelog-pre">Pre-Releases</H3>
96
+
97
+ <p>
98
+ Pre-releases include alpha and beta versions, as well as release candidates. They
99
+ are not intended for production use. You can download spaCy pre-releases via the{' '}
100
+ <Link to="https://pypi.org/packages/spacy-nightly">
101
+ <InlineCode>spacy-nightly</InlineCode>
102
+ </Link>{' '}
103
+ package on pip.
104
+ </p>
105
+
106
+ <p>
107
+ {prereleases.map(({ title, date, url, tag }, i) => (
108
+ <Fragment key={i}>
109
+ <Link to={url} hideIcon data-tooltip={`${date}: ${title}`}>
110
+ <InlineCode>{tag}</InlineCode>
111
+ </Link>{' '}
112
+ </Fragment>
113
+ ))}
114
+ </p>
115
+ </>
116
+ )
117
+ }
118
+
119
+ export default Changelog