Sébastien Lorber
4f419801da
fix(v2): update code translations script + update some translations ( #4349 )
2021-03-05 14:52:59 +01:00
Çağlar Turalı
8bc23197a9
polish(v2): Updated theme label translations for Turkish ( #4350 )
2021-03-05 14:52:05 +01:00
tokarchyn
98a4b3a65c
feat(v2): Add playgroundPosition config for live codeblock ( #4328 )
...
* docs(v2): Add configuration parameter to allow putting Result before Editor in @docusaurus/theme-live-codeblock
* update doc
* refactor as playgroundPosition
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-05 14:49:17 +01:00
Yamagishi Kazutoshi
f772c17bfc
polish(v2): add japanese translation for #4304 ( #4351 )
2021-03-05 14:45:21 +01:00
Alexey Pyltsyn
1dd400db7e
refactor(v2): format post date using Intl ( #4344 )
...
* refactor(v2): format post date using Intl
* Fix test
* Blog: add localized blog post date test
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 19:11:31 +01:00
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
Alexey Pyltsyn
788b4a76d8
feat(v2): auto focus to tab if it is outside viewport ( #4209 )
...
* Simplify solution
* fix typo
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-04 17:46:36 +01:00
Alexey Pyltsyn
da5175a591
fix(v2): fit footer in viewport when content area is too small ( #4311 )
...
* fix(v2): fit footer in viewport when content area is too small
* Fix
* Better solution
2021-03-04 15:39:15 +01:00
Sébastien Lorber
6fc6cfebf8
fix(v2): always extract translations from site/src ( #4345 )
...
* ensure translation extractor extract translations from site/src
* commit typo
2021-03-04 14:58:55 +01:00
Alexey Pyltsyn
43c53df158
chore(v2): bump clean-css to 5.1.1 ( #4342 )
2021-03-03 19:55:26 +01:00
Sébastien Lorber
879dcb0701
fix(v2): prevent useless blog pages to be in search results ( #4340 )
2021-03-03 18:23:47 +01:00
Sébastien Lorber
070b3fc1e8
fix(v2): search page results localization ( #4339 )
...
* Fix search page localization
* Fix search page localization
2021-03-03 18:10:20 +01:00
Sébastien Lorber
364d4dbf01
fix(v2): fix bad theme pluralization rules for some labels ( #4304 )
...
* Pluralization test!
* Simplify usePluralForm usage with | plural message separator
* fix interpolate bug with falsy values like 0
* fix interpolate bug with falsy values like 0
* Order plural forms + allow to not provide the last plural forms if they are not used
* fix typo
* revert test!
* plurals and typo of the SearchPage
* update some labels
* improve the update-code-translations cli + update translations
* pluralize blog reading time label
* ensure base.json contains message descriptions: helps the user to provide the translations
* remove russian production locale
2021-03-03 17:05:21 +01:00
Ali Saki
4162e6dcd7
feat(v2): add arabic translation ( #4329 )
2021-03-03 12:13:26 +01:00
Bartosz Kaszubowski
273e778c10
feat(v2): [theme-classic] add Polish translation ( #4325 )
...
* [theme-classic] add Polish translation
* typo fix
* ellipsis instead of three dots
2021-03-02 19:21:16 +01:00
Massoud Maboudi
224aedf7ed
polish(v2): improved Farsi translation ( #4309 )
...
* improved translation for Farsi
* Update packages/docusaurus-theme-classic/codeTranslations/fa.json
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-02 18:09:51 +01:00
Long Ho
f46adffa17
feat(v2): add --config option to CLI ( #4308 )
...
* feat: add --config & --generated-files-dir option to CLI
* revert --generated-files-dir option + some refactors
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-02 17:34:23 +01:00
Çağlar Turalı
9413ba920e
feat(v2): Add Turkish translations for theme labels ( #4312 )
...
* Add Turkish translations for theme labels
* Fix: better handle last update switches
2021-03-02 12:21:35 +01:00
Yamagishi Kazutoshi
99d83995a5
feat(v2): add japanese translations ( #4303 )
2021-03-01 18:35:07 +01:00
Sébastien Lorber
1734975f2f
feat(v2): Add Interpolate / interpolate APIs + complete theme translations ( #4295 )
...
* WIP: refactor team profile cards
* Add Interpolate / interpolate APIs
* Add interpolate snapshot test
* comments
* fix Interpolate TS types
* Interpolate should handle numbers and other JS types
* translate BlogPostItem
* interpolate translate() fn + add translations for blog post tag header
* localize the LastUpdated component
* translate DocVersionSuggestions
* fix test
* add some new translations
* Add node script to easily update the theme default translations
* fix translation extractor bug due to translate() dynamic values
* use ICU placeholder syntax
* refactor month key
* order
* team page translation improvements
* Add interpolation doc + improve i18n doc
2021-02-26 13:19:51 +01:00
Sébastien Lorber
6811a72e72
feat(v2): ability to "escape" JSX in MDX files as code blocks ( #4278 )
...
* Fix MDX Crowdin issues by wrapping complex JSX in code blocks
* Add a remark plugin to unwrap MDX code blocks
* Update MDX Crowdin doc
2021-02-24 12:34:03 +01:00
philipp985
9e758308bb
polish(v2): theme default translations for language de / german ( #4279 )
2021-02-24 10:33:15 +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
6ab5084c87
refactor(v2): improve notifier message ( #4257 )
...
* refactor(v2): improve notifier message
* Add support for npm
2021-02-23 18:41:38 +01:00
Sébastien Lorber
2788efc799
polish(v2): Add more tags translations ( #4275 )
...
* Add blog tags translations
* Improve Ru translation
Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2021-02-23 16:44:14 +01:00
Sébastien Lorber
0e1d1ce310
fix(v2): theme classic should have lib-next prettified ( #4274 )
2021-02-23 15:55:05 +01:00
Yangshun Tay
9f5f3931cf
chore(v2): upgrade react-dev-utils ( #4270 )
2021-02-22 20:40:11 +01:00
Sébastien Lorber
f750660317
feat(v2): add Farsi default translations ( #4271 )
...
Co-authored-by: @massoudmaboudi <massoud.maboudi@gmail.com>
2021-02-22 20:22:05 +01:00
Bartosz Kaszubowski
bd3e66d706
chore(v2): bump/align deps in monorepo: commander, semver, fs-extra ( #4264 )
2021-02-22 19:05:25 +01:00
Ben
333545aa97
fix(v2): Allow null as valid for title of item in footer links ( #4267 )
2021-02-22 18:56:58 +01:00
Reece Dunham
a8595233a8
chore(v2): PostCSS peer dep fix ( #4265 )
...
* PostCSS peer dep fix
* Fix lockfile
2021-02-22 18:05:47 +01:00
Alexey Pyltsyn
be871b2d60
feat(v2): add icon to generic sidebar link ( #4261 )
2021-02-22 16:14:47 +01:00
Sébastien Lorber
a58baacdc8
fix(v2): fix LTR PostCSS bug on Netlify/monorepo symlinks ( #4254 )
2021-02-19 17:55:03 +01:00
Alexey Pyltsyn
094b51390e
fix(v2): remove PostCSS plugin for combine duplicated selectors ( #4240 )
2021-02-18 15:45:22 +01:00
Alexey Pyltsyn
1ec2f04108
feat(v2): introduce Seo component for internal usage ( #4243 )
2021-02-18 15:38:55 +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
02f7722f2e
fix(v2): make doc container full width when hidden sidebar ( #4247 )
2021-02-18 15:06:04 +01:00
Alexey Pyltsyn
9bd65ddea3
refactor(v2): add Russian translation for classic theme ( #4246 )
2021-02-18 15:03:02 +03:00
Alexey Pyltsyn
2df5a3bd5d
refactor(v2): use Link component for external links ( #4242 )
2021-02-18 12:35:29 +01:00
Alexey Pyltsyn
936d6620cf
fix(v2): avoid horizontal scrolling when long lines of code ( #4241 )
...
* fix: avoid horizontal scrolling when long lines of code
* Simplify solution
2021-02-18 11:56:11 +01:00
Alexey Pyltsyn
08fa318599
refactor(v2): add more translatable strings ( #4219 )
...
* refactor(v2): add more translatable strings
* Apply suggestions from code review
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
* Fixes
* Updates
* Localize direct link to heading
* typo + add french translations
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-18 11:29:51 +01:00
Alexey Pyltsyn
75228c4b8d
refactor(v2): clean-ups and fixes ( #4244 )
2021-02-18 10:27:39 +01:00
Sébastien Lorber
ae988d0eb9
feat(v2): editUrl functions should receive md doc permalink ( #4232 )
2021-02-17 11:48:33 +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
6a94ad989c
feat(v2): Add i18n default code translation bundles ( #4215 )
...
* Add default code translation bundles
* fix tests
2021-02-12 11:35:09 +01:00
Sébastien Lorber
780afe5278
fix(v2): typo in resolve.roots ( #4212 )
2021-02-10 11:48:41 +01:00
Alexey Pyltsyn
0ac34b75c5
feat(v2): add support for RTL direction ( #4140 )
...
* feat(v2): add support for RTL
* Move to i18n config
* Move direction to localeConfigs
* Create RTL styles for Docusaurus styles (via new hook)
* update infima to alpha 19
* fix minor type error
* Fix build
* Cleanup
* polish RTL support
* polish RTL support
* revert english rtl dir
* minor RTL fix
* minor doc updates
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-10 10:52:26 +01:00
Alexey Pyltsyn
2fb642d9ee
feat(v2): allow extend PostCSS config ( #4185 )
...
* feat(v2): allow extend PostCSS config
* polish the configurePostCss system
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-09 20:02:54 +01:00
Alexey Pyltsyn
b3b658f687
feat(v2): allow to change location of search bar ( #4199 )
...
* feat(v2): allow to change location of search bar
* add SearchBar swizzle comment
* quickfix for NavbarItem theme config
* typing quickfix
* doc typo
Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-02-09 16:31:52 +01:00