Commit Graph

330 Commits

Author SHA1 Message Date
Marcus Blättermann
0b50883a96
Improve error logging in Juniper 2022-12-20 23:21:12 +01:00
Marcus Blättermann
8153920ed5
Unify code rendering 2022-12-20 23:21:12 +01:00
Marcus Blättermann
9340d69ed8
Fix syntax highlighting for Training Quickstart 2022-12-20 23:21:12 +01:00
Marcus Blättermann
04ec2c0e93
Refactor Quickstart component
The previous implementation was hidding the irrelevant lines via data-props and dynamically generated CSS. This created problems with Next and was also hard to follow. CSS was used to do what React is supposed to handle.

The new implementation simplfy filters the list of children (React elements) via their props.
2022-12-20 23:21:11 +01:00
Marcus Blättermann
4b315d1c4c
Fix missing comment syntax highlighting 2022-12-20 23:21:11 +01:00
Marcus Blättermann
74e8249ca8
Rename custom event
I was googeling for ages to find out what kind of event `inview` is, only to figure out it was a custom event with a name that sounds pretty much like a native one. 🫠
2022-12-20 23:21:11 +01:00
Marcus Blättermann
d6c9a07faa
Fix bug with anchor links after reloading
There was no need for the previous implementation, since the browser handles this nativly. Additional the manual scrolling into view was actually broken, because the heading would disappear behind the menu bar.
2022-12-20 23:21:11 +01:00
Marcus Blättermann
a280729491
Fix problem with span inside inline code
React doesn't allow a `span` inside an inline `code` element and throws an error in dev mode.
2022-12-20 23:21:10 +01:00
Marcus Blättermann
5e1a10f617
Fix custom table row styling 2022-12-20 23:21:10 +01:00
Marcus Blättermann
9b17299bd6
Convert file to .mjs to be used by Node process 2022-12-20 23:21:09 +01:00
Marcus Blättermann
47ce9ca870
Replace react-helmet with next/head 2022-12-20 23:21:09 +01:00
Marcus Blättermann
de902ca878
Fix internal link recognition
There is a problem with regex between Node and browser, and since Next runs the component on both, this create an error.

`Prop `rel` did not match. Server: "null" Client: "noopener nofollow noreferrer"`

This simplifies the implementation and fixes the above error.
2022-12-20 23:21:09 +01:00
Marcus Blättermann
c0fa92190c
Remove unused prop 2022-12-20 23:21:09 +01:00
Marcus Blättermann
47e4c62741
Fix code syntax highlighting 2022-12-20 23:21:08 +01:00
Marcus Blättermann
049279657a
Readd InlineCode component
MDX2 removed the `inlineCode` component

> The special component name `inlineCode` was removed, we recommend to use `pre` for the block version of code, and code for both the block and inline versions

Source: https://mdxjs.com/migrating/v2/#update-mdx-content
2022-12-20 23:21:08 +01:00
Marcus Blättermann
80144ebad0
Fix dropdowns 2022-12-20 23:21:07 +01:00
Marcus Blättermann
3c93913bb9
Fix ESLint react-hooks/exhaustive-deps 2022-12-20 23:21:07 +01:00
Marcus Blättermann
cb7880d3a6
Replace svg-loader with react-inlinesvg
`svg-loader` is no longer maintained
2022-12-20 23:21:07 +01:00
Marcus Blättermann
7dad1596f7
Fix headings with logo 2022-12-20 23:21:07 +01:00
Marcus Blättermann
92436c0663
Fix problem with image inside link in MDX 2022-12-20 23:21:06 +01:00
Marcus Blättermann
888a1f4c60
Remove ability to inline HTML content in iFrames 2022-12-20 23:21:06 +01:00
Marcus Blättermann
1bfff8390a
Replace landing page MDX with page component 2022-12-20 23:21:05 +01:00
Marcus Blättermann
aebe52efa7
Fix improper component nesting
Next doesn't allow block elements inside a `<p>`
2022-12-20 23:21:05 +01:00
Marcus Blättermann
c3e1c771ac
Fix Next problem with copy
Next complains when the server renders something different then the client, therfor we move the differing logic to `useEffect`
2022-12-20 23:21:05 +01:00
Marcus Blättermann
7dac26df38
Add Universe index page 2022-12-20 23:21:05 +01:00
Marcus Blättermann
a2fc7ecb27
Fix default value for theme 2022-12-20 23:21:05 +01:00
Marcus Blättermann
5d22487521
Fix markdown rendering inside components 2022-12-20 23:21:04 +01:00
Marcus Blättermann
13730a6567
Merge imports 2022-12-20 23:21:04 +01:00
Marcus Blättermann
94aa3629bb
Rename heading attribute
`new` was causing some weird issue, so renaming it to `version`
2022-12-20 23:21:04 +01:00
Marcus Blättermann
294d06fca0
Fix pattern image 2022-12-20 23:21:03 +01:00
Marcus Blättermann
9169b8f4b3
Fix broken images 2022-12-20 23:21:03 +01:00
Marcus Blättermann
d1c4d65590
Fix links 2022-12-20 23:21:03 +01:00
Marcus Blättermann
d3f95831aa
Implement layout 2022-12-20 23:21:03 +01:00
Marcus Blättermann
6de49b9f1a
Fix broken CSS classes 2022-12-20 23:21:03 +01:00
Marcus Blättermann
507742f763
Add missing components to MDX 2022-12-20 23:21:02 +01:00
Marcus Blättermann
0fe4f87072
Remove outdated MDX handling 2022-12-20 17:51:57 +01:00
Marcus Blättermann
b65e29595a
Move and rename plugins 2022-12-20 17:51:55 +01:00
Marcus Blättermann
fba63f5f09
Minor website fixes (#11974) [ci skip] 2022-12-20 17:41:38 +01:00
Marcus Blättermann
de2e3747cc
Apply Prettier (#11996) 2022-12-19 16:18:19 +01:00
Marcus Blättermann
0d04341d32
Merge branch 'master' into update-migration-from-master 2022-12-15 00:11:32 +01:00
vincent d warmerdam
6d2ca1ab3a
Update custom solutions links (#11903)
* Update custom solutions

Will now point to https://explosion.ai/custom-solutions

* added-sidebar

* added-analysis-to-readme

* update-landing-page
2022-12-07 16:02:09 +01:00
Marcus Blättermann
b6310d4ce9
Rename all MDX file to .mdx 2022-11-29 02:33:27 +01:00
Paul O'Leary McCann
6b78135b9e
Add warning to install widget for M1 GPUs (#11666)
* Add warning to install widget for M1 GPUs

* Use Thinc tracking issue instead

* Update website/src/widgets/quickstart-install.js

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Underline URL in warning

* Update website/src/widgets/quickstart-install.js

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Don't install cupy on m1 gpus

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
2022-10-27 15:08:24 +02:00
Adriane Boyd
6be6913ba5
Update cupy extras (#11279)
* Update cupy extras:

* Extend to v11
* Add `cupy-cuda11x` and `cupy-wheel`
* Update quickstart to use `cupy-wheel` for CUDA 10.2+

* Rename cuda-wheel to cuda-autodetect, remove repeated CUDA in menu
2022-09-13 09:04:53 +02:00
Paul O'Leary McCann
977dc33312
Add a way to get the URL to download a pipeline to the CLI (#11175)
* Add a dry run flag to download

* Remove --dry-run, add --url option to `spacy info` instead

* Make mypy happy

* Print only the URL, so it's easier to use in scripts

* Don't add the egg hash unless downloading an sdist

* Update spacy/cli/info.py

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>

* Add two implementations of requirements

* Clean up requirements sample slightly

This should make mypy happy

* Update URL help string

* Remove requirements option

* Add url option to docs

* Add URL to spacy info model output, when available

* Add types-setuptools to testing reqs

* Add types-setuptools to requirements

* Add "compatible", expand docstring

* Update spacy/cli/info.py

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Run prettier on CLI docs

* Update docs

Add a sidebar about finding download URLs, with some examples of the new
command.

* Add download URLs to table on model page

* Apply suggestions from code review

Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>

* Updates from review

* download url -> download link

* Update docs

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com>
Co-authored-by: Adriane Boyd <adrianeboyd@gmail.com>
2022-09-02 11:58:21 +02:00
Adriane Boyd
04c6e5cb95
Improve floret vectors display in pipeline docs (#11343) 2022-08-22 11:28:13 +02:00
Paul O'Leary McCann
1c12812d1a
Replace link to old label (#11188) 2022-07-25 16:39:34 +09:00
Adriane Boyd
11f859c132
Docs for v3.4 (#11057)
* Add draft of v3.4 usage

* Add Croatian models

* Add Matcher min/max

* Update release notes

* Minor edits

* Add updates, tables

* Update pydantic/mypy versions

* Update version in README

* Fix sidebar
2022-07-11 15:36:31 +02:00
Adriane Boyd
3bc1fe0a78
Update cupy extras (#11055)
* Add cuda116 and cuda117 extras

* Revert "remove `cuda116` extra from install widget (#11012)"

This reverts commit e7b498fb1f.

* Add cuda117 to quickstart
2022-06-30 11:24:37 +02:00
Peter Baumgartner
3335bb9d0c
remove cuda116 extra from install widget (#11012) 2022-06-23 08:15:28 +02:00