Alexey Pyltsyn
a4b409c93b
fix(v2): make code blocks more standalone ( #4315 )
...
* refactor(v2): make code blocks styles standalone
* Rework
* Revert font size in playground headers
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 18:22:34 +01:00
Alexey Pyltsyn
0383dd1496
fix(v2): evaluate code in live editor on client only ( #4318 )
2021-03-04 17:52:53 +01:00
Sébastien Lorber
3d00613e5d
fix(v2): Code blocks should be LTR by default ( #4277 )
...
* use LTR code code blocks
* code blocks should be LTR
2021-02-23 18:47:07 +01:00
Alexey Pyltsyn
f13448d5e1
chore(v2): upgrade dependencies + require Node 12 ( #4223 )
...
* chore(v2): upgrade dependencies
* Set minimum Node.js version to 12.13
* Fix test
* Upgrade copy-text-to-clipboard
* Bump Node versions
* Update .nvmrc
* mark cacheTime as forbidded field
* Downgrade jest to v25.2.7
* Increase Node version for Windows CI
* Test fix
* Attempt to fix Windows CI
* Downgrade execa
* fix async test errors
* Upgrade execa
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 15:12:42 +01:00
Alexey Pyltsyn
175d9c3c8e
feat(v2): support/use React v17 by default ( #4218 )
...
* chore(v2): allow React v17 as peer dependency
* minor React 17 changes
* Revert examples
* Possible fix
* Use @docusaurus/react-loadable fork
* add back react-loadable to please eslint/ts/linters, even if it's unused in practice
* missing dependency bump
* move enzyme dependencies to docusaurus v1
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-12 17:04:45 +01:00
Sébastien Lorber
ab7951571e
feat(v2): Extract/translate hardcoded labels from classic theme ( #4168 )
...
* Translate theme hardcoded strings
* improve test
2021-02-03 20:06:26 +01:00
Reece Dunham
0252d01ebb
docs(v2): Add READMEs to v2 packages ( #4034 )
...
* docs(v2): Add READMEs to v2 packages
Signed-off-by: Reece Dunham <me@rdil.rocks>
* Update packages/docusaurus-remark-plugin-npm2yarn/package.json
* Update packages/docusaurus/README.md
* Update packages/docusaurus-plugin-sitemap/README.md
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
2021-01-14 17:16:26 +01:00
Joel M
41ac4468de
fix(v2): allow async/await in live code editor ( #3954 )
...
* transforming async functions is not implemented by buble, so just bypassing it would relieve the pain for now
2020-12-28 10:47:55 +01:00
Sébastien Lorber
3fc29f4b14
chore(v2): prepare v2.0.0.alpha-70 release ( #3933 )
...
* add alpha 70 changes
* v2.0.0-alpha.70
2020-12-17 20:08:20 +01:00
Alexey Pyltsyn
d25a54f61d
chore(v2): prepare v2.0.0.alpha-69 release ( #3808 )
...
* chore(v2): prepare v2.0.0.alpha-69 release
* v2.0.0-alpha.69
2020-11-24 13:51:15 +03:00
Sébastien Lorber
d1e51f7e3b
chore(v2): prepare v2.0.0.alpha-68 release ( #3779 )
...
* changelog
* add alpha 68 docs
* add missing publishConfig
* update publish doc + v1 private package system
* add version files
* v2.0.0-alpha.68
2020-11-18 20:02:06 +01:00
Alexey Pyltsyn
049634a927
chore(v2): upgrade dependencies ( #3727 )
...
* chore(v2): upgrade dependencies
* Update loader-utils
* Update MDX packages
* Update Babel packages
* Various updates
2020-11-12 12:30:14 +01:00
Rhys Arkins
6930e91508
fix: add repository metadata to all packages ( #3613 )
...
* fix: add repository metadata to all packages
* empty commit for cla bot
* move validate-package-json.test.ts + add glob devDependency
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2020-10-21 15:05:01 +02:00
Sébastien Lorber
14447707c2
chore(v2): prepare v2.0.0.alpha-66 release ( #3608 )
...
* release alpha 66
* v2.0.0-alpha.66
2020-10-19 19:44:26 +02:00
Alexey Pyltsyn
f5f2064656
chore(v2): prepare v2.0.0.alpha-65 release ( #3525 )
...
* chore(v2): prepare v2.0.0.alpha-65 release
* v2.0.0-alpha.65
2020-10-02 17:09:16 +03:00
Sébastien Lorber
9bf4dfb275
chore(v2): prepare v2.0.0.alpha-64 release ( #3440 )
...
* add 2.0.0 alpha 64 files
* v2.0.0-alpha.64
2020-09-11 20:35:05 +02:00
Sébastien Lorber
8af3ad4250
chore(v2): prepare v2.0.0.alpha-63 release ( #3400 )
...
* add alpha 63 + remove +3month old versions
* update publish guide
* v2.0.0-alpha.63
2020-09-03 18:52:03 +02:00
Sébastien Lorber
ab3ebdad39
chore(v2): pin exact dependency versions ( #3386 )
...
* Attempt to pin all dependency versions exactly for https://github.com/facebook/docusaurus/issues/3371
* warn if @docusaurus package versions mismatch
* fix yarn lock
2020-09-02 11:42:17 +02:00
Sébastien Lorber
4f448bd54b
chore(v2): prepare v2.0.0.alpha-62 release ( #3359 )
...
* Add alpha 62
* v2.0.0-alpha.62
2020-08-28 19:17:56 +02:00
Teik Jun
8f0c00f3d4
fix(v2): fix theme validation for prism field and add tests ( #3210 )
...
* fix(v2): fix theme validation for prism field
* chore(v2): minor changes
* chore(v2): remove unused dependencies
2020-08-05 15:27:32 +02:00
Sébastien Lorber
48b996773c
chore(v2): prepare v2.0.0.alpha-61 release ( #3182 )
...
* alpha 61 release
* doc prettier
* v2.0.0-alpha.61
2020-08-01 15:24:46 +02:00
Sébastien Lorber
1083454dbd
chore(v2): prepare v2.0.0.alpha-60 release ( #3154 )
...
* alpha 60
* v2.0.0-alpha.60
* update publish guide
2020-07-29 17:45:54 +02:00
Sébastien Lorber
0eb9c207cf
chore(v2): v2.0.0.alpha-59 release ( #3114 )
...
* alpha 59 release preparation
* v2.0.0-alpha.59
2020-07-24 16:22:51 +02:00
Teik Jun
0f59cd1599
feat(v2): add option validation for remaining official plugins ( #2970 )
...
* feat(v2): add option validation lifecycle method
* chore(v2): add dependencies
* chore(v2): add yup dependency
* feat(v2): add option validation for plugin-content-docs
* chore(v2): add facebook copyright
* refactor(v2): remove unused variable
* chore(v2): add dependencies
* chore(v2): add copyright
* fix(v2): use strict for option validation
* feat(v2): add option validation for plugin-content-pages
* feat(v2): add schema for plugin-google-analytics and plugin-google-gtag
* feat(v2): add option validation for plugin-sitemap
* chore(v2): add dependency for yup
* fix(v2): remove strict to allow normalization
* refactor(v2): refactor validate method
* feat(v2): modify existing tests
* feat(v2): add tests for plugin normalization
* style(v2): use a more descriptive filename for schema
* feat(v2): add normalization tests
* feat(v2): add more tests for option validation
* refactor(v2): remove unused code
* refactor(v2): remove unused code
* refactor(v2): refactor methods and types
* feat(v2): replace Yup with Joi
* fix(v2): fix plugin-content-docs schema
* feat(v2): modify tests for plugin-content-docs
* fix(v2): fix a typo
* refactor(v2): improve tests and refactor code
* feat(v2): support both commonjs and ES modules
* refactor(v2): refactor validateOption method
* style(v2): fix eslint errors and typo in types
* chore(v2): remove unused yup dependency
* style(v2): standardize naming across official plugins
* chore(v2): update test snapshots
* chore(v2): remove obsolete snapshots
* chore(v2): fix a typo and check test
* feat(v2): add validation for new field
* feat(v2): add test for new field
2020-06-26 15:14:59 +02:00
Anshul Goyal
81d855355e
feat(v2): option and config validation life cycle method for official plugins ( #2943 )
...
* add validation for blog plugin
* fix wrong default component
* fix test and add yup to package.json
* remove console.log
* add validation for classic theme and code block theme
* add yup to packages
* remove console.log
* fix build
* fix logo required
* replaced yup with joi
* fix test
* remove hapi from docusuars core
* replace joi with @hapi/joi
* fix eslint
* fix remark plugin type
* change remark plugin validation to match documentation
* move schema to it's own file
* allow unknown only on outer theme object
* fix type for schema type
* fix yarn.lock
* support both commonjs and ES modules
* add docs for new lifecycle method
2020-06-24 20:08:16 +02:00
slorber
16ba6e54b6
v2.0.0-alpha.58
2020-06-18 14:02:26 +02:00
Alexey Pyltsyn
dd1ef71aac
chore(v2): replace Clipboard with copy-text-to-clipboard ( #2900 )
...
* chore(v2): replace Clipboard with copy-text-to-clipboard
* Remove clipboard from yarn.lock
2020-06-07 13:48:28 +08:00
Alexey Pyltsyn
afe9ff91a4
chore(v2): replace classnames with clsx ( #2895 )
2020-06-07 13:40:06 +08:00
Sébastien Lorber
953abd8154
feat(v2): allow adding components to react-live scope ( #2826 )
...
* feat(v2): add components to react-live scope (#2807 )
* fix admonition issue + improve react-live scope doc
* fix again admonition :(
* remove forwarding of mdx components to react-live scope (for now)
* remove useless dep
2020-06-04 15:18:42 +03:00
Alexey Pyltsyn
e57294f70f
fix(v2): set proper font for live editor ( #2835 )
2020-05-29 17:57:19 +08:00
Alexey Pyltsyn
d8ebe8b2e4
v2.0.0-alpha.56
2020-05-27 20:18:28 +03:00
Sam Zhou
33b60c6ba4
fix(v2): Consistently use 10.15.1 as the minimum required node version ( #2819 )
2020-05-27 23:18:48 +08:00
Alexey Pyltsyn
d94a549cfb
v2.0.0-alpha.55
2020-05-19 13:55:03 +03:00
Alexey Pyltsyn
cc688f48fc
refactor(v2): add support for dark mode to live code blocks ( #2767 )
2020-05-18 11:24:32 +08:00
Alexey Pyltsyn
d910ff118e
refactor(v2): add @theme-init alias to give access to initial components ( #2464 )
2020-05-17 22:47:05 +08:00
Alexey Pyltsyn
753d117025
v2.0.0-alpha.54
2020-04-28 09:49:27 +03:00
Alexey Pyltsyn
d90fdb04d5
v2.0.0-alpha.53
2020-04-27 16:38:33 +03:00
Alexey Pyltsyn
7359945f52
v2.0.0-alpha.52
2020-04-27 16:30:15 +03:00
Alexey Pyltsyn
c9c5aedcb5
v2.0.0-alpha.51
2020-04-27 14:44:56 +03:00
Alexey Pyltsyn
379d3e0d23
chore(v2): upgrade prism-react-renderer to latest version ( #2666 )
2020-04-27 00:50:06 +08:00
Alexey Pyltsyn
1f00d15c74
chore(v2): fix code style (revert previous changes)
2020-04-05 17:38:12 +03:00
Alexey Pyltsyn
6965a668cd
chore(v2): fix code style
2020-04-05 17:30:59 +03:00
Yangshun Tay
b07507c9cc
chore(v2): upgrade devDependencies ( #2538 )
...
* chore(v2): upgrade devDependencies
* chore(v2): upgrade devDependencies
* chore: prettier
2020-04-05 19:07:44 +08:00
Alexey Pyltsyn
349eee042b
refactor(v2): make better code blocks ( #2534 )
...
* refactor(v2): make better code blocks
* Update styles.module.css
Co-authored-by: Yangshun Tay <tay.yang.shun@gmail.com>
2020-04-05 18:01:07 +08:00
Alexey Pyltsyn
7bc7241ee4
fix(v2): add rounded corners in code blocks properly ( #2533 )
2020-04-05 15:57:11 +08:00
Yangshun Tay
692ab14e4f
fix(v2): make code block nicer again ( #2526 )
2020-04-04 13:06:11 +08:00
Alexey Pyltsyn
c207c3ba31
v2.0.0-alpha.50
2020-04-02 21:00:47 +03:00
Alexey Pyltsyn
44f9c76851
fix(v2): synchronize code block components changes ( #2509 )
2020-04-02 23:05:48 +08:00
Alexey Pyltsyn
9cff1bb9e4
chore(v2): upgrade deps ( #2508 )
2020-04-02 19:05:03 +08:00
Yangshun Tay
63997a4fbe
fix(v2): make code block nicer ( #2502 )
2020-04-02 14:12:47 +08:00